Code cleanup 2: Hell's Kitchen

Made is_hot and is_sharp object procs, not global procs. Added sharpness vars for objects. Things use these procs OOP now.
Made all kitchen knives inherit from utensil/knife. This also fixes an issue with plastic knives, #2863.
Forks now work with all food properly. Fuck oldcode.
Made some procs macros, moved a maths proc, shrunk unsorted.dm a little.
Removed a redundant get_turf_loc proc that was just get_turf.
This commit is contained in:
ComicIronic
2015-02-08 13:11:54 +00:00
parent 31fade80a4
commit 4cbb67516a
69 changed files with 400 additions and 445 deletions

View File

@@ -274,7 +274,7 @@
return
scanner.computer.inventory.Add(src)
user << "[W]'s screen flashes: 'Book stored in buffer. Title added to general inventory.'"
else if(istype(W, /obj/item/weapon/kitchenknife) || istype(W, /obj/item/weapon/wirecutters))
else if(istype(W, /obj/item/weapon/kitchen/utensil/knife/large) || istype(W, /obj/item/weapon/wirecutters))
if(carved) return
user << "<span class='notice'>You begin to carve out [title].</span>"
if(do_after(user, 30))