mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #5460 from Woodratt/07312018_apcspritechange
APC Sprite Change
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user