mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-05 14:17:12 +01:00
76291fe8b1
- This PR fixes a few botany plants mutating into themselves due to seeds inheriting the mutation list from its parent. Durathread, Jupiter Cups, Fairy Grass, Red Onions, Bamboo, Green Grapes, and World Peas (maybe some others I forgot). - This PR also unit tests to ensure plants don't mutate into themselves. - This PR also converts mutatelist into a proper lazylist. IT was already kinda a lazy list, in that it's null by default, but for some reason it was treated as a normal list in multiple places.
51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
// Apple
|
|
/obj/item/seeds/apple
|
|
name = "pack of apple seeds"
|
|
desc = "These seeds grow into apple trees."
|
|
icon_state = "seed-apple"
|
|
species = "apple"
|
|
plantname = "Apple Tree"
|
|
product = /obj/item/food/grown/apple
|
|
lifespan = 55
|
|
endurance = 35
|
|
yield = 5
|
|
growing_icon = 'icons/obj/hydroponics/growing_fruits.dmi'
|
|
icon_grow = "apple-grow"
|
|
icon_dead = "apple-dead"
|
|
genes = list(/datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/one_bite)
|
|
mutatelist = list(/obj/item/seeds/apple/gold)
|
|
reagents_add = list(/datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
|
|
/obj/item/food/grown/apple
|
|
seed = /obj/item/seeds/apple
|
|
name = "apple"
|
|
desc = "It's a little piece of Eden."
|
|
icon_state = "apple"
|
|
foodtypes = FRUIT
|
|
juice_results = list(/datum/reagent/consumable/applejuice = 0)
|
|
tastes = list("apple" = 1)
|
|
distill_reagent = /datum/reagent/consumable/ethanol/hcider
|
|
|
|
// Gold Apple
|
|
/obj/item/seeds/apple/gold
|
|
name = "pack of golden apple seeds"
|
|
desc = "These seeds grow into golden apple trees. Good thing there are no firebirds in space."
|
|
icon_state = "seed-goldapple"
|
|
species = "goldapple"
|
|
plantname = "Golden Apple Tree"
|
|
product = /obj/item/food/grown/apple/gold
|
|
maturation = 10
|
|
production = 10
|
|
genes = list(/datum/plant_gene/trait/repeated_harvest)
|
|
mutatelist = null
|
|
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
|
|
seed = /obj/item/seeds/apple/gold
|
|
name = "golden apple"
|
|
desc = "Emblazoned upon the apple is the word 'Kallisti'."
|
|
icon_state = "goldapple"
|
|
distill_reagent = null
|
|
wine_power = 50
|