mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Remove reagent ids and use typepaths where applicable * Remove reagent ids and use typepaths where applicable * Resolves some easier conflicts * Resolves medical_tools.dm * Resolves robots.dm * Handles cinnamon Wow, I cannot do this manually. Fuckin' regex time. * Removes 27 merge conflicts (!!!!!) * Makes it actually half-attempt to compile * I just -- I give up, it's over * mk * mk * mk * hm * ok * what a bloody chain reaction jesus * ok * and done * went threw and changed the ones I missed * ok * dangit altoids hurry the fek up * Fixes whatever I found find thru this regex: reagents[\s\w]*=[\s\w]*list\([^\/]+\)
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
/datum/disease/parrot_possession
|
|
name = "Parrot Possession"
|
|
max_stages = 1
|
|
spread_text = "Paranormal"
|
|
spread_flags = DISEASE_SPREAD_SPECIAL
|
|
disease_flags = CURABLE
|
|
cure_text = "Holy Water."
|
|
cures = list(/datum/reagent/water/holywater)
|
|
cure_chance = 20
|
|
agent = "Avian Vengence"
|
|
viable_mobtypes = list(/mob/living/carbon/human)
|
|
desc = "Subject is possessed by the vengeful spirit of a parrot. Call the priest."
|
|
severity = DISEASE_SEVERITY_MEDIUM
|
|
infectable_biotypes = list(MOB_ORGANIC, MOB_UNDEAD, MOB_INORGANIC, MOB_ROBOTIC)
|
|
bypasses_immunity = TRUE //2spook
|
|
var/mob/living/simple_animal/parrot/Poly/ghost/parrot
|
|
|
|
/datum/disease/parrot_possession/stage_act()
|
|
..()
|
|
if(!parrot || parrot.loc != affected_mob)
|
|
cure()
|
|
else if(prob(parrot.speak_chance))
|
|
if(parrot.speech_buffer.len)
|
|
affected_mob.say(pick(parrot.speech_buffer), forced = "parrot possession")
|
|
|
|
/datum/disease/parrot_possession/cure()
|
|
if(parrot && parrot.loc == affected_mob)
|
|
parrot.forceMove(affected_mob.drop_location())
|
|
affected_mob.visible_message("<span class='danger'>[parrot] is violently driven out of [affected_mob]!</span>", "<span class='userdanger'>[parrot] bursts out of your chest!</span>")
|
|
..()
|