the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2
3#include "AttackDamageMobEffect.h"
4
5AttackDamageMobEffect::AttackDamageMobEffect(int id, bool isHarmful, eMinecraftColour color) : MobEffect(id, isHarmful, color)
6{
7}
8
9double AttackDamageMobEffect::getAttributeModifierValue(int amplifier, AttributeModifier *original)
10{
11 if (id == MobEffect::weakness->id)
12 {
13 return -0.5f * (amplifier + 1);
14 }
15 else
16 {
17 return 1.3 * (amplifier + 1);
18 }
19}