mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-04-09 14:02:13 +01:00
Stuff goes under types. Types have procs. Never have 500 lines of repeated code again. I came very close to crying while editing this. You should appreciate that. ---- This commit entirely reworks how placing things on walls work- Posters have intentionally been left alone to reduce the amount of lines changed. With this commit, wall-mounted objects are no longer snowflaked into the wall file.
16 lines
473 B
Plaintext
16 lines
473 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"
|
|
m_amt = 2000
|
|
mount_reqs = list("simfloor", "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) |