better way to do this
This commit is contained in:
@@ -35,6 +35,16 @@ All effects don't start immediately, but rather get worse over time; the rate is
|
||||
91-100: Dangerously toxic - swift death
|
||||
*/
|
||||
|
||||
|
||||
/datum/reagent/consumable/ethanol/on_mob_add(mob/living/L, amount)
|
||||
. = ..()
|
||||
if(!iscarbon(L))
|
||||
return
|
||||
|
||||
var/mob/living/carbon/C = L
|
||||
if(HAS_TRAIT(C, TRAIT_ROBOTIC_ORGANISM))
|
||||
C.reagents.remove_reagent(type, amount, FALSE)
|
||||
|
||||
/datum/reagent/consumable/ethanol/on_mob_life(mob/living/carbon/C)
|
||||
if(HAS_TRAIT(C, TRAIT_ROBOTIC_ORGANISM)) //Robots don't get drunk
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user