mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
- 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
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
/obj/spell/mutate
|
|
name = "Mutate"
|
|
desc = "This spell causes you to turn into a hulk and gain telekinesis for a short while."
|
|
|
|
school = "transmutation"
|
|
recharge = 400
|
|
clothes_req = 1
|
|
invocation = "BIRUZ BENNAR"
|
|
invocation_type = "shout"
|
|
message = "\blue You feel strong! Your mind expands!"
|
|
range = -1 //can affect only the user by default, but with var editing can be a mutate other spell
|
|
var/mutate_duration = 300 //in deciseconds
|
|
var/list/mutation_types = list("hulk","tk") //right now understands only "hulk", "tk", "cold resist", "xray" and "clown"
|
|
|
|
/obj/spell/mutate/Click()
|
|
..()
|
|
|
|
if(!cast_check())
|
|
return
|
|
|
|
var/mob/M
|
|
|
|
if(range>=0)
|
|
M = input("Choose whom to mutate", "ABRAKADABRA") as mob in view(usr,range)
|
|
else
|
|
M = usr
|
|
|
|
invocation()
|
|
|
|
M << text("[message]")
|
|
var/mutation = 0
|
|
for(var/MT in mutation_types)
|
|
switch(MT)
|
|
if("tk")
|
|
mutation |= 1
|
|
if("cold resist")
|
|
mutation |= 2
|
|
if("xray")
|
|
mutation |= 4
|
|
if("hulk")
|
|
mutation |= 8
|
|
if("clown")
|
|
mutation |= 16
|
|
M.mutations |= mutation
|
|
spawn (mutate_duration)
|
|
M.mutations &= ~mutation
|
|
return |