[MIRROR] Extensive surgery additions (#5590)
* Extensive surgery additions * Update role_preferences.dm * Update surgery_step.dm
This commit is contained in:
committed by
Poojawa
parent
d8faf15832
commit
1e65c813f0
@@ -10,12 +10,13 @@
|
||||
var/gain_text = "<span class='notice'>You feel traumatized.</span>"
|
||||
var/lose_text = "<span class='notice'>You no longer feel traumatized.</span>"
|
||||
var/can_gain = TRUE //can this be gained through random traumas?
|
||||
var/permanent = FALSE //can this be cured?
|
||||
var/resilience = TRAUMA_RESILIENCE_BASIC //how hard is this to cure?
|
||||
|
||||
/datum/brain_trauma/New(obj/item/organ/brain/B, _permanent)
|
||||
/datum/brain_trauma/New(obj/item/organ/brain/B, _resilience)
|
||||
brain = B
|
||||
owner = B.owner
|
||||
permanent = _permanent
|
||||
if(_resilience)
|
||||
resilience = _resilience
|
||||
if(owner)
|
||||
on_gain()
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//They cannot be cured with chemicals, and require brain surgery to solve.
|
||||
|
||||
/datum/brain_trauma/severe
|
||||
resilience = TRAUMA_RESILIENCE_SURGERY
|
||||
|
||||
/datum/brain_trauma/severe/mute
|
||||
name = "Mutism"
|
||||
|
||||
@@ -964,7 +964,7 @@
|
||||
var/angle = input(usr, "Choose angle to rotate","Transform Mod") as null|num
|
||||
if(!isnull(angle))
|
||||
A.transform = M.Turn(angle)
|
||||
|
||||
|
||||
href_list["datumrefresh"] = href_list["modtransform"]
|
||||
|
||||
else if(href_list["rotatedatum"])
|
||||
@@ -1006,7 +1006,6 @@
|
||||
|
||||
var/list/traumas = subtypesof(/datum/brain_trauma)
|
||||
var/result = input(usr, "Choose the brain trauma to apply","Traumatize") as null|anything in traumas
|
||||
var/permanent = alert("Do you want to make the trauma unhealable?", "Permanently Traumatize", "Yes", "No")
|
||||
if(!usr)
|
||||
return
|
||||
if(QDELETED(C))
|
||||
@@ -1014,7 +1013,7 @@
|
||||
return
|
||||
|
||||
if(result)
|
||||
C.gain_trauma(result, permanent)
|
||||
C.gain_trauma(result)
|
||||
|
||||
href_list["datumrefresh"] = href_list["givetrauma"]
|
||||
|
||||
@@ -1027,7 +1026,7 @@
|
||||
to_chat(usr, "This can only be done to instances of type /mob/living/carbon")
|
||||
return
|
||||
|
||||
C.cure_all_traumas(TRUE, TRUE)
|
||||
C.cure_all_traumas(TRUE, TRAUMA_RESILIENCE_ABSOLUTE)
|
||||
|
||||
href_list["datumrefresh"] = href_list["curetraumas"]
|
||||
|
||||
|
||||
@@ -54,12 +54,11 @@
|
||||
M.adjustBrainLoss(-3)
|
||||
if(trauma_heal_mild && iscarbon(M))
|
||||
var/mob/living/carbon/C = M
|
||||
if(prob(30) && C.has_trauma_type(BRAIN_TRAUMA_SPECIAL))
|
||||
C.cure_trauma_type(BRAIN_TRAUMA_SPECIAL)
|
||||
if(prob(10) && C.has_trauma_type(BRAIN_TRAUMA_MILD))
|
||||
C.cure_trauma_type(BRAIN_TRAUMA_MILD)
|
||||
if(trauma_heal_severe && prob(10) && C.has_trauma_type(BRAIN_TRAUMA_SEVERE))
|
||||
C.cure_trauma_type(BRAIN_TRAUMA_SEVERE)
|
||||
if(prob(10))
|
||||
if(trauma_heal_severe)
|
||||
C.cure_trauma_type(TRAUMA_RESILIENCE_LOBOTOMY)
|
||||
else
|
||||
C.cure_trauma_type(TRAUMA_RESILIENCE_BASIC)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user