[MIRROR] fixes ageusia not working (#1334)

* fixes ageusia not working (#54369)

* fixes ageusia not working

Co-authored-by: Tlaltecuhtli <33834933+Tlaltecuhtli@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-10-15 22:11:37 +01:00
committed by GitHub
co-authored by Tlaltecuhtli
parent 4e32872098
commit 710fbaf20e
+4 -3
View File
@@ -369,9 +369,10 @@ Behavior that's still missing from this component that original food items had t
if(!ishuman(M))
return FALSE
var/mob/living/carbon/human/H = M
if(HAS_TRAIT(H, TRAIT_AGEUSIA) && foodtypes & H.dna.species.toxic_food)
to_chat(H, "<span class='warning'>You don't feel so good...</span>")
H.adjust_disgust(25 + 30 * fraction)
if(HAS_TRAIT(H, TRAIT_AGEUSIA))
if(foodtypes & H.dna.species.toxic_food)
to_chat(H, "<span class='warning'>You don't feel so good...</span>")
H.adjust_disgust(25 + 30 * fraction)
else
if(foodtypes & H.dna.species.toxic_food)
to_chat(H,"<span class='warning'>What the hell was that thing?!</span>")