Files
Paradise/code/game/objects/items/mountable_frames/air_alarm_frame.dm
T
benjicoots cc13c52fed Make air alarms start with the correct default state when placing the… (#21635)
* Make air alarms start with the correct default state when placing the frame

* Update code/game/objects/items/mountable_frames/air_alarm_frame.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* undefs to allow CI passing

* define moment

---------

Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2023-08-12 19:27:42 +01:00

21 lines
669 B
Plaintext

/*
AIR ALARM ITEM
Handheld air alarm frame, for placing on walls
Code shamelessly copied from apc_frame
*/
/obj/item/mounted/frame/alarm_frame
name = "air alarm frame"
desc = "Used for building Air Alarms"
icon = 'icons/obj/monitors.dmi'
icon_state = "alarm_bitem"
materials = list(MAT_METAL=2000)
metal_sheets_refunded = 1
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)
A.buildstage = AIR_ALARM_FRAME // Set the build stage to the initial state
A.update_icon()
qdel(src)