mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Release Update
Merge branch 'release' of https://github.com/VOREStation/VOREStation into voreupdate # Conflicts: # code/__defines/machinery.dm # code/controllers/configuration.dm # code/game/jobs/jobs.dm # code/game/machinery/doors/blast_door.dm # code/game/machinery/pipe/pipe_recipes.dm # code/game/objects/items/devices/radio/radio_vr.dm # code/modules/client/preferences_vr.dm # code/modules/clothing/glasses/hud_vr.dm # code/modules/clothing/under/accessories/accessory_vr.dm # code/modules/events/event_container_vr.dm # code/modules/gamemaster/actions/planet_weather_change.dm # code/modules/projectiles/guns/energy/netgun_vr.dm # code/modules/projectiles/guns/energy/protector_vr.dm # code/modules/vore/appearance/sprite_accessories_taur_vr.dm # code/modules/vore/appearance/sprite_accessories_vr.dm # code/modules/vore/fluffstuff/custom_guns_vr.dm # icons/obj/power.dmi # vorestation.dme
This commit is contained in:
@@ -18,6 +18,22 @@ GLOBAL_LIST_BOILERPLATE(all_brain_organs, /obj/item/organ/internal/brain)
|
||||
var/clone_source = FALSE
|
||||
var/mob/living/carbon/brain/brainmob = null
|
||||
var/can_assist = TRUE
|
||||
var/defib_timer = -1
|
||||
|
||||
/obj/item/organ/internal/brain/process()
|
||||
..()
|
||||
if(owner && owner.stat != DEAD) // So there's a lower risk of ticking twice.
|
||||
tick_defib_timer()
|
||||
|
||||
// This is called by `process()` when the owner is alive, or brain is not in a body, and by `Life()` directly when dead.
|
||||
/obj/item/organ/internal/brain/proc/tick_defib_timer()
|
||||
if(preserved) // In an MMI/ice box/etc.
|
||||
return
|
||||
|
||||
if(!owner || owner.stat == DEAD)
|
||||
defib_timer = max(--defib_timer, 0)
|
||||
else
|
||||
defib_timer = min(++defib_timer, (config.defib_timer MINUTES) / 2)
|
||||
|
||||
/obj/item/organ/internal/brain/proc/can_assist()
|
||||
return can_assist
|
||||
@@ -65,6 +81,7 @@ GLOBAL_LIST_BOILERPLATE(all_brain_organs, /obj/item/organ/internal/brain)
|
||||
/obj/item/organ/internal/brain/New()
|
||||
..()
|
||||
health = config.default_brain_health
|
||||
defib_timer = (config.defib_timer MINUTES) / 2
|
||||
spawn(5)
|
||||
if(brainmob && brainmob.client)
|
||||
brainmob.client.screen.len = null //clear the hud
|
||||
|
||||
Reference in New Issue
Block a user