Skip to content

Commit

Permalink
Chef fixes: no more "the the oven" or putting grabs in the oven.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphz committed Mar 8, 2016
1 parent fbd1ee3 commit 6576a7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/obj/submachine/cooking.dm
Expand Up @@ -544,14 +544,17 @@ var/list/oven_recipes = list()
if(istype(W, check_path))
proceed = 1
break
if(istype(W, /obj/item/grab))
proceed = 0

if (amount == 1)
var/cakecount
for (var/obj/item/reagent_containers/food/snacks/cake/cream/C in src.contents) cakecount++
if (cakecount == 1) proceed = 1
if (!proceed)
boutput(user, "<span style=\"color:red\">You can't put that in the oven!</span>")
return
user.visible_message("<span style=\"color:blue\">[user] loads [W] into the [src].</span>")
user.visible_message("<span style=\"color:blue\">[user] loads [W] into [src].</span>")
user.u_equip(W)
W.set_loc(src)
W.dropped()
Expand Down

0 comments on commit 6576a7d

Please sign in to comment.