mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
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>
This commit is contained in:
@@ -3,8 +3,11 @@
|
||||
desc = "Used for building lights."
|
||||
icon = 'icons/obj/lighting.dmi'
|
||||
icon_state = "tube-construct-item"
|
||||
|
||||
mount_requirements = MOUNTED_FRAME_SIMFLOOR
|
||||
metal_sheets_refunded = 2
|
||||
///specifies which type of light fixture this frame will build
|
||||
var/fixture_type = "tube"
|
||||
mount_reqs = list("simfloor")
|
||||
|
||||
/obj/item/mounted/frame/light_fixture/do_build(turf/on_wall, mob/user)
|
||||
to_chat(user, "You begin attaching [src] to \the [on_wall].")
|
||||
@@ -36,4 +39,4 @@
|
||||
icon = 'icons/obj/lighting.dmi'
|
||||
icon_state = "bulb-construct-item"
|
||||
fixture_type = "bulb"
|
||||
sheets_refunded = 1
|
||||
metal_sheets_refunded = 1
|
||||
|
||||
Reference in New Issue
Block a user