Files
Paradise/code/game/objects/items/mountable_frames/buttons_switches.dm
Sirryan2002 b4539344e4 Minor Mountable Frame Code Refactor (#18738)
* 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>
2022-08-27 16:04:43 -05:00

34 lines
1.2 KiB
Plaintext

/obj/item/mounted/frame/driver_button
name = "mass driver button frame"
desc = "Used for repairing or building mass driver buttons"
icon = 'icons/obj/objects.dmi'
icon_state = "launcherbtt_frame"
mount_requirements = MOUNTED_FRAME_SIMFLOOR
metal_sheets_refunded = 1
/obj/item/mounted/frame/driver_button/do_build(turf/on_wall, mob/user)
new /obj/machinery/driver_button(get_turf(user), get_dir(user, on_wall))
qdel(src)
/obj/item/mounted/frame/light_switch
name = "light switch frame"
desc = "Used for repairing or building light switches"
icon = 'icons/obj/power.dmi'
icon_state = "light-p"
mount_requirements = MOUNTED_FRAME_SIMFLOOR | MOUNTED_FRAME_NOSPACE
metal_sheets_refunded = 1
/obj/item/mounted/frame/light_switch/do_build(turf/on_wall, mob/user)
new /obj/machinery/light_switch(get_turf(user), get_dir(user, on_wall))
qdel(src)
/obj/item/mounted/frame/light_switch/windowtint
name = "window tint control button frame"
desc = "Used for repairing or building window tint control buttons"
/obj/item/mounted/frame/light_switch/windowtint/do_build(turf/on_wall, mob/user)
new /obj/machinery/button/windowtint(get_turf(user), get_dir(user, on_wall))
qdel(src)