implements isfood helper

This commit is contained in:
timothyteakettle
2020-04-17 01:45:15 +01:00
parent aa6d6883e3
commit a4cc54781f
7 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -201,7 +201,7 @@
var/atom/movable/I = new R.result (get_turf(user.loc))
I.CheckParts(parts, R)
if(isitem(I))
if(istype(I, /obj/item/reagent_containers/food))
if(isfood(I))
var/obj/item/reagent_containers/food/food_result = I
var/total_quality = 0
var/total_items = 0