Skip to content

Commit

Permalink
Custom sushi
Browse files Browse the repository at this point in the history
  • Loading branch information
PatienceStPim committed Aug 22, 2024
1 parent 3e99137 commit 2d0c7eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion code/game/objects/items/food/sushi.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

/obj/item/food/seaweed_sheet
name = "seaweed sheet"
desc = "A dried sheet of seaweed used for making sushi."
desc = "A dried sheet of seaweed used for making sushi. Use an ingredient on it to start making custom sushi!"
icon = 'icons/obj/food/food_ingredients.dmi'
icon_state = "seaweed_sheet"
food_reagents = list(
Expand All @@ -43,6 +43,25 @@
foodtypes = VEGETABLES
w_class = WEIGHT_CLASS_SMALL

/obj/item/food/seaweed_sheet/Initialize(mapload)
. = ..()
AddComponent(/datum/component/customizable_reagent_holder, /obj/item/food/sushi_roll/empty, CUSTOM_INGREDIENT_ICON_FILL, max_ingredients = 6)

/obj/item/food/sushi_roll/empty //for custom sushi creation
name = "sushi"
desc = "A roll of customized sushi."
icon_state = "vegetariansushiroll"
tastes = list()
foodtypes = NONE
slice_type = /obj/item/food/sushi_slice/empty

/obj/item/food/sushi_slice/empty
name = "sushi slice"
desc = "A slice of customized sushi."
icon_state = "vegetariansushislice"
tastes = list()
foodtypes = NONE

/obj/item/food/sushi_roll/vegetarian
name = "vegetarian sushi roll"
desc = "A roll of simple vegetarian sushi with rice, carrots, and potatoes. Sliceable into pieces!"
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/storage/bags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
STR.max_w_class = WEIGHT_CLASS_NORMAL
STR.max_combined_w_class = 100
STR.max_items = 100
STR.can_hold = typecacheof(list(/obj/item/food/grown, /obj/item/seeds, /obj/item/grown, /obj/item/reagent_containers/honeycomb, /obj/item/disk/plantgene))
STR.can_hold = typecacheof(list(/obj/item/food/grown, /obj/item/seeds, /obj/item/grown, /obj/item/reagent_containers/honeycomb, /obj/item/disk/plantgene, /obj/item/food/seaweed_sheet))

////////

Expand Down

0 comments on commit 2d0c7eb

Please sign in to comment.