-Added a do_after() to Artificer spells so they can't spam walls/rwalls

-Added myself to the admins.txt so I don't have to keep dealing with it

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4139 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
sieve32@gmail.com
2012-07-22 06:29:05 +00:00
parent f572819d51
commit 8a41c895ec
3 changed files with 29 additions and 16 deletions
+24 -15
View File
@@ -12,6 +12,7 @@
var/list/newVars = list() //vars of the summoned objects will be replaced with those where they meet
//should have format of list("emagged" = 1,"name" = "Wizard's Justicebot"), for example
var/delay = 1//Go Go Gadget Inheritance
/obj/effect/proc_holder/spell/aoe_turf/conjure/cast(list/targets)
@@ -19,23 +20,31 @@
if(T.density && !summon_ignore_density)
targets -= T
for(var/i=0,i<summon_amt,i++)
if(!targets.len)
break
var/summoned_object_type = text2path(pick(summon_type))
var/spawn_place = pick(targets)
if(summon_ignore_prev_spawn_points)
targets -= spawn_place
var/atom/summoned_object = new summoned_object_type(spawn_place)
if(do_after(usr,delay))
for(var/i=0,i<summon_amt,i++)
if(!targets.len)
break
var/summoned_object_type = text2path(pick(summon_type))
var/spawn_place = pick(targets)
if(summon_ignore_prev_spawn_points)
targets -= spawn_place
var/atom/summoned_object = new summoned_object_type(spawn_place)
for(var/varName in newVars)
if(varName in summoned_object.vars)
summoned_object.vars[varName] = newVars[varName]
for(var/varName in newVars)
if(varName in summoned_object.vars)
summoned_object.vars[varName] = newVars[varName]
if(summon_lifespan)
spawn(summon_lifespan)
if(summoned_object)
del(summoned_object)
else
switch(charge_type)
if("recharge")
charge_counter = charge_max - 5//So you don't lose charge for a failed spell(Also prevents most over-fill)
if("charges")
charge_counter++//Ditto, just for different spell types
if(summon_lifespan)
spawn(summon_lifespan)
if(summoned_object)
del(summoned_object)
return
+3
View File
@@ -253,6 +253,7 @@
range = 0
summon_type = list("/turf/simulated/floor/engine/cult")
centcomm_cancast = 0 //Stop crashing the server by spawning turfs on transit tiles
delay = 10
/obj/effect/proc_holder/spell/aoe_turf/conjure/wall
name = "Leser Construction"
@@ -266,6 +267,7 @@
range = 0
summon_type = list("/turf/simulated/wall/cult")
centcomm_cancast = 0 //Stop crashing the server by spawning turfs on transit tiles
delay = 20
/obj/effect/proc_holder/spell/aoe_turf/conjure/wall/reinforced
name = "Greater Construction"
@@ -278,6 +280,7 @@
invocation_type = "none"
range = 0
centcomm_cancast = 0 //Stop crashing the server by spawning turfs on transit tiles
delay = 50
summon_type = list("/turf/simulated/wall/r_wall")
+2 -1
View File
@@ -16,4 +16,5 @@ carnwennan - Game Master
ikarrus - Game Master
cheridan - Game Master
giacomand - Game Master
rockdtben - Game Master
rockdtben - Game Master
sieve - Game Master