Files
CHOMPStation2/code/datums/spells/blind.dm
uporotiy 16ca227fdc Reworked Spellcasting System v0.9
- Very flexible - you can edit some of the spell's vars on the fly, or hardcode variations of the core spells.
 - Everyone can access it - you could even have observers with spells.
 - Slightly better UI - no longer will the spell verbs blink in and out of your verb panel.
1.0 will convert the existing spell sources (ie wizard spellbook) to this system and convert the last two spells to it.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@860 316c924e-a436-60f5-8080-3fe189b3f50e
2011-01-16 00:25:45 +00:00

43 lines
1.1 KiB
Plaintext

/obj/spell/blind
name = "Blind"
desc = "This spell temporarly blinds a single person and does not require wizard garb."
school = "transmutation"
recharge = 300
clothes_req = 0
invocation = "STI KALY"
invocation_type = "whisper"
message = "\blue Your eyes cry out in pain!"
var/blind_time = 300 //in deciseconds
var/eye_blind = 10 //I have no idea what these two do
var/eye_blurry = 20 //but eh, they're in the code
//I would add the ability to choose different disabilities (do ho ho), but I have no idea which bit corresponds to which disability
/obj/spell/blind/Click()
..()
if(!cast_check())
return
var/mob/M = input("Choose whom to blind", "ABRAKADABRA") as mob in oview(usr,range)
invocation()
var/obj/overlay/B = new /obj/overlay( M.loc )
B.icon_state = "blspell"
B.icon = 'wizard.dmi'
B.name = "spell"
B.anchored = 1
B.density = 0
B.layer = 4
M.canmove = 0
spawn(5)
del(B)
M.canmove = 1
M << text("[message]")
M.disabilities |= 1
spawn(blind_time)
M.disabilities &= ~1
M.eye_blind = eye_blind
M.eye_blurry = eye_blurry
return