Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TG Mirror] Add appy slices [MDB IGNORE] #30

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions code/game/objects/items/food/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/obj/item/food/watermelonslice
name = "watermelon slice"
desc = "A slice of watery goodness."
icon = 'icons/obj/service/hydroponics/harvest.dmi'
icon_state = "watermelonslice"
food_reagents = list(
/datum/reagent/water = 1,
Expand All @@ -15,6 +16,22 @@
juice_typepath = /datum/reagent/consumable/watermelonjuice
w_class = WEIGHT_CLASS_SMALL

/obj/item/food/appleslice
name = "apple slice"
desc = "The perfect after-school snack."
icon = 'icons/obj/service/hydroponics/harvest.dmi'
icon_state = "appleslice"
food_reagents = list(
/datum/reagent/consumable/applejuice = 1,
/datum/reagent/consumable/nutriment/vitamin = 0.2,
/datum/reagent/consumable/nutriment = 1,
)
tastes = list("apple" = 1)
foodtypes = FRUIT
food_flags = FOOD_FINGER_FOOD
juice_typepath = /datum/reagent/consumable/applejuice
w_class = WEIGHT_CLASS_SMALL

/obj/item/food/hugemushroomslice
name = "huge mushroom slice"
desc = "A slice from a huge mushroom."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@
result = /obj/item/food/watermelonslice
category = CAT_SALAD

/datum/crafting_recipe/food/knife/appleslice
reqs = list(/obj/item/food/grown/apple = 1)
result = /obj/item/food/appleslice
category = CAT_SALAD

/datum/crafting_recipe/food/knife/kamaboko_slice
reqs = list(/obj/item/food/kamaboko = 1)
result = /obj/item/food/kamaboko_slice
Expand Down
6 changes: 6 additions & 0 deletions code/modules/hydroponics/grown/apple.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
tastes = list("apple" = 1)
distill_reagent = /datum/reagent/consumable/ethanol/hcider

/obj/item/food/grown/apple/make_processable()
AddElement(/datum/element/processable, TOOL_KNIFE, /obj/item/food/appleslice, 5, 20, screentip_verb = "Slice")

// Gold Apple
/obj/item/seeds/apple/gold
name = "pack of golden apple seeds"
Expand All @@ -41,6 +44,9 @@
reagents_add = list(/datum/reagent/gold = 0.2, /datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
rarity = 40 // Alchemy!

/obj/item/food/grown/apple/gold/make_processable()
return // You're going to break your knife!

/obj/item/food/grown/apple/gold
seed = /obj/item/seeds/apple/gold
name = "golden apple"
Expand Down
Binary file modified icons/obj/food/food.dmi
Binary file not shown.
Binary file modified icons/obj/service/hydroponics/harvest.dmi
Binary file not shown.