mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-19 03:53:03 +01:00
Co-authored-by: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Anaël <60509176+Bakoubak@users.noreply.github.com> Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/4205
19 lines
411 B
C++
19 lines
411 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 -4.0 * (amplifier + 1);
|
|
}
|
|
else
|
|
{
|
|
return 3.0 * (amplifier + 1);
|
|
}
|
|
} |