Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 30c4469

Browse files
authored
sprinkles (#22609)
1 parent 9ffea33 commit 30c4469

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

code/modules/food_and_drinks/food/snacks_pastry.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
icon_state = "donut1"
99
bitesize = 5
1010
bonus_reagents = list(/datum/reagent/consumable/sugar = 1)
11-
list_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/sprinkles = 1, /datum/reagent/consumable/sugar = 2)
11+
list_reagents = list(/datum/reagent/consumable/nutriment = 3, /datum/reagent/consumable/sugar = 2)
1212
filling_color = "#D2691E"
1313
tastes = list("donut" = 1)
1414
foodtype = JUNKFOOD | GRAIN | FRIED | SUGAR | BREAKFAST
@@ -27,7 +27,7 @@
2727
is_frosted = TRUE
2828
name = "frosted [name]"
2929
icon_state = frosted_icon //delish!
30-
reagents.add_reagent(/datum/reagent/consumable/sprinkles, 1)
30+
reagents.add_reagent(/datum/reagent/consumable/sprinkles, 2)
3131
filling_color = "#FF69B4"
3232
return TRUE
3333

code/modules/food_and_drinks/recipes/tablecraft/recipes_pastry.dm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
result = /obj/item/reagent_containers/food/snacks/donut
3232
category = CAT_PASTRY
3333

34+
/datum/crafting_recipe/food/donut/on_craft_completion(mob/user, atom/result)
35+
. = ..()
36+
var/obj/item/reagent_containers/food/snacks/donut/donut_result = result
37+
if(donut_result.is_frosted)
38+
donut_result.reagents.add_reagent(/datum/reagent/consumable/sprinkles, 2)
39+
3440
/datum/crafting_recipe/food/jellydonut
3541
name = "Jelly Donut"
3642
reqs = list(

0 commit comments

Comments
 (0)