mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-24 09:58:13 +05:00
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);
|
|
}
|
|
} |