woo yeah yeah woo
This commit is contained in:
@@ -330,8 +330,6 @@
|
|||||||
#define COMSIG_ACTION_TRIGGER "action_trigger" //from base of datum/action/proc/Trigger(): (datum/action)
|
#define COMSIG_ACTION_TRIGGER "action_trigger" //from base of datum/action/proc/Trigger(): (datum/action)
|
||||||
#define COMPONENT_ACTION_BLOCK_TRIGGER 1
|
#define COMPONENT_ACTION_BLOCK_TRIGGER 1
|
||||||
|
|
||||||
/*******Element signals*******/
|
|
||||||
|
|
||||||
/*******Non-Signal Component Related Defines*******/
|
/*******Non-Signal Component Related Defines*******/
|
||||||
|
|
||||||
//Redirection component init flags
|
//Redirection component init flags
|
||||||
|
|||||||
@@ -225,31 +225,32 @@
|
|||||||
process_reagents()
|
process_reagents()
|
||||||
|
|
||||||
/obj/machinery/pool/controller/proc/process_pool()
|
/obj/machinery/pool/controller/proc/process_pool()
|
||||||
if(!drained)
|
if(drained)
|
||||||
for(var/mob/living/M in mobs_in_pool)
|
return
|
||||||
switch(temperature) //Apply different effects based on what the temperature is set to.
|
for(var/mob/living/M in mobs_in_pool)
|
||||||
if(POOL_SCALDING) //Scalding
|
switch(temperature) //Apply different effects based on what the temperature is set to.
|
||||||
M.adjust_bodytemperature(50,0,500)
|
if(POOL_SCALDING) //Scalding
|
||||||
if(POOL_WARM) //Warm
|
M.adjust_bodytemperature(50,0,500)
|
||||||
M.adjust_bodytemperature(20,0,360) //Heats up mobs till the termometer shows up
|
if(POOL_WARM) //Warm
|
||||||
//Normal temp does nothing, because it's just room temperature water.
|
M.adjust_bodytemperature(20,0,360) //Heats up mobs till the termometer shows up
|
||||||
if(POOL_COOL)
|
//Normal temp does nothing, because it's just room temperature water.
|
||||||
M.adjust_bodytemperature(-20,250) //Cools mobs till the termometer shows up
|
if(POOL_COOL)
|
||||||
if(POOL_FRIGID) //Freezing
|
M.adjust_bodytemperature(-20,250) //Cools mobs till the termometer shows up
|
||||||
M.adjust_bodytemperature(-60) //cool mob at -35k per cycle, less would not affect the mob enough.
|
if(POOL_FRIGID) //Freezing
|
||||||
if(M.bodytemperature <= 50 && !M.stat)
|
M.adjust_bodytemperature(-60) //cool mob at -35k per cycle, less would not affect the mob enough.
|
||||||
M.apply_status_effect(/datum/status_effect/freon)
|
if(M.bodytemperature <= 50 && !M.stat)
|
||||||
if(ishuman(M))
|
M.apply_status_effect(/datum/status_effect/freon)
|
||||||
var/mob/living/carbon/human/drownee = M
|
if(ishuman(M))
|
||||||
if(!drownee || drownee.stat == DEAD)
|
var/mob/living/carbon/human/drownee = M
|
||||||
return
|
if(!drownee || drownee.stat == DEAD)
|
||||||
if(drownee.resting && !drownee.internal)
|
return
|
||||||
if(drownee.stat != CONSCIOUS)
|
if(drownee.resting && !drownee.internal)
|
||||||
drownee.adjustOxyLoss(9)
|
if(drownee.stat != CONSCIOUS)
|
||||||
else
|
drownee.adjustOxyLoss(9)
|
||||||
drownee.adjustOxyLoss(4)
|
else
|
||||||
if(prob(35))
|
drownee.adjustOxyLoss(4)
|
||||||
to_chat(drownee, "<span class='danger'>You're drowning!</span>")
|
if(prob(35))
|
||||||
|
to_chat(drownee, "<span class='danger'>You're drowning!</span>")
|
||||||
|
|
||||||
/obj/machinery/pool/controller/proc/set_bloody(state)
|
/obj/machinery/pool/controller/proc/set_bloody(state)
|
||||||
if(bloody == state)
|
if(bloody == state)
|
||||||
|
|||||||
@@ -116,6 +116,10 @@
|
|||||||
for(var/i in 1 to min(duration, 100))
|
for(var/i in 1 to min(duration, 100))
|
||||||
L.setDir(turn(L.dir, 90))
|
L.setDir(turn(L.dir, 90))
|
||||||
sleep(delay)
|
sleep(delay)
|
||||||
|
if(QDELETED(L))
|
||||||
|
break
|
||||||
|
if(QDELETED(src))
|
||||||
|
return
|
||||||
whirling_mobs -= L
|
whirling_mobs -= L
|
||||||
|
|
||||||
/obj/machinery/pool/filter
|
/obj/machinery/pool/filter
|
||||||
|
|||||||
@@ -15,7 +15,9 @@
|
|||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
/turf/open/pool/Destroy()
|
/turf/open/pool/Destroy()
|
||||||
controller = null
|
if(controller)
|
||||||
|
controller.linked_turfs -= src
|
||||||
|
controller = null
|
||||||
QDEL_NULL(watereffect)
|
QDEL_NULL(watereffect)
|
||||||
QDEL_NULL(watertop)
|
QDEL_NULL(watertop)
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
Reference in New Issue
Block a user