Nerf food poisoning effect

This commit is contained in:
Sollace 2022-06-25 00:33:57 +02:00
parent 5d8fe2654d
commit c10b9e8e3a
2 changed files with 5 additions and 4 deletions

View file

@ -33,8 +33,9 @@ public class FoodPoisoningStatusEffect extends StatusEffect {
entity.addStatusEffect(nausea); entity.addStatusEffect(nausea);
} }
entity.damage(MagicalDamageSource.FOOD_POISONING, amplifier); if (entity.getHealth() > amplifier) {
entity.damage(MagicalDamageSource.FOOD_POISONING, amplifier);
}
} }
@Override @Override

View file

@ -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();