fix: change -4.0f back to -0.5f

This commit is contained in:
pieeebot committed 2026-07-15 13:11:32 +01:00
1 parent 0a396489ae
commit 5c4c093861
1 file changed
+18 -18
+18 -18
View File
@@ -1,19 +1,19 @@
#include "stdafx.h" #include "stdafx.h"
#include "AttackDamageMobEffect.h" #include "AttackDamageMobEffect.h"
AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color) AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color)
{ {
} }
double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original) double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original)
{ {
if (id == MobEffect::weakness->id) if (id == MobEffect::weakness->id)
{ {
return -4.0f * (amplifier + 1); return -0.5f * (amplifier + 1);
} }
else else
{ {
return 1.3 * (amplifier + 1); return 1.3 * (amplifier + 1);
} }
} }