Makes reagent exposure methods bitflags (#53164)

This commit is contained in:
TemporalOroboros
2020-08-25 16:40:15 -07:00
committed by GitHub
parent fdb115c2d6
commit 70d4bcaf3c
55 changed files with 232 additions and 238 deletions
@@ -602,12 +602,12 @@
reagent_state = LIQUID
color = "#FFEBEB"
/datum/reagent/flightpotion/expose_mob(mob/living/M, method=TOUCH, reac_volume, show_message = 1)
/datum/reagent/flightpotion/expose_mob(mob/living/M, methods=TOUCH, reac_volume, show_message = 1)
if(iscarbon(M) && M.stat != DEAD)
var/mob/living/carbon/C = M
var/holycheck = ishumanbasic(C)
if(reac_volume < 5 || !(holycheck || islizard(C) || (ismoth(C) && C.dna.features["moth_wings"] != "Burnt Off"))) // implying xenohumans are holy //as with all things,
if(method == INGEST && show_message)
if((methods & INGEST) && show_message)
to_chat(C, "<span class='notice'><i>You feel nothing but a terrible aftertaste.</i></span>")
return ..()
if(C.dna.species.has_innate_wings)