mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-29 18:31:03 +00:00
* Base stuff * Thresholds * Cockroaches, adjustments * Extrapolator + TGUI Update * Adjustments * Updoot * Revert "Updoot" This reverts commit8c27a2525e. * Gwuh * test * heals * Genetic * Holder and vomit * Indents * Compilable :) * Various fixes * Updates Symptoms * Genevirus * Neutered Symptoms * Adjustments * rads * Extra symptoms * Extra extra symptoms * Adjustments, fixes, more symptoms * Powder that makes the linter green * Finishing touches? * Fixup maps in TGM format5041170ae1: maps/expedition_vr/beach/submaps/quarantineshuttle.dmm Automatically commited by: tools\mapmerge2\fixup.py * Last bits * Defines * Oxy heal * I crave the green check * fix * Maps * Macrophages to turf * Fimxes * Fixes :) * Vomit * Preset * Fire desc * SPELLING MISTAKE * Extra stuffs * types Allows infecting children of a type * feet paws? * fix * Fixes * Update * Flags * Update _disease.dm * Infinite blood glitch (100% real) * virus data properly carries over * GODSPEED, KELENIUS YOUR 10 YEAR TODO IS FINALLY DONE * define * U2 * Implicit * Damn it Fleming * oops linter is kill * Update _reagents.dm * Extra check * . * ough * fixes * Small changes --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
32 lines
974 B
Plaintext
32 lines
974 B
Plaintext
/mob/living/proc/regenerate_limbs(noheal = FALSE, list/excluded_zones = list())
|
|
SEND_SIGNAL(src, COMSIG_LIVING_REGENERATE_LIMBS, noheal, excluded_zones)
|
|
|
|
/mob/living/carbon/human/regenerate_limbs(noheal = FALSE, list/excluded_zones = list())
|
|
var/list/zone_list = BP_ALL
|
|
if(length(excluded_zones))
|
|
zone_list -= excluded_zones
|
|
for(var/organ in zone_list)
|
|
regenerate_limb(organ)
|
|
for(var/obj/item/organ/external/stump/stump in organs)
|
|
qdel(stump)
|
|
|
|
/mob/living/proc/regenerate_limb(limb_zone, noheal)
|
|
return
|
|
|
|
/mob/living/carbon/human/regenerate_limb(limb_zone, noheal)
|
|
var/obj/item/organ/external/bodypart
|
|
if(get_organ(limb_zone))
|
|
bodypart = get_organ(limb_zone)
|
|
if(!bodypart.is_stump())
|
|
return FALSE
|
|
bodypart.removed()
|
|
qdel(bodypart)
|
|
bodypart = null
|
|
var/list/organ_data = species.has_limbs[limb_zone]
|
|
var/limb_path = organ_data["path"]
|
|
var/obj/item/organ/O = new limb_path(src)
|
|
organ_data["descriptor"] = O.name
|
|
|
|
update_icons_body()
|
|
return TRUE
|