Skip to content

Commit

Permalink
Adds custom sushi and custom onigiri
Browse files Browse the repository at this point in the history
  • Loading branch information
PatienceStPim committed Aug 22, 2024
1 parent 2d0c7eb commit 96c9da4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
25 changes: 25 additions & 0 deletions code/game/objects/items/food/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,28 @@

/obj/item/food/rationpack/proc/check_liked(fraction, mob/M) //Nobody likes rationpacks. Nobody.
return FOOD_DISLIKED


/obj/item/food/onigiri
name = "onigiri"
desc = "A ball of cooked rice surrounding a filling formed into a triangular shape and wrapped in seaweed. Can add fillings!"
icon = 'icons/obj/food/sushi.dmi'
icon_state = "onigiri"
food_reagents = list(
/datum/reagent/consumable/nutriment = 4,
/datum/reagent/consumable/nutriment/vitamin = 2,
)
tastes = list("rice" = 1, "dried seaweed" = 1)
foodtypes = VEGETABLES
w_class = WEIGHT_CLASS_SMALL

/obj/item/food/onigiri/Initialize(mapload)
. = ..()
AddComponent(/datum/component/customizable_reagent_holder, /obj/item/food/onigiri/empty, CUSTOM_INGREDIENT_ICON_NOCHANGE, max_ingredients = 4)

/obj/item/food/onigiri/empty //for custom onigiri creation
name = "onigiri"
foodtypes = VEGETABLES
tastes = list()
icon_state = "onigiri"
desc = "A ball of cooked rice surrounding a filling formed into a triangular shape and wrapped in seaweed."
14 changes: 7 additions & 7 deletions code/game/objects/items/food/sushi.dm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

/obj/item/food/sushi_roll/futomaki
name = "futomaki sushi roll"
desc = "A roll of futomaki sushi, made of boiled egg, fish, and cucumber. Sliceable"
desc = "A roll of futomaki sushi, made of boiled egg, fish, and cabbage. Sliceable"
icon_state = "futomaki_sushi_roll"
food_reagents = list(
/datum/reagent/consumable/nutriment = 12,
Expand All @@ -117,39 +117,39 @@

/obj/item/food/sushi_slice/futomaki
name = "futomaki sushi slice"
desc = "A slice of futomaki sushi, made of boiled egg, fish, and cucumber."
desc = "A slice of futomaki sushi, made of boiled egg, fish, and cabbage."
icon_state = "futomaki_sushi_slice"
food_reagents = list(
/datum/reagent/consumable/nutriment = 3,
/datum/reagent/consumable/nutriment/protein = 2,
/datum/reagent/consumable/nutriment/vitamin = 1,
)
tastes = list("boiled rice" = 4, "fish" = 5, "egg" = 3, "dried seaweed" = 2, "cucumber" = 2)
tastes = list("boiled rice" = 4, "fish" = 5, "egg" = 3, "dried seaweed" = 2, "cabbage" = 2)
foodtypes = VEGETABLES | MEAT

/obj/item/food/sushi_roll/philadelphia
name = "Philadelphia sushi roll"
desc = "A roll of Philadelphia sushi, made of cheese, fish, and cucumber. Sliceable"
desc = "A roll of Philadelphia sushi, made of cheese, fish, and cabbage. Sliceable"
icon_state = "philadelphia_sushi_roll"
food_reagents = list(
/datum/reagent/consumable/nutriment = 12,
/datum/reagent/consumable/nutriment/protein = 8,
/datum/reagent/consumable/nutriment/vitamin = 8,
)
tastes = list("boiled rice" = 4, "fish" = 5, "creamy cheese" = 3, "dried seaweed" = 2, "cucumber" = 2)
tastes = list("boiled rice" = 4, "fish" = 5, "creamy cheese" = 3, "dried seaweed" = 2, "cabbage" = 2)
foodtypes = VEGETABLES | MEAT | DAIRY
slice_type = /obj/item/food/sushi_slice/philadelphia

/obj/item/food/sushi_slice/philadelphia
name = "Philadelphia sushi slice"
desc = "A roll of Philadelphia sushi, made of cheese, fish, and cucumber."
desc = "A roll of Philadelphia sushi, made of cheese, fish, and cabbage."
icon_state = "philadelphia_sushi_slice"
food_reagents = list(
/datum/reagent/consumable/nutriment = 3,
/datum/reagent/consumable/nutriment/protein = 2,
/datum/reagent/consumable/nutriment/vitamin = 2,
)
tastes = list("boiled rice" = 4, "fish" = 5, "creamy cheese" = 3, "dried seaweed" = 2, "cucumber" = 2)
tastes = list("boiled rice" = 4, "fish" = 5, "creamy cheese" = 3, "dried seaweed" = 2, "cabbage" = 2)
foodtypes = VEGETABLES | MEAT | DAIRY

/obj/item/food/nigiri_sushi
Expand Down
10 changes: 10 additions & 0 deletions code/modules/food_and_drinks/recipes/tablecraft/recipes_misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
)
result = /obj/item/food/pingles
subcategory = CAT_MISCFOOD

/datum/crafting_recipe/food/swirl_lollipop
name = "swirl lollipop"
reqs = list(
Expand All @@ -182,3 +183,12 @@
)
result = /obj/item/food/swirl_lollipop
subcategory = CAT_MISCFOOD

/datum/crafting_recipe/food/onigiri
name = "Onigiri"
reqs = list(
/obj/item/food/salad/boiledrice = 1,
/obj/item/food/seaweed_sheet = 1,
)
result = /obj/item/food/onigiri
subcategory = CAT_MISCFOOD

0 comments on commit 96c9da4

Please sign in to comment.