Skip to content

Commit

Permalink
[MIRROR] Fix table top deconstruction (#1880)
Browse files Browse the repository at this point in the history
* Fix table top deconstruction

* Update tables_racks.dm

* Update tables_racks.dm

---------

Co-authored-by: _0Steven <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Apr 10, 2024
1 parent 698cff9 commit 69cb104
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions code/game/objects/structures/tables_racks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@
to_chat(user, span_notice("You start deconstructing [src]..."))
if(tool.use_tool(src, user, 4 SECONDS, volume=50))
playsound(loc, 'sound/items/deconstruct.ogg', 50, TRUE)
<<<<<<< HEAD

Check failure on line 223 in code/game/objects/structures/tables_racks.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got '<<', expected one of: newline, '/', identifier
deconstruct(TRUE, 1)
=======
frame = null
deconstruct(TRUE)
>>>>>>> 8d85730be64 ([MIRROR] Fix table top deconstruction (#1880))
return ITEM_INTERACT_SUCCESS

/obj/structure/table/attackby(obj/item/I, mob/living/user, params)
Expand Down Expand Up @@ -297,6 +302,7 @@
/obj/structure/table/proc/AfterPutItemOnTable(obj/item/thing, mob/living/user)
return

<<<<<<< HEAD
/obj/structure/table/deconstruct(disassembled = TRUE, wrench_disassembly = 0)
if(!(obj_flags & NO_DECONSTRUCTION))
var/turf/T = get_turf(src)
Expand All @@ -311,6 +317,20 @@
else
new framestack(T, framestackamount)
qdel(src)
=======
/obj/structure/table/atom_deconstruct(disassembled = TRUE)
var/turf/target_turf = get_turf(src)
if(buildstack)
new buildstack(target_turf, buildstackamount)
else
for(var/datum/material/mat in custom_materials)
new mat.sheet_type(target_turf, FLOOR(custom_materials[mat] / SHEET_MATERIAL_AMOUNT, 1))

if(frame)
new frame(target_turf)
else
new framestack(get_turf(src), framestackamount)
>>>>>>> 8d85730be64 ([MIRROR] Fix table top deconstruction (#1880))

/obj/structure/table/rcd_vals(mob/user, obj/item/construction/rcd/the_rcd)
if(the_rcd.mode == RCD_DECONSTRUCT)
Expand Down

0 comments on commit 69cb104

Please sign in to comment.