mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Lavaland mushrooms and plants can now be cultivated. (#28533)
This commit is contained in:
@@ -368,6 +368,7 @@
|
||||
seed.genes += disk.gene.Copy()
|
||||
if(istype(disk.gene, /datum/plant_gene/reagent))
|
||||
seed.reagents_from_genes()
|
||||
disk.gene.apply_vars(seed)
|
||||
repaint_seed()
|
||||
|
||||
|
||||
|
||||
@@ -154,3 +154,15 @@
|
||||
playsound(src, 'sound/effects/fuse.ogg', seed.potency, 0)
|
||||
reagents.chem_temp = 1000 //Sets off the black powder
|
||||
reagents.handle_reactions()
|
||||
|
||||
// Lavaland cactus
|
||||
|
||||
/obj/item/seeds/lavaland/cactus
|
||||
name = "pack of fruiting cactus seeds"
|
||||
desc = "These seeds grow into fruiting cacti."
|
||||
icon_state = "seed-cactus"
|
||||
species = "cactus"
|
||||
plantname = "Fruiting Cactus"
|
||||
product = /obj/item/weapon/reagent_containers/food/snacks/grown/ash_flora/cactus_fruit
|
||||
growing_icon = 'icons/obj/hydroponics/growing_fruits.dmi'
|
||||
growthstages = 2
|
||||
@@ -308,3 +308,66 @@
|
||||
if(.)
|
||||
investigate_log("was planted by [key_name(user)] at [COORD(user)]", INVESTIGATE_BOTANY)
|
||||
|
||||
//// LAVALAND MUSHROOMS ////
|
||||
|
||||
// Bracket (Shaving mushroom)
|
||||
|
||||
/obj/item/seeds/lavaland
|
||||
name = "lavaland seeds"
|
||||
desc = "You should never see this."
|
||||
lifespan = 50
|
||||
endurance = 25
|
||||
maturation = 7
|
||||
production = 4
|
||||
yield = 4
|
||||
potency = 15
|
||||
growthstages = 3
|
||||
rarity = 20
|
||||
reagents_add = list("nutriment" = 0.1)
|
||||
resistance_flags = FIRE_PROOF
|
||||
|
||||
/obj/item/seeds/lavaland/polypore
|
||||
name = "pack of polypore mycelium"
|
||||
desc = "This mycelium grows into bracket mushrooms, also known as polypores. Woody and firm, shaft miners often use them for makeshift crafts."
|
||||
icon_state = "mycelium-polypore"
|
||||
species = "polypore"
|
||||
plantname = "Polypore Mushrooms"
|
||||
product = /obj/item/weapon/reagent_containers/food/snacks/grown/ash_flora/shavings
|
||||
genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism)
|
||||
growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi'
|
||||
|
||||
// Porcini (Leafy mushroom)
|
||||
|
||||
/obj/item/seeds/lavaland/porcini
|
||||
name = "pack of porcini mycelium"
|
||||
desc = "This mycelium grows into Boletus edulus, also known as porcini. Native to the late Earth, but discovered on Lavaland. Has culinary, medicinal and relaxant effects."
|
||||
icon_state = "mycelium-porcini"
|
||||
species = "porcini"
|
||||
plantname = "Porcini Mushrooms"
|
||||
product = /obj/item/weapon/reagent_containers/food/snacks/grown/ash_flora/mushroom_leaf
|
||||
genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism)
|
||||
growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi'
|
||||
|
||||
// Inocybe (Mushroom caps)
|
||||
|
||||
/obj/item/seeds/lavaland/inocybe
|
||||
name = "pack of inocybe mycelium"
|
||||
desc = "This mycelium grows into an inocybe mushroom, a species of Lavaland origin with hallucinatory and toxic effects."
|
||||
icon_state = "mycelium-inocybe"
|
||||
species = "inocybe"
|
||||
plantname = "Inocybe Mushrooms"
|
||||
product = /obj/item/weapon/reagent_containers/food/snacks/grown/ash_flora/mushroom_cap
|
||||
genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism)
|
||||
growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi'
|
||||
|
||||
// Embershroom (Mushroom stem)
|
||||
|
||||
/obj/item/seeds/lavaland/ember
|
||||
name = "pack of embershroom mycelium"
|
||||
desc = "This mycelium grows into embershrooms, a species of bioluminescent mushrooms native to Lavaland."
|
||||
icon_state = "mycelium-ember"
|
||||
species = "ember"
|
||||
plantname = "Embershroom Mushrooms"
|
||||
product = /obj/item/weapon/reagent_containers/food/snacks/grown/ash_flora/mushroom_stem
|
||||
genes = list(/datum/plant_gene/trait/plant_type/fungal_metabolism, /datum/plant_gene/trait/glow)
|
||||
growing_icon = 'icons/obj/hydroponics/growing_mushrooms.dmi'
|
||||
@@ -601,9 +601,10 @@
|
||||
|
||||
// why, just why
|
||||
if(S.has_reagent("napalm", 1))
|
||||
adjustHealth(-round(S.get_reagent_amount("napalm") * 6))
|
||||
adjustToxic(round(S.get_reagent_amount("napalm") * 7))
|
||||
adjustWeeds(-rand(5,9))
|
||||
if(!(myseed.resistance_flags & FIRE_PROOF))
|
||||
adjustHealth(-round(S.get_reagent_amount("napalm") * 6))
|
||||
adjustToxic(round(S.get_reagent_amount("napalm") * 7))
|
||||
adjustWeeds(-rand(5,9))
|
||||
|
||||
//Weed Spray
|
||||
if(S.has_reagent("weedkiller", 1))
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
/datum/plant_gene/proc/Copy()
|
||||
return new type
|
||||
|
||||
|
||||
|
||||
/datum/plant_gene/proc/apply_vars(obj/item/seeds/S) // currently used for fire resist, can prob. be further refactored
|
||||
return
|
||||
|
||||
// Core plant genes store 5 main variables: lifespan, endurance, production, yield, potency
|
||||
/datum/plant_gene/core
|
||||
@@ -410,6 +410,17 @@
|
||||
S.start()
|
||||
G.reagents.clear_reagents()
|
||||
|
||||
/datum/plant_gene/trait/fire_resistance // Lavaland
|
||||
name = "Fire Resistance"
|
||||
|
||||
/datum/plant_gene/trait/fire_resistance/apply_vars(obj/item/seeds/S)
|
||||
if(!(S.resistance_flags & FIRE_PROOF))
|
||||
S.resistance_flags |= FIRE_PROOF
|
||||
|
||||
/datum/plant_gene/trait/fire_resistance/on_new(obj/item/weapon/reagent_containers/food/snacks/grown/G, newloc)
|
||||
if(!(G.resistance_flags & FIRE_PROOF))
|
||||
G.resistance_flags |= FIRE_PROOF
|
||||
|
||||
/datum/plant_gene/trait/plant_type // Parent type
|
||||
name = "you shouldn't see this"
|
||||
trait_id = "plant_type"
|
||||
|
||||
Reference in New Issue
Block a user