mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 10:37:17 +01:00
* bugfix turned into a refactor * fixes exploit with producing infinite metal * Update code/__DEFINES/construction.dm Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
19 lines
549 B
Plaintext
19 lines
549 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)
|
|
new /obj/machinery/alarm(get_turf(src), get_dir(on_wall, user), 1)
|
|
qdel(src)
|