mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 23:23:36 +00:00
16 lines
495 B
C++
16 lines
495 B
C++
#include "../Platform/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);
|
|
}
|
|
} |