Skip to content

Commit

Permalink
Fixed fortune cookies not dropping their fortune.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruix committed Aug 29, 2016
1 parent 5b7b670 commit 07e9007
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
1 change: 0 additions & 1 deletion code/modules/crafting/craft.dm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@
return 1

/datum/personal_crafting/proc/construct_item(mob/user, datum/crafting_recipe/R)
for(var/A in R.parts)
var/list/contents = get_surroundings(user)
var/send_feedback = 1
if(check_contents(R, contents))
Expand Down
15 changes: 8 additions & 7 deletions code/modules/food_and_drinks/food/snacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,18 @@
return 1

//Called when you finish tablecrafting a snack.
/obj/item/weapon/reagent_containers/food/snacks/CheckParts(list/parts_list, datum/crafting_recipe/R)
/obj/item/weapon/reagent_containers/food/snacks/CheckParts(list/parts_list, datum/crafting_recipe/food/R)
..()
reagents.reagent_list.Cut()
for(var/obj/item/weapon/reagent_containers/RC in contents)
RC.reagents.trans_to(reagents, RC.reagents.maximum_volume)
contents_loop:
for(var/A in contents)
for(var/B in initial(R.parts))
if(istype(A, B))
continue contents_loop
qdel(A)
if(istype(R))
contents_loop:
for(var/A in contents)
for(var/B in R.real_parts)
if(istype(A, B))
continue contents_loop
qdel(A)
feedback_add_details("food_made","[type]")
if(bonus_reagents.len)
for(var/r_id in bonus_reagents)
Expand Down
4 changes: 4 additions & 0 deletions code/modules/food_and_drinks/recipes/food_mixtures.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/datum/crafting_recipe/food
var/real_parts

/datum/crafting_recipe/food/New()
real_parts = parts.Copy()
parts |= reqs

//////////////////////////////////////////FOOD MIXTURES////////////////////////////////////
Expand Down

0 comments on commit 07e9007

Please sign in to comment.