mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Crafting fireaxe cabinets, mech removal cabinets, and mirrors (#72856)
## About The Pull Request Breaking down #72371 because it's... unreasonably large. So this PR splits the crafting recipe file, and adds 3 new recipes for fireaxe cabinets, mech removal cabinets, and mirrors. ## Why It's Good For The Game Wallening compliance, and more of me on my shit breaking down long files. ## Changelog 🆑 Tattle qol: fireaxe cabinets, mech removal cabinets, and mirrors can now all be crafted /🆑 Co-authored-by: tattle <article.disaster@gmail.com>
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
var/item_path = /obj/item/fireaxe
|
||||
/// Overlay we get when the item is inside us.
|
||||
var/item_overlay = "axe"
|
||||
/// Whether we should populate our own contents on Initialize()
|
||||
var/populate_contents = TRUE
|
||||
|
||||
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/fireaxecabinet, 32)
|
||||
|
||||
@@ -31,7 +33,8 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/fireaxecabinet, 32)
|
||||
|
||||
/obj/structure/fireaxecabinet/Initialize(mapload)
|
||||
. = ..()
|
||||
held_item = new item_path(src)
|
||||
if(populate_contents)
|
||||
held_item = new item_path(src)
|
||||
update_appearance()
|
||||
|
||||
/obj/structure/fireaxecabinet/Destroy()
|
||||
@@ -115,7 +118,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/fireaxecabinet, 32)
|
||||
if(!(flags_1 & NODECONSTRUCT_1))
|
||||
if(held_item && loc)
|
||||
held_item.forceMove(loc)
|
||||
new /obj/item/stack/sheet/iron(loc, 2)
|
||||
new /obj/item/wallframe/fireaxecabinet(loc)
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/fireaxecabinet/blob_act(obj/structure/blob/B)
|
||||
@@ -190,6 +193,17 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/fireaxecabinet, 32)
|
||||
update_appearance()
|
||||
return
|
||||
|
||||
/obj/structure/fireaxecabinet/empty
|
||||
populate_contents = FALSE
|
||||
|
||||
/obj/item/wallframe/fireaxecabinet
|
||||
name = "fire axe cabinet"
|
||||
desc = "Home to a window's greatest nightmare. Apply to wall to use."
|
||||
icon = 'icons/obj/wallmounts.dmi'
|
||||
icon_state = "fireaxe"
|
||||
result_path = /obj/structure/fireaxecabinet/empty
|
||||
pixel_shift = 32
|
||||
|
||||
/obj/structure/fireaxecabinet/mechremoval
|
||||
name = "mech removal tool cabinet"
|
||||
desc = "There is a small label that reads \"For Emergency use only\" along with details for safe use of the tool. As if."
|
||||
@@ -198,3 +212,19 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/fireaxecabinet, 32)
|
||||
item_overlay = "crowbar"
|
||||
|
||||
MAPPING_DIRECTIONAL_HELPERS(/obj/structure/fireaxecabinet/mechremoval, 32)
|
||||
|
||||
/obj/structure/fireaxecabinet/mechremoval/deconstruct(disassembled = TRUE)
|
||||
if(!(flags_1 & NODECONSTRUCT_1))
|
||||
if(held_item && loc)
|
||||
held_item.forceMove(loc)
|
||||
new /obj/item/wallframe/fireaxecabinet/mechremoval(loc)
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/fireaxecabinet/mechremoval/empty
|
||||
populate_contents = FALSE
|
||||
|
||||
/obj/item/wallframe/fireaxecabinet/mechremoval
|
||||
name = "mech removal tool cabinet"
|
||||
desc = "Home to a very special crowbar. Apply to wall to use."
|
||||
icon_state = "mechremoval"
|
||||
result_path = /obj/structure/fireaxecabinet/mechremoval/empty
|
||||
|
||||
Reference in New Issue
Block a user