mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
/*
|
|
//////////////////////////////////////
|
|
|
|
Sneezing
|
|
|
|
Very Noticable.
|
|
Increases resistance.
|
|
Doesn't increase stage speed.
|
|
Very transmissible.
|
|
Low Level.
|
|
|
|
Bonus
|
|
Forces a spread type of AIRBORNE
|
|
with extra range!
|
|
|
|
//////////////////////////////////////
|
|
*/
|
|
|
|
/datum/symptom/sneeze
|
|
name = "Sneezing"
|
|
desc = "The virus causes irritation of the nasal cavity, making the host sneeze occasionally."
|
|
stealth = -2
|
|
resistance = 3
|
|
stage_speed = 0
|
|
transmittable = 4
|
|
level = 1
|
|
severity = 1
|
|
symptom_delay_min = 5
|
|
symptom_delay_max = 35
|
|
threshold_desc = list(
|
|
"Transmission 9" = "Increases sneezing range, spreading the virus over 6 meter cone instead of over a 4 meter cone.",
|
|
"Stealth 4" = "The symptom remains hidden until active.",
|
|
)
|
|
|
|
/datum/symptom/sneeze/Start(datum/disease/advance/A)
|
|
if(!..())
|
|
return
|
|
if(A.properties["transmittable"] >= 9) //longer spread range
|
|
power = 2
|
|
if(A.properties["stealth"] >= 4)
|
|
suppress_warning = TRUE
|
|
|
|
/datum/symptom/sneeze/Activate(datum/disease/advance/A)
|
|
if(!..() || HAS_TRAIT(A.affected_mob,TRAIT_NOBREATH))
|
|
return
|
|
var/mob/living/M = A.affected_mob
|
|
switch(A.stage)
|
|
if(1, 2, 3)
|
|
if(!suppress_warning)
|
|
M.emote("sniff")
|
|
else
|
|
M.emote("sneeze")
|
|
if(M.CanSpreadAirborneDisease()) //don't spread germs if they covered their mouth
|
|
A.spread(4 + power) |