aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/AttackDamageMobEffect.cpp
blob: 00ab0f952d41677d8005457cbdcbb5694bb46946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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);
	}
}