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:
BiancaWilkson
2024-10-18 23:30:04 +00:00
committed by GitHub
co-authored by 1080pCat
parent 20dfb3af69
commit 074da2b796
12 changed files with 31 additions and 16 deletions
+7 -2
View File
@@ -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