/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/datums/diseases/cold.dm
66 строк
2 KB
unid15
Audible coughs (#10737)
30 июн 2016, 03:08
30 июн 2016, 03:08
adad10e
Код
Авторство
О чём код?
/datum/disease/cold name = "The Cold" max_stages = 3 spread = "Airborne" cure = "Rest & Spaceacillin" cure_id = SPACEACILLIN agent = "XY-rhinovirus" affected_species = list("Human", "Monkey") permeability_mod = 0.5 desc = "If left untreated the subject will contract the flu." severity = "Minor" /datum/disease/cold/stage_act() ..() switch(stage) if(2) /* if(affected_mob.sleeping && prob(40)) //removed until sleeping is fixed to_chat(affected_mob, "<span class='notice'>You feel better.</span>") cure() return */ if(affected_mob.lying && prob(40)) //changed FROM prob(10) until sleeping is fixed to_chat(affected_mob, "<span class='notice'>You feel better.</span>") cure() return if(prob(1) && prob(5)) to_chat(affected_mob, "<span class='notice'>You feel better.</span>") cure() return if(prob(1)) affected_mob.emote("sneeze") if(prob(1)) affected_mob.audible_cough() if(prob(1)) to_chat(affected_mob, "<span class='warning'>Your throat feels sore.</span>") if(prob(1)) to_chat(affected_mob, "<span class='warning'>Mucous runs down the back of your throat.</span>") if(3) /* if(affected_mob.sleeping && prob(25)) //removed until sleeping is fixed to_chat(affected_mob, "<span class='notice'>You feel better.</span>") cure() return */ if(affected_mob.lying && prob(25)) //changed FROM prob(5) until sleeping is fixed to_chat(affected_mob, "<span class='notice'>You feel better.</span>") cure() return if(prob(1) && prob(1)) to_chat(affected_mob, "<span class='notice'>You feel better.</span>") cure() return if(prob(1)) affected_mob.emote("sneeze") if(prob(1)) affected_mob.audible_cough() if(prob(1)) to_chat(affected_mob, "<span class='warning'>Your throat feels sore.</span>") if(prob(1)) to_chat(affected_mob, "<span class='warning'>Mucous runs down the back of your throat.</span>") if(prob(1) && prob(50)) if(!affected_mob.resistances.Find(/datum/disease/flu)) var/datum/disease/Flu = new /datum/disease/flu(0) affected_mob.contract_disease(Flu,1) cure()