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
This commit is contained in:
uporotiy
2011-01-16 00:25:45 +00:00
parent b0e2e22aa2
commit 16ca227fdc
19 changed files with 785 additions and 2 deletions
+10
View File
@@ -99,6 +99,7 @@
src.verbs += /obj/admins/proc/vmode //start vote
src.verbs += /obj/admins/proc/votekill //abort vote
src.verbs += /client/proc/give_spell
src.verbs += /client/proc/cmd_admin_alienize
src.verbs += /client/proc/cmd_admin_changelinginize
src.verbs += /client/proc/cmd_admin_abominize // -- TLE
@@ -222,6 +223,7 @@
src.verbs += /obj/admins/proc/vmode //start vote
src.verbs += /obj/admins/proc/votekill //abort vote
src.verbs += /client/proc/give_spell
src.verbs += /client/proc/cmd_admin_alienize
src.verbs += /client/proc/cmd_admin_changelinginize
src.verbs += /client/proc/cmd_admin_abominize // -- TLE
@@ -1053,6 +1055,7 @@
src.verbs -= /obj/admins/proc/vmode //start vote
src.verbs -= /obj/admins/proc/votekill //abort vote
src.verbs -= /client/proc/give_spell
src.verbs -= /client/proc/cmd_admin_alienize
src.verbs -= /client/proc/cmd_admin_changelinginize
src.verbs -= /client/proc/cmd_admin_abominize // -- TLE
@@ -1334,6 +1337,13 @@
runerandom()
usr << "[wordtravel] is travel, [wordblood] is blood, [wordjoin] is join, [wordhell] is Hell, [worddestr] is destroy, [wordtech] is technology, [wordself] is self, [wordsee] is see"
/client/proc/give_spell(mob/T as mob in world) // -- Urist
set category = "Fun"
set name = "Give Spell"
set desc = "Gives a spell to a mob."
var/obj/spell/S = input("Choose the spell to give to that guy", "ABRAKADABRA") in spells
T.spell_list += new S
/client/proc/make_sound(var/obj/O in world) // -- TLE
set category = "Special Verbs"
set name = "Make Sound"