mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user