Brass light fixtures (#27312)

* add brass lights

* start adding clockwork floor lights

* implement floor lights

* fix an error and add missing brass light sprites
This commit is contained in:
Paul
2024-11-13 14:14:31 -05:00
committed by GitHub
parent 37412b2c95
commit bd7cbb1a54
6 changed files with 136 additions and 0 deletions
@@ -9,6 +9,8 @@
var/metal_sheets_refunded = 2
///amount of glass sheets returned upon the frame being wrenched
var/glass_sheets_refunded = 0
///amount of brass sheets returned upon the frame being wrenched
var/brass_sheets_refunded = 0
///The requirements for this frame to be placed, uses bit flags
var/mount_requirements = 0
@@ -18,6 +20,8 @@
new /obj/item/stack/sheet/metal(user_turf, metal_sheets_refunded)
if(glass_sheets_refunded)
new /obj/item/stack/sheet/glass(user_turf, glass_sheets_refunded)
if(brass_sheets_refunded)
new /obj/item/stack/tile/brass(user_turf, brass_sheets_refunded)
qdel(src)
/obj/item/mounted/frame/try_build(turf/on_wall, mob/user)
@@ -24,6 +24,12 @@
newlight = new /obj/machinery/light_construct(constrloc)
if("floor")
newlight = new /obj/machinery/light_construct/floor(on_wall)
if("clockwork_bulb")
newlight = new /obj/machinery/light_construct/clockwork/small(constrloc)
if("clockwork_tube")
newlight = new /obj/machinery/light_construct/clockwork(constrloc)
if("clockwork_floor")
newlight = new /obj/machinery/light_construct/clockwork/floor(on_wall)
else
newlight = new /obj/machinery/light_construct/small(constrloc)
newlight.dir = constrdir
@@ -52,3 +58,31 @@
metal_sheets_refunded = 3
buildon_types = list(/turf/simulated/floor)
allow_floor_mounting = TRUE
/obj/item/mounted/frame/light_fixture/clockwork
name = "brass light fixture frame"
desc = "Used for building brass lights."
icon_state = "clockwork_tube-construct-item"
fixture_type = "clockwork_tube"
metal_sheets_refunded = 0
brass_sheets_refunded = 2
/obj/item/mounted/frame/light_fixture/clockwork/small
name = "brass small light fixture frame"
desc = "Used for building small brass lights."
icon = 'icons/obj/lighting.dmi'
icon_state = "clockwork_bulb-construct-item"
fixture_type = "clockwork_bulb"
metal_sheets_refunded = 0
brass_sheets_refunded = 1
/obj/item/mounted/frame/light_fixture/clockwork/floor
name = "brass floor light fixture frame"
desc = "Used for building brass floor lights."
icon = 'icons/obj/lighting.dmi'
icon_state = "clockwork_floor-construct-item"
fixture_type = "clockwork_floor"
metal_sheets_refunded = 0
brass_sheets_refunded = 3
buildon_types = list(/turf/simulated/floor)
allow_floor_mounting = TRUE