mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Add constructable floor lights + mapping subtypes (#93537)
## About The Pull Request Features: - Floor lights can be constructed using a small light fixture on the turf you are standing on - Floor light construction sprites - `/burned` subtypes for lights - Convert `/build` subtypes to `/empty` subtypes with `UpdatePaths` script ## Why It's Good For The Game Floor lights can now be constructed in game using the same mechanics as other lights. The `/burned` and `/empty` subtypes might be useful for mapping. ## Changelog 🆑 add: Add constructable floor lights by using a small light fixture on the floor. They are constructed the same way as other lights. qol: Add `/burned` subtype to `/obj/machinery/light` for mapping shenanigans image: Add floor light construction sprites map: Converted the `/built` subtype for `/obj/machinery/light` to be `/empty` and added an UpdatePaths script. /🆑 --------- Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
@@ -141,9 +141,11 @@
|
||||
tool.play_tool_sound(src, 75)
|
||||
switch(fixture_type)
|
||||
if("tube")
|
||||
new_light = new /obj/machinery/light/built(loc)
|
||||
new_light = new /obj/machinery/light/empty(loc)
|
||||
if("bulb")
|
||||
new_light = new /obj/machinery/light/small/built(loc)
|
||||
new_light = new /obj/machinery/light/small/empty(loc)
|
||||
if("floor")
|
||||
new_light = new /obj/machinery/light/floor/empty(loc)
|
||||
new_light.setDir(dir)
|
||||
new_light.find_and_hang_on_wall()
|
||||
transfer_fingerprints_to(new_light)
|
||||
@@ -169,3 +171,9 @@
|
||||
icon_state = "bulb-construct-stage1"
|
||||
fixture_type = "bulb"
|
||||
sheets_refunded = 1
|
||||
|
||||
/obj/structure/light_construct/floor
|
||||
name = "floor light fixture frame"
|
||||
icon_state = "floor-construct-stage1"
|
||||
fixture_type = "floor"
|
||||
sheets_refunded = 1
|
||||
|
||||
Reference in New Issue
Block a user