More while loop stuff, removed shitloads of unnecessary curly brackets in the map reader, fixed ED-209 projectiles

This commit is contained in:
SkyMarshal
2012-06-22 14:10:48 -07:00
parent 668f81c329
commit 616be6eed8
16 changed files with 133 additions and 194 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
/proc/get_turf(turf/location as turf)
while (location)
if (istype(location, /turf))
if (istype(location))
return location
location = location.loc
@@ -271,8 +271,8 @@ the implant may become unstable and either pre-maturely inject the subject or si
if(istype(imp_in, /mob/))
var/mob/T = imp_in
T.gib()
explosion(find_loc(imp_in), 1, 3, 4, 6, 3)
var/turf/t = find_loc(imp_in)
explosion(get_turf(imp_in), 1, 3, 4, 6, 3)
var/turf/t = get_turf(imp_in)
if(t)
t.hotspot_expose(3500,125)
del(src)
+5 -6
View File
@@ -229,12 +229,11 @@
step(src, get_dir(user, src))
if (src.health <= 0)
if (src.dir == SOUTHWEST)
var/index = null
index = 0
while(index < 2)
new /obj/item/weapon/shard( src.loc )
if(reinf) new /obj/item/stack/rods( src.loc)
index++
new /obj/item/weapon/shard( src.loc )
new /obj/item/weapon/shard( src.loc )
if(reinf)
new /obj/item/stack/rods( src.loc)
new /obj/item/stack/rods( src.loc)
else
new /obj/item/weapon/shard( src.loc )
if(reinf) new /obj/item/stack/rods( src.loc)