mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 14:37:04 +01:00
Datumizes microbatteries (#26900)
* Datumize microbattery * comments + feedback when you're revivable * More comment * more datumization * Explaining myself * Being able to charge while not having a microbattery * Better comment Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> * Changes proc name to be more accurate --------- Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
This commit is contained in:
co-authored by
1080pCat
parent
20dfb3af69
commit
074da2b796
@@ -85,8 +85,13 @@
|
||||
.++
|
||||
if(affecting.body_part == LEG_LEFT)
|
||||
.++
|
||||
///Returns true if all the mob's vital organs are functional, otherwise returns false
|
||||
/mob/living/carbon/human/proc/check_vital_organs()
|
||||
/* Returns true if all the mob's vital organs are functional, otherwise returns false.
|
||||
* This proc is only used for checking if IPCs can revive from death, so calling it on a non IPC will always return false (right now)
|
||||
*/
|
||||
/mob/living/carbon/human/proc/ipc_vital_organ_check()
|
||||
var/has_battery = get_int_organ_datum(ORGAN_DATUM_BATTERY)
|
||||
if(!has_battery)
|
||||
return FALSE
|
||||
for(var/obj/item/organ/internal/organ in internal_organs)
|
||||
if(organ.vital && (organ.damage >= organ.max_damage))
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user