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

Добавление огурцов v2.0 #13530

Merged
merged 12 commits into from
Sep 29, 2024
Merged
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
18 changes: 18 additions & 0 deletions code/defines/obj/hydro.dm
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,24 @@
plant_type = 0
growthstages = 1

/obj/item/seeds/cucumberseed
name = "pack of cucumber seeds"
cases = list("семена огурцов", "семян огурцов", "семенам огурцов", "семена огурцов", "семенами огурцов", "семенах огурцов")
desc = "Эти семена вырастают в огурцы."
icon_state = "seed-cucumber"
hydroponictray_icon_path = 'icons/obj/hydroponics/growing_vegetables.dmi'
species = "cucumber"
plantname = "Cucumbers"
product_type = /obj/item/weapon/reagent_containers/food/snacks/grown/cucumber
lifespan = 30
endurance = 20
maturation = 3
production = 4
yield = 4
potency = 4
plant_type = 0
growthstages = 4

/obj/item/seeds/tobacco_space
name = "pack of space tobacco seeds"
desc = "These seeds grow into space tobacco plants."
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/hydroponics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
/obj/item/seeds/bananaseed = 3,
/obj/item/seeds/berryseed = 3,
/obj/item/seeds/cabbageseed = 3,
/obj/item/seeds/cucumberseed = 3,
/obj/item/seeds/carrotseed = 3,
/obj/item/seeds/cherryseed = 3,
/obj/item/seeds/chantermycelium = 3,
Expand Down
5 changes: 5 additions & 0 deletions code/modules/cargo/exports/grown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ use it if low potency results garbage from harvested crop
cost = 15
export_types = list(/obj/item/seeds/bananaseed)

/datum/export/seed/cucumber
unit_name = "pack of cucumber seeds"
cost = 15
export_types = list(/obj/item/seeds/cucumberseed)

/datum/export/seed/rice
unit_name = "pack of rice seeds"
cost = 15
Expand Down
15 changes: 15 additions & 0 deletions code/modules/reagents/reagent_containers/food/snacks/grown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,21 @@
reagents.add_reagent("nutriment", 1+round((potency / 10), 1))
bitesize = reagents.total_volume

/obj/item/weapon/reagent_containers/food/snacks/grown/cucumber
seed_type = /obj/item/seeds/cucumberseed
name = "cucumber"
cases = list("огурец", "огурца", "огурцу", "огурец", "огурцом", "огурце")
desc = "Выглядит как слащавый огурчик."
icon_state = "cucumber"
item_state_world = "cucumber_world"
potency = 15
filling_color = "#598157"

/obj/item/weapon/reagent_containers/food/snacks/grown/cucumber/atom_init()
. = ..()
reagents.add_reagent("ethylredoxrazine", 1+round((potency / 10), 1))
bitesize = reagents.total_volume

/obj/item/weapon/reagent_containers/food/snacks/grown/berries
seed_type = /obj/item/seeds/berryseed
name = "bunch of berries"
Expand Down
Binary file modified icons/obj/hydroponics/growing_vegetables.dmi
Binary file not shown.
Binary file modified icons/obj/hydroponics/harvest.dmi
Binary file not shown.
Binary file modified icons/obj/hydroponics/hydroponics.dmi
Binary file not shown.
Binary file modified icons/obj/hydroponics/seeds.dmi
Binary file not shown.
Loading