Fixed foods defaulting to being inedible for humans

This commit is contained in:
Sollace 2023-01-27 14:37:41 +00:00
parent 3d5fe40950
commit eed9a404d6
2 changed files with 5 additions and 1 deletions

View file

@ -11,7 +11,7 @@ public interface ToxicHolder {
}
default Toxic getDefaultToxic() {
return getOriginalFoodComponent() == null ? Toxic.EMPTY : Toxics.FORAGE_EDIBLE;
return getOriginalFoodComponent() == null ? Toxic.EMPTY : Toxics.EDIBLE;
}
default void clearFoodOverride() {}

View file

@ -14,6 +14,10 @@ public interface Toxics {
Toxic SEVERE_INNERT = Toxic.innert(Toxicity.SEVERE);
Toxic EDIBLE = register("edible", new Toxic.Builder(Ailment.INNERT)
.with(Race.CHANGELING, of(FAIR, LOVE_SICKNESS))
);
Toxic FORAGE_EDIBLE = register("forage_edible", new Toxic.Builder(Ailment.INNERT)
.food(UFoodComponents.RANDOM_FOLIAGE)
.with(Race.HUMAN, of(LETHAL, FOOD_POISONING))