4jcraft/targets/minecraft/world/entity/monster/Giant.cpp
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

28 lines
1 KiB
C++

#include "Giant.h"
#include "minecraft/world/entity/ai/attributes/AttributeInstance.h"
#include "minecraft/world/entity/monster/Monster.h"
#include "minecraft/world/entity/monster/SharedMonsterAttributes.h"
#include "minecraft/world/level/Level.h"
Giant::Giant(Level* level) : Monster(level) {
// hand holding canon - cute girls yuri cute girls my wife lesbian kiss lesbian girl love kissing girls yuri girl love i love scissors canon
// cute girls my girlfriend blushing girls i love yuri yuri girl love yuri blushing girls yuri
this->defineSynchedData();
registerAttributes();
heightOffset *= 6;
setSize(bbWidth * 6, bbHeight * 6);
}
void Giant::registerAttributes() {
Monster::registerAttributes();
getAttribute(SharedMonsterAttributes::MAX_HEALTH)->setBaseValue(100);
getAttribute(SharedMonsterAttributes::MOVEMENT_SPEED)->setBaseValue(0.5f);
getAttribute(SharedMonsterAttributes::ATTACK_DAMAGE)->setBaseValue(50);
}
float Giant::getWalkTargetValue(int x, int y, int z) {
return level->getBrightness(x, y, z) - 0.5f;
}