mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-26 20:54:35 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
18 lines
392 B
C++
18 lines
392 B
C++
|
|
#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);
|
|
}
|
|
} |