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\([^\/]+\)
118 lines
3.9 KiB
Plaintext
118 lines
3.9 KiB
Plaintext
/datum/disease/wizarditis
|
|
name = "Wizarditis"
|
|
max_stages = 4
|
|
spread_text = "Airborne"
|
|
cure_text = "The Manly Dorf"
|
|
cures = list(/datum/reagent/consumable/ethanol/manly_dorf)
|
|
cure_chance = 100
|
|
agent = "Rincewindus Vulgaris"
|
|
viable_mobtypes = list(/mob/living/carbon/human)
|
|
disease_flags = CAN_CARRY|CAN_RESIST|CURABLE
|
|
permeability_mod = 0.75
|
|
desc = "Some speculate that this virus is the cause of the Space Wizard Federation's existence. Subjects affected show the signs of mental retardation, yelling obscure sentences or total gibberish. On late stages subjects sometime express the feelings of inner power, and, cite, 'the ability to control the forces of cosmos themselves!' A gulp of strong, manly spirits usually reverts them to normal, humanlike, condition."
|
|
severity = DISEASE_SEVERITY_HARMFUL
|
|
required_organs = list(/obj/item/bodypart/head)
|
|
|
|
/*
|
|
BIRUZ BENNAR
|
|
SCYAR NILA - teleport
|
|
NEC CANTIO - dis techno
|
|
EI NATH - shocking grasp
|
|
AULIE OXIN FIERA - knock
|
|
TARCOL MINTI ZHERI - forcewall
|
|
STI KALY - blind
|
|
*/
|
|
|
|
/datum/disease/wizarditis/stage_act()
|
|
..()
|
|
|
|
switch(stage)
|
|
if(2)
|
|
if(prob(1)&&prob(50))
|
|
affected_mob.say(pick("You shall not pass!", "Expeliarmus!", "By Merlins beard!", "Feel the power of the Dark Side!"), forced = "wizarditis")
|
|
if(prob(1)&&prob(50))
|
|
to_chat(affected_mob, "<span class='danger'>You feel [pick("that you don't have enough mana", "that the winds of magic are gone", "an urge to summon familiar")].</span>")
|
|
|
|
|
|
if(3)
|
|
if(prob(1)&&prob(50))
|
|
affected_mob.say(pick("NEC CANTIO!","AULIE OXIN FIERA!", "STI KALY!", "TARCOL MINTI ZHERI!"), forced = "wizarditis")
|
|
if(prob(1)&&prob(50))
|
|
to_chat(affected_mob, "<span class='danger'>You feel [pick("the magic bubbling in your veins","that this location gives you a +1 to INT","an urge to summon familiar")].</span>")
|
|
|
|
if(4)
|
|
|
|
if(prob(1))
|
|
affected_mob.say(pick("NEC CANTIO!","AULIE OXIN FIERA!","STI KALY!","EI NATH!"), forced = "wizarditis")
|
|
return
|
|
if(prob(1)&&prob(50))
|
|
to_chat(affected_mob, "<span class='danger'>You feel [pick("the tidal wave of raw power building inside","that this location gives you a +2 to INT and +1 to WIS","an urge to teleport")].</span>")
|
|
spawn_wizard_clothes(50)
|
|
if(prob(1)&&prob(1))
|
|
teleport()
|
|
return
|
|
|
|
|
|
|
|
/datum/disease/wizarditis/proc/spawn_wizard_clothes(chance = 0)
|
|
if(ishuman(affected_mob))
|
|
var/mob/living/carbon/human/H = affected_mob
|
|
if(prob(chance))
|
|
if(!istype(H.head, /obj/item/clothing/head/wizard))
|
|
if(!H.dropItemToGround(H.head))
|
|
qdel(H.head)
|
|
H.equip_to_slot_or_del(new /obj/item/clothing/head/wizard(H), SLOT_HEAD)
|
|
return
|
|
if(prob(chance))
|
|
if(!istype(H.wear_suit, /obj/item/clothing/suit/wizrobe))
|
|
if(!H.dropItemToGround(H.wear_suit))
|
|
qdel(H.wear_suit)
|
|
H.equip_to_slot_or_del(new /obj/item/clothing/suit/wizrobe(H), SLOT_WEAR_SUIT)
|
|
return
|
|
if(prob(chance))
|
|
if(!istype(H.shoes, /obj/item/clothing/shoes/sandal/magic))
|
|
if(!H.dropItemToGround(H.shoes))
|
|
qdel(H.shoes)
|
|
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/sandal/magic(H), SLOT_SHOES)
|
|
return
|
|
else
|
|
var/mob/living/carbon/H = affected_mob
|
|
if(prob(chance))
|
|
var/obj/item/staff/S = new(H)
|
|
if(!H.put_in_hands(S))
|
|
qdel(S)
|
|
|
|
|
|
/datum/disease/wizarditis/proc/teleport()
|
|
var/list/theareas = get_areas_in_range(80, affected_mob)
|
|
for(var/area/space/S in theareas)
|
|
theareas -= S
|
|
|
|
if(!theareas||!theareas.len)
|
|
return
|
|
|
|
var/area/thearea = pick(theareas)
|
|
|
|
var/list/L = list()
|
|
for(var/turf/T in get_area_turfs(thearea.type))
|
|
if(T.z != affected_mob.z)
|
|
continue
|
|
if(T.name == "space")
|
|
continue
|
|
if(!T.density)
|
|
var/clear = 1
|
|
for(var/obj/O in T)
|
|
if(O.density)
|
|
clear = 0
|
|
break
|
|
if(clear)
|
|
L+=T
|
|
|
|
if(!L)
|
|
return
|
|
|
|
affected_mob.say("SCYAR NILA [uppertext(thearea.name)]!", forced = "wizarditis teleport")
|
|
affected_mob.forceMove(pick(L))
|
|
|
|
return
|