mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
More while loop stuff, removed shitloads of unnecessary curly brackets in the map reader, fixed ED-209 projectiles
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user