Files
VOREStation/code/game/gamemodes/wizard/spell7.dm
T

25 lines
796 B
Plaintext

/client/proc/smokecloud()
set category = "Spells"
set name = "Smoke"
set desc = "Creates a cloud of smoke"
if(usr.stat)
usr << "Not when you're incapicated."
return
if(!istype(usr:wear_suit, /obj/item/clothing/suit/wizrobe))
usr << "I don't feel strong enough without my robe."
return
if(!istype(usr:shoes, /obj/item/clothing/shoes/sandal))
usr << "I don't feel strong enough without my sandals."
return
if(!istype(usr:head, /obj/item/clothing/head/wizard))
usr << "I don't feel strong enough without my hat."
return
usr.verbs -= /client/proc/smokecloud
spawn(120)
usr.verbs += /client/proc/smokecloud
var/datum/effects/system/bad_smoke_spread/smoke = new /datum/effects/system/bad_smoke_spread()
smoke.set_up(10, 0, usr.loc)
smoke.start()