mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user