Adds Plastic Surgery; Fixes Disfigurement

This commit is contained in:
Fox McCloud
2018-05-24 17:52:23 -04:00
parent b28dcff65a
commit a9be0490ee
7 changed files with 89 additions and 159 deletions
@@ -115,7 +115,13 @@
M.adjustToxLoss(-3)
M.adjustBruteLoss(-12)
M.adjustFireLoss(-12)
M.status_flags &= ~DISFIGURED
if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/head/head = H.get_organ("head")
if(head && head.disfigured)
head.disfigured = FALSE
head.update_icon()
H.regenerate_icons()
..()
/datum/reagent/medicine/rezadone
@@ -131,7 +137,13 @@
M.adjustCloneLoss(-1) //What? We just set cloneloss to 0. Why? Simple; this is so external organs properly unmutate.
M.adjustBruteLoss(-1)
M.adjustFireLoss(-1)
M.status_flags &= ~DISFIGURED
if(ishuman(M))
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/head/head = H.get_organ("head")
if(head && head.disfigured)
head.disfigured = FALSE
head.update_icon()
H.regenerate_icons()
..()
/datum/reagent/medicine/rezadone/overdose_process(mob/living/M, severity)
@@ -611,11 +611,15 @@
return
if(!H.unacidable)
var/obj/item/organ/external/affecting = H.get_organ("head")
affecting.receive_damage(0, 75)
var/obj/item/organ/external/head/affecting = H.get_organ("head")
if(affecting)
affecting.receive_damage(0, 75)
if(!affecting.disfigured)
affecting.disfigured = TRUE
affecting.update_icon()
H.regenerate_icons()
H.UpdateDamageIcon()
H.emote("scream")
H.status_flags |= DISFIGURED
/datum/reagent/facid/reaction_obj(obj/O, volume)
if((istype(O, /obj/item) || istype(O, /obj/structure/glowshroom)))