mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-20 02:27:58 +01:00
25 lines
796 B
Plaintext
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()
|
|
|