mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
//wip wip wup
|
||||
/obj/structure/mirror
|
||||
name = "mirror"
|
||||
desc = "Mirror mirror on the wall, who's the most robust of them all?"
|
||||
@@ -91,7 +90,9 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/mirror, 28)
|
||||
/obj/structure/mirror/deconstruct(disassembled = TRUE)
|
||||
if(!(flags_1 & NODECONSTRUCT_1))
|
||||
if(!disassembled)
|
||||
new /obj/item/shard( src.loc )
|
||||
new /obj/item/shard(loc)
|
||||
else
|
||||
new /obj/item/wallframe/mirror(loc)
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/mirror/welder_act(mob/living/user, obj/item/I)
|
||||
@@ -105,10 +106,10 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/mirror, 28)
|
||||
if(!I.tool_start_check(user, amount=0))
|
||||
return TRUE
|
||||
|
||||
to_chat(user, span_notice("You begin repairing [src]..."))
|
||||
if(I.use_tool(src, user, 10, volume=50))
|
||||
to_chat(user, span_notice("You repair [src]."))
|
||||
broken = 0
|
||||
balloon_alert(user, "repairing...")
|
||||
if(I.use_tool(src, user, 10, volume = 50))
|
||||
balloon_alert(user, "repaired")
|
||||
broken = FALSE
|
||||
icon_state = initial(icon_state)
|
||||
desc = initial(desc)
|
||||
|
||||
@@ -121,6 +122,17 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/mirror, 28)
|
||||
if(BURN)
|
||||
playsound(src, 'sound/effects/hit_on_shattered_glass.ogg', 70, TRUE)
|
||||
|
||||
/obj/item/wallframe/mirror
|
||||
name = "mirror"
|
||||
desc = "An unmounted mirror. Attach it to a wall to use."
|
||||
icon = 'icons/obj/watercloset.dmi'
|
||||
icon_state = "mirror"
|
||||
custom_materials = list(
|
||||
/datum/material/glass = MINERAL_MATERIAL_AMOUNT,
|
||||
/datum/material/silver = MINERAL_MATERIAL_AMOUNT,
|
||||
)
|
||||
result_path = /obj/structure/mirror
|
||||
pixel_shift = 28
|
||||
|
||||
/obj/structure/mirror/magic
|
||||
name = "magic mirror"
|
||||
|
||||
Reference in New Issue
Block a user