Skip to content

Commit

Permalink
Keycard auth directionals & air alarm fix (lizardqueenlexi#172)
Browse files Browse the repository at this point in the history
* add directionals for keycard auths

* fix air alarm directions

---------

Co-authored-by: tattle <article.disaster@gmail.com>
  • Loading branch information
dragomagol and tattle authored Mar 19, 2023
1 parent 08ed542 commit 471132c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/atmospherics/machinery/airalarm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ GLOBAL_LIST_EMPTY_TYPED(air_alarms, /obj/machinery/airalarm)

/obj/machinery/airalarm/setDir(newdir)
. = ..()
switch(dir)
switch(newdir)
if(NORTH)
pixel_x = 0
pixel_y = 0
Expand Down
32 changes: 31 additions & 1 deletion code/modules/security_levels/keycard_authentication.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,37 @@ GLOBAL_DATUM_INIT(keycard_events, /datum/events, new)
var/mob/triggerer = null
var/waiting = FALSE

MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/keycard_auth, 26)
/obj/machinery/keycard_auth/directional/north
dir = SOUTH
pixel_y = 26

/obj/machinery/keycard_auth/directional/south
dir = NORTH
pixel_y = 2

/obj/machinery/keycard_auth/directional/east
dir = WEST
pixel_x = 12

/obj/machinery/keycard_auth/directional/west
dir = EAST
pixel_x = -14

/obj/machinery/keycard_auth/setDir(newdir)
. = ..()
switch(newdir)
if(NORTH)
pixel_x = 0
pixel_y = 2
if(SOUTH)
pixel_x = 0
pixel_y = 26
if(EAST)
pixel_x = -14
pixel_y = 0
if(WEST)
pixel_x = 12
pixel_y = 0

/obj/machinery/keycard_auth/Initialize(mapload)
. = ..()
Expand Down
Binary file modified icons/obj/monitors.dmi
Binary file not shown.

0 comments on commit 471132c

Please sign in to comment.