mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
45 lines
1.8 KiB
Plaintext
45 lines
1.8 KiB
Plaintext
/datum/disease/anxiety
|
|
name = "Severe Anxiety"
|
|
form = "Infection"
|
|
max_stages = 4
|
|
spread_text = "On contact"
|
|
spread_flags = DISEASE_SPREAD_BLOOD | DISEASE_SPREAD_CONTACT_SKIN | DISEASE_SPREAD_CONTACT_FLUIDS
|
|
cure_text = "Ethanol (Liquid Courage)"
|
|
cures = list(/datum/reagent/consumable/ethanol)
|
|
agent = "Excess Lepidopticides"
|
|
viable_mobtypes = list(/mob/living/carbon/human)
|
|
desc = "If left untreated subject will regurgitate butterflies."
|
|
severity = DISEASE_SEVERITY_MINOR
|
|
|
|
|
|
/datum/disease/anxiety/stage_act(seconds_per_tick, times_fired)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
|
|
switch(stage)
|
|
if(2) //also changes say, see say.dm
|
|
if(SPT_PROB(2.5, seconds_per_tick))
|
|
to_chat(affected_mob, span_notice("You feel anxious."))
|
|
if(3)
|
|
if(SPT_PROB(5, seconds_per_tick))
|
|
to_chat(affected_mob, span_notice("Your stomach flutters."))
|
|
if(SPT_PROB(2.5, seconds_per_tick))
|
|
to_chat(affected_mob, span_notice("You feel panicky."))
|
|
if(SPT_PROB(1, seconds_per_tick))
|
|
to_chat(affected_mob, span_danger("You're overtaken with panic!"))
|
|
affected_mob.adjust_confusion(rand(2 SECONDS, 3 SECONDS))
|
|
if(4)
|
|
if(SPT_PROB(5, seconds_per_tick))
|
|
to_chat(affected_mob, span_danger("You feel butterflies in your stomach."))
|
|
if(SPT_PROB(2.5, seconds_per_tick))
|
|
affected_mob.visible_message(span_danger("[affected_mob] stumbles around in a panic."), \
|
|
span_userdanger("You have a panic attack!"))
|
|
affected_mob.adjust_confusion(rand(6 SECONDS, 8 SECONDS))
|
|
affected_mob.adjust_jitter(rand(12 SECONDS, 16 SECONDS))
|
|
if(SPT_PROB(1, seconds_per_tick))
|
|
affected_mob.visible_message(span_danger("[affected_mob] coughs up butterflies!"), \
|
|
span_userdanger("You cough up butterflies!"))
|
|
new /mob/living/basic/butterfly(affected_mob.loc)
|
|
new /mob/living/basic/butterfly(affected_mob.loc)
|