mirror of
https://git.neolegacy.dev/pieeebot/cafeberry.git
synced 2026-09-24 21:11:11 +00:00
TU20: Fixed issue where name tags do not appear to work correctly on the wither, iron golems, and wither skeletons. Fix for issue where creepers hover off the floor. --------- Co-authored-by: pieeebot <[email protected]> Reviewed-on: https://git.neolegacy.dev/pieeebot/mc_pieLCE/pulls/5 Co-authored-by: qloak <[email protected]> Co-committed-by: qloak <[email protected]>
19 lines
412 B
C++
19 lines
412 B
C++
#include "stdafx.h"
|
|
|
|
#include "AttackDamageMobEffect.h"
|
|
|
|
AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color)
|
|
{
|
|
}
|
|
|
|
double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original)
|
|
{
|
|
if (id == MobEffect::weakness->id)
|
|
{
|
|
return -0.5f * (amplifier + 1);
|
|
}
|
|
else
|
|
{
|
|
return 1.3 * (amplifier + 1);
|
|
}
|
|
} |