Skip to content

Commit

Permalink
stop friers from frying if there's nothing in the basket (#4861)
Browse files Browse the repository at this point in the history
  • Loading branch information
flleeppyy authored Jan 13, 2025
1 parent 79de095 commit 9566906
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
if(istype(weapon, /obj/item/reagent_containers/cooking_container/deep_basket) && !basket)
weapon.forceMove(src)
basket = weapon
if (!length(basket.contents))
frying = FALSE
icon_state = "fryer_off"
return

icon_state = "fryer_on"
frying = TRUE
for(var/obj/item/item as anything in basket.contents)
Expand Down

0 comments on commit 9566906

Please # to comment.