mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-28 02:52:01 +00:00
Fixing water and foam wasted on mobs that do not need to be extinguished (#6622)
This commit is contained in:
committed by
Werner
parent
1f2195f16a
commit
37f29cc13c
@@ -236,8 +236,9 @@
|
||||
. = ..()
|
||||
if(istype(M) && isliving(M))
|
||||
var/mob/living/L = M
|
||||
L.ExtinguishMob(L.on_fire ? amount : amount*0.5)
|
||||
remove_self(amount)
|
||||
var/needed = min(L.fire_stacks, amount)
|
||||
L.ExtinguishMob(needed)
|
||||
remove_self(needed)
|
||||
|
||||
if(istype(M) && !istype(M, /mob/abstract))
|
||||
M.color = initial(M.color)
|
||||
|
||||
@@ -316,8 +316,9 @@
|
||||
/datum/reagent/toxin/fertilizer/monoammoniumphosphate/touch_mob(var/mob/living/L, var/amount)
|
||||
. = ..()
|
||||
if(istype(L))
|
||||
L.ExtinguishMob(L.on_fire ? amount*3 : amount*1.5)
|
||||
remove_self(amount)
|
||||
var/needed = min(L.fire_stacks, amount)
|
||||
L.ExtinguishMob(3* needed) // Foam is 3 times more efficient at extinguishing
|
||||
remove_self(needed)
|
||||
|
||||
/datum/reagent/toxin/fertilizer/monoammoniumphosphate/affect_touch(var/mob/living/carbon/slime/S, var/alien, var/removed)
|
||||
if(istype(S))
|
||||
|
||||
Reference in New Issue
Block a user