Merge pull request #5460 from Woodratt/07312018_apcspritechange

APC Sprite Change
This commit is contained in:
Atermonera
2018-08-02 12:24:40 -07:00
committed by VirgoBot
parent 8b4447b762
commit 22f91f07a5
3 changed files with 3 additions and 6 deletions

View File

@@ -88,7 +88,6 @@
var/locked = 1
var/coverlocked = 1
var/aidisabled = 0
var/tdir = null
var/obj/machinery/power/terminal/terminal = null
var/lastused_light = 0
var/lastused_equip = 0
@@ -165,11 +164,9 @@
// this allows the APC to be embedded in a wall, yet still inside an area
if (building)
set_dir(ndir)
src.tdir = dir // to fix Vars bug
set_dir(SOUTH)
pixel_x = (src.tdir & 3)? 0 : (src.tdir == 4 ? 24 : -24)
pixel_y = (src.tdir & 3)? (src.tdir ==1 ? 24 : -24) : 0
pixel_x = (src.dir & 3)? 0 : (src.dir == 4 ? 24 : -24)
pixel_y = (src.dir & 3)? (src.dir ==1 ? 24 : -24) : 0
if (building==0)
init()
else
@@ -209,7 +206,7 @@
// create a terminal object at the same position as original turf loc
// wires will attach to this
terminal = new/obj/machinery/power/terminal(src.loc)
terminal.set_dir(tdir)
terminal.set_dir(dir)
terminal.master = src
/obj/machinery/power/apc/proc/init()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 B

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 62 KiB