mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Nerf food poisoning effect
This commit is contained in:
parent
5d8fe2654d
commit
c10b9e8e3a
2 changed files with 5 additions and 4 deletions
|
@ -33,8 +33,9 @@ public class FoodPoisoningStatusEffect extends StatusEffect {
|
||||||
entity.addStatusEffect(nausea);
|
entity.addStatusEffect(nausea);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (entity.getHealth() > amplifier) {
|
||||||
entity.damage(MagicalDamageSource.FOOD_POISONING, amplifier);
|
entity.damage(MagicalDamageSource.FOOD_POISONING, amplifier);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -32,8 +32,8 @@ public interface Toxin extends Affliction {
|
||||||
Toxin STRENGTH = of(StatusEffects.STRENGTH, 30, 0);
|
Toxin STRENGTH = of(StatusEffects.STRENGTH, 30, 0);
|
||||||
Toxin BLINDNESS = of(StatusEffects.BLINDNESS, 30, 0);
|
Toxin BLINDNESS = of(StatusEffects.BLINDNESS, 30, 0);
|
||||||
Toxin POISON = of(StatusEffects.POISON, 45, 2);
|
Toxin POISON = of(StatusEffects.POISON, 45, 2);
|
||||||
Toxin FOOD_POISONING = of(UEffects.FOOD_POISONING, 300, 2);
|
Toxin FOOD_POISONING = of(UEffects.FOOD_POISONING, 100, 2);
|
||||||
Toxin WEAK_FOOD_POISONING = of(UEffects.FOOD_POISONING, 150, 1);
|
Toxin WEAK_FOOD_POISONING = of(UEffects.FOOD_POISONING, 50, 1);
|
||||||
|
|
||||||
Toxin LOVE_SICKNESS = of(Text.of("Love Sickness "), (player, stack) -> {
|
Toxin LOVE_SICKNESS = of(Text.of("Love Sickness "), (player, stack) -> {
|
||||||
FoodComponent food = stack.getItem().getFoodComponent();
|
FoodComponent food = stack.getItem().getFoodComponent();
|
||||||
|
|
Loading…
Reference in a new issue