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:
Razharas
2014-04-28 22:44:00 +04:00
committed by ZomgPonies
parent 61359f74af
commit 3d762cd892
2 changed files with 12 additions and 5 deletions
+8 -1
View File
@@ -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