Pod fixes.

This commit is contained in:
d3athrow
2014-07-15 19:41:40 -05:00
committed by ZomgPonies
parent 81c643924d
commit b9b6d09f23
@@ -426,28 +426,30 @@
return 1
/obj/spacepod/relaymove(mob/user, direction)
if(battery && battery.charge && health)
var/moveship = 1
if(battery && battery.charge >= 3 && health)
src.dir = direction
switch(direction)
if(1)
if(inertia_dir == 2)
inertia_dir = 0
return 0
moveship = 0
if(2)
if(inertia_dir == 1)
inertia_dir = 0
return 0
moveship = 0
if(4)
if(inertia_dir == 8)
inertia_dir = 0
return 0
moveship = 0
if(8)
if(inertia_dir == 4)
inertia_dir = 0
return 0
step(src, direction)
if(istype(src.loc, /turf/space))
inertia_dir = direction
moveship = 0
if(moveship)
step(src, direction)
if(istype(src.loc, /turf/space))
inertia_dir = direction
else
if(!battery)
user << "<span class='warning'>No energy cell detected.</span>"
@@ -458,7 +460,7 @@
else
user << "<span class='warning'>Unknown error has occurred, yell at pomf.</span>"
return 0
battery.use(3)
battery.charge = max(0, battery.charge - 3)
/obj/effect/landmark/spacepod/random
name = "spacepod spawner"