Files
CHOMPStation2/code/datums/spells/forcewall.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

30 lines
724 B
Plaintext

/obj/spell/forcewall
name = "Forcewall"
desc = "This spell creates an unbreakable wall that lasts for 30 seconds and does not need wizard garb."
school = "transmutation"
recharge = 100
clothes_req = 0
invocation = "TARCOL MINTI ZHERI"
invocation_type = "whisper"
range = 0 //default creates only a 1x1 forcewall in the user's tile
var/wall_lifespan = 300 //in deciseconds
var/wall_visibility = 1 //if 0, the created wall(s) is(are) invisible
/obj/spell/forcewall/Click()
..()
if(!cast_check())
return
invocation()
var/list/forcefields = list()
for(var/turf/T in range(usr,range))
forcefields += new /obj/forcefield(T)
spawn (wall_lifespan)
del (forcefields)
return