mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
Fixed symptoms with medical issues (#18068)
I was so caught up in testing the complicated stuff that I neglected to properly test some of the symptoms and got my mins and maxes confused! Fixed some symptoms doing doing nothing and added a couple more options.
This commit is contained in:
@@ -93,17 +93,21 @@
|
||||
if(prob(5))
|
||||
owner.AdjustWeakened(5)
|
||||
if("permanent weakness")
|
||||
owner.weakened = min(owner.weakened,10)
|
||||
owner.weakened = max(owner.weakened,10)
|
||||
if("temporary sleeping")
|
||||
if(prob(5))
|
||||
owner.AdjustSleeping(5)
|
||||
if("permanent sleeping")
|
||||
owner.sleeping = min(owner.sleeping,10)
|
||||
owner.sleeping = max(owner.sleeping+10,10)
|
||||
if("jittery")
|
||||
owner.make_jittery(min(owner.jitteriness,10))
|
||||
owner.make_jittery(100)
|
||||
if("paralysed")
|
||||
owner.paralysis = min(owner.paralysis,10)
|
||||
|
||||
owner.paralysis = max(owner.paralysis,10)
|
||||
if("cough")
|
||||
if(prob(3))
|
||||
owner.emote("cough")
|
||||
if("confusion")
|
||||
owner.confused = max(owner.confused,10)
|
||||
|
||||
// Proc for setting all this up for GMs
|
||||
|
||||
@@ -163,8 +167,10 @@
|
||||
if(!cure_surgery)
|
||||
return
|
||||
|
||||
var/list/possible_symptoms = list("vomit","temporary weakness","permanent weakness","temporary sleeping","permanent sleeping","jittery","paralysed","cough","confusion","None")
|
||||
|
||||
var/symptom_text = tgui_input_text(user,"What text should be displayed to the affected patient about their symptoms?","Symptoms")
|
||||
var/symptom_affect = tgui_input_list(user, "What observable symptom should they display?", "Symptoms", list("vomit","temporary weakness","permanent weakness","temporary sleeping","permanent sleeping","jittery","paralysed","None"))
|
||||
var/symptom_affect = tgui_input_list(user, "What observable symptom should they display?", "Symptoms", possible_symptoms)
|
||||
if(!symptom_affect)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user