mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Readded the crafting to tables
Well at least now i can brag about how you can do this with just few lines Conflicts: code/game/objects/structures/tables_racks.dm
This commit is contained in:
@@ -39,16 +39,23 @@
|
||||
update_icon()
|
||||
update_adjacent()
|
||||
|
||||
craft_holder = new craft_holder()
|
||||
craft_holder.recipes = crafting_master.all_crafting_recipes
|
||||
|
||||
/obj/structure/table/Destroy()
|
||||
update_adjacent()
|
||||
..()
|
||||
|
||||
|
||||
/obj/structure/table/proc/destroy()
|
||||
new parts(loc)
|
||||
density = 0
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/table/MouseDrop(atom/over)
|
||||
if(usr.stat || usr.lying || !Adjacent(usr) || (over != usr))
|
||||
return
|
||||
craft_holder.interact(usr)
|
||||
|
||||
/obj/structure/table/update_icon()
|
||||
if(flipped)
|
||||
var/type = 0
|
||||
|
||||
Reference in New Issue
Block a user