Create directional helpers for air alarms. (#24652)

* Create directional helpers for air alarms.

* rename script, need alarm_area always

* I love automated changes
This commit is contained in:
warriorstar-orion
2024-04-12 18:24:12 +00:00
committed by GitHub
parent 6a3da2726d
commit b15ed89463
13 changed files with 803 additions and 3359 deletions
@@ -1,8 +1,4 @@
/*
AIR ALARM ITEM
Handheld air alarm frame, for placing on walls
Code shamelessly copied from apc_frame
*/
/// Handheld air alarm frame, for placing on walls.
/obj/item/mounted/frame/alarm_frame
name = "air alarm frame"
desc = "Used for building Air Alarms"
@@ -14,7 +10,7 @@ Code shamelessly copied from apc_frame
mount_requirements = MOUNTED_FRAME_SIMFLOOR | MOUNTED_FRAME_NOSPACE
/obj/item/mounted/frame/alarm_frame/do_build(turf/on_wall, mob/user)
var/obj/machinery/alarm/A = new/obj/machinery/alarm(get_turf(src), get_dir(on_wall, user), 1)
var/obj/machinery/alarm/A = new/obj/machinery/alarm(get_turf(src), get_dir(user, on_wall), 1)
A.buildstage = AIR_ALARM_FRAME // Set the build stage to the initial state
A.update_icon()
qdel(src)