// Sprite lists. var/global/list/plant_sprites = list() // List of all harvested product sprites. var/global/list/plant_product_sprites = list() // List of all growth sprites plus number of growth stages. // Proc for creating a random seed type. /proc/create_random_seed(var/survive_on_station) var/datum/seed/seed = new() seed.randomize() seed.uid = seed_types.len + 1 seed.name = "[seed.uid]" seed_types[seed.name] = seed if(survive_on_station) if(seed.consume_gasses) seed.consume_gasses["phoron"] = null seed.consume_gasses["carbon_dioxide"] = null seed.set_trait(TRAIT_IDEAL_HEAT,293) seed.set_trait(TRAIT_HEAT_TOLERANCE,20) seed.set_trait(TRAIT_IDEAL_LIGHT,8) seed.set_trait(TRAIT_LIGHT_TOLERANCE,5) seed.set_trait(TRAIT_LOWKPA_TOLERANCE,25) seed.set_trait(TRAIT_HIGHKPA_TOLERANCE,200) return seed // Debug for testing seed genes. /client/proc/show_plant_genes() set category = "Debug" set name = "Show Plant Genes" set desc = "Prints the round's plant gene masks." if(!holder) return if(!gene_tag_masks) usr << "Gene masks not set." return for(var/mask in gene_tag_masks) usr << "[mask]: [gene_tag_masks[mask]]" // Predefined/roundstart varieties use a string key to make it // easier to grab the new variety when mutating. Post-roundstart // and mutant varieties use their uid converted to a string instead. // Looks like shit but it's sort of necessary. proc/populate_seed_list() // Build the icon lists. for(var/icostate in icon_states('icons/obj/hydroponics_growing.dmi')) var/split = findtext(icostate,"-") if(!split) // invalid icon_state continue var/ikey = copytext(icostate,(split+1)) if(ikey == "dead") // don't count dead icons continue ikey = text2num(ikey) var/base = copytext(icostate,1,split) if(!(plant_sprites[base]) || (plant_sprites[base]\The [fruit]'s thorns pierce your [affecting.display_name] greedily!" else target << "\The [fruit]'s thorns pierce your flesh greedily!" damage = get_trait(TRAIT_POTENCY)/2 else if(affecting) target << "\The [fruit]'s thorns dig deeply into your [affecting.display_name]!" else target << "\The [fruit]'s thorns dig deeply into your flesh!" damage = get_trait(TRAIT_POTENCY)/5 else return if(affecting) affecting.take_damage(damage, 0) affecting.add_autopsy_data("Thorns",damage) else target.adjustBruteLoss(damage) target.UpdateDamageIcon() target.updatehealth() // Adds reagents to a target. /datum/seed/proc/do_sting(var/mob/living/carbon/human/target, var/obj/item/fruit) if(!get_trait(TRAIT_STINGS)) return if(chems && chems.len) target << "You are stung by \the [fruit]!" for(var/rid in chems) var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/5)) target.reagents.add_reagent(rid,injecting) //Splatter a turf. /datum/seed/proc/splatter(var/turf/T,var/obj/item/thrown) if(splat_type) var/obj/effect/plant/splat = new splat_type(T, src) if(!istype(splat)) // Plants handle their own stuff. splat.name = "[thrown.name] [pick("smear","smudge","splatter")]" if(get_trait(TRAIT_BIOLUM)) if(get_trait(TRAIT_BIOLUM_COLOUR)) splat.l_color = get_trait(TRAIT_BIOLUM_COLOUR) splat.SetLuminosity(get_trait(TRAIT_BIOLUM)) if(get_trait(TRAIT_PRODUCT_COLOUR)) splat.color = get_trait(TRAIT_PRODUCT_COLOUR) if(chems) for(var/mob/living/M in T.contents) if(!M.reagents) continue for(var/chem in chems) var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/3)) M.reagents.add_reagent(chem,injecting) //Applies an effect to a target atom. /datum/seed/proc/thrown_at(var/obj/item/thrown,var/atom/target, var/force_explode) var/splatted var/turf/origin_turf = get_turf(target) if(force_explode || get_trait(TRAIT_EXPLOSIVE)) var/flood_dist = min(10,max(1,get_trait(TRAIT_POTENCY)/15)) var/list/open_turfs = list() var/list/closed_turfs = list() var/list/valid_turfs = list() open_turfs |= origin_turf // Flood fill to get affected turfs. while(open_turfs.len) var/turf/T = pick(open_turfs) open_turfs -= T closed_turfs |= T valid_turfs |= T for(var/dir in alldirs) var/turf/neighbor = get_step(T,dir) if(!neighbor || (neighbor in closed_turfs) || (neighbor in open_turfs)) continue if(neighbor.density || get_dist(neighbor,origin_turf) > flood_dist || istype(neighbor,/turf/space)) closed_turfs |= neighbor continue // Check for windows. var/no_los var/turf/last_turf = origin_turf for(var/turf/target_turf in getline(origin_turf,neighbor)) if(!last_turf.Enter(target_turf) || target_turf.density) no_los = 1 break last_turf = target_turf if(!no_los && !origin_turf.Enter(neighbor)) no_los = 1 if(no_los) closed_turfs |= neighbor continue open_turfs |= neighbor for(var/turf/T in valid_turfs) for(var/mob/living/M in T.contents) apply_special_effect(M) splatter(T,thrown) origin_turf.visible_message("The [thrown.name] explodes!") del(thrown) return if(istype(target,/mob/living)) splatted = apply_special_effect(target,thrown) else if(istype(target,/turf)) splatted = 1 for(var/mob/living/M in target.contents) apply_special_effect(M) if(get_trait(TRAIT_JUICY) && splatted) splatter(origin_turf,thrown) origin_turf.visible_message("The [thrown.name] splatters against [target]!") del(thrown) /datum/seed/proc/handle_environment(var/turf/current_turf, var/datum/gas_mixture/environment, var/check_only) var/health_change = 0 // Handle gas consumption. if(consume_gasses && consume_gasses.len) var/missing_gas = 0 for(var/gas in consume_gasses) if(environment && environment.gas && environment.gas[gas] && \ environment.gas[gas] >= consume_gasses[gas]) if(!check_only) environment.adjust_gas(gas,-consume_gasses[gas],1) else missing_gas++ if(missing_gas > 0) health_change += missing_gas * HYDRO_SPEED_MULTIPLIER // Process it. var/pressure = environment.return_pressure() if(pressure < get_trait(TRAIT_LOWKPA_TOLERANCE)|| pressure > get_trait(TRAIT_HIGHKPA_TOLERANCE)) health_change += rand(1,3) * HYDRO_SPEED_MULTIPLIER if(abs(environment.temperature - get_trait(TRAIT_IDEAL_HEAT)) > get_trait(TRAIT_HEAT_TOLERANCE)) health_change += rand(1,3) * HYDRO_SPEED_MULTIPLIER // Handle gas production. if(exude_gasses && exude_gasses.len && !check_only) for(var/gas in exude_gasses) environment.adjust_gas(gas, max(1,round((exude_gasses[gas]*get_trait(TRAIT_POTENCY))/exude_gasses.len))) // Handle light requirements. var/area/A = get_area(current_turf) if(A) var/light_available if(A.lighting_use_dynamic) light_available = max(0,min(10,current_turf.lighting_lumcount)-5) else light_available = 5 if(abs(light_available - get_trait(TRAIT_IDEAL_LIGHT)) > get_trait(TRAIT_LIGHT_TOLERANCE)) health_change += rand(1,3) * HYDRO_SPEED_MULTIPLIER return health_change /datum/seed/proc/apply_special_effect(var/mob/living/target,var/obj/item/thrown) var/impact = 1 do_sting(target,thrown) do_thorns(target,thrown) // Bluespace tomato code copied over from grown.dm. if(get_trait(TRAIT_TELEPORTING)) //Plant potency determines radius of teleport. var/outer_teleport_radius = get_trait(TRAIT_POTENCY)/5 var/inner_teleport_radius = get_trait(TRAIT_POTENCY)/15 var/list/turfs = list() if(inner_teleport_radius > 0) for(var/turf/T in orange(target,outer_teleport_radius)) if(get_dist(target,T) >= inner_teleport_radius) turfs |= T if(turfs.len) // Moves the mob, causes sparks. var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread s.set_up(3, 1, get_turf(target)) s.start() var/turf/picked = get_turf(pick(turfs)) // Just in case... new/obj/effect/decal/cleanable/molten_item(get_turf(target)) // Leave a pile of goo behind for dramatic effect... target.loc = picked // And teleport them to the chosen location. impact = 1 return impact //Creates a random seed. MAKE SURE THE LINE HAS DIVERGED BEFORE THIS IS CALLED. /datum/seed/proc/randomize() roundstart = 0 seed_name = "strange plant" // TODO: name generator. display_name = "strange plants" // TODO: name generator. mysterious = 1 seed_noun = pick("spores","nodes","cuttings","seeds") products = list(pick(typesof(/obj/item/weapon/reagent_containers/food/snacks/grown)-/obj/item/weapon/reagent_containers/food/snacks/grown)) set_trait(TRAIT_POTENCY,rand(5,30),200,0) set_trait(TRAIT_PRODUCT_ICON,pick(plant_product_sprites)) set_trait(TRAIT_PLANT_ICON,pick(plant_sprites)) set_trait(TRAIT_PLANT_COLOUR,"#[get_random_colour(0,75,190)]") set_trait(TRAIT_PRODUCT_COLOUR,"#[get_random_colour(0,75,190)]") update_growth_stages() if(prob(20)) set_trait(TRAIT_HARVEST_REPEAT,1) if(prob(15)) if(prob(15)) set_trait(TRAIT_JUICY,2) else set_trait(TRAIT_JUICY,1) if(prob(5)) set_trait(TRAIT_STINGS,1) if(prob(5)) set_trait(TRAIT_PRODUCES_POWER,1) if(prob(1)) set_trait(TRAIT_EXPLOSIVE,1) else if(prob(1)) set_trait(TRAIT_TELEPORTING,1) if(prob(5)) consume_gasses = list() var/gas = pick("oxygen","nitrogen","phoron","carbon_dioxide") consume_gasses[gas] = rand(3,9) if(prob(5)) exude_gasses = list() var/gas = pick("oxygen","nitrogen","phoron","carbon_dioxide") exude_gasses[gas] = rand(3,9) chems = list() if(prob(80)) chems["nutriment"] = list(rand(1,10),rand(10,20)) var/additional_chems = rand(0,5) if(additional_chems) var/list/possible_chems = list( "bicaridine", "hyperzine", "cryoxadone", "blood", "water", "potassium", "plasticide", "mutationtoxin", "amutationtoxin", "inaprovaline", "space_drugs", "paroxetine", "mercury", "sugar", "radium", "ryetalyn", "alkysine", "thermite", "tramadol", "cryptobiolin", "dermaline", "dexalin", "phoron", "synaptizine", "impedrezene", "hyronalin", "peridaxon", "toxin", "rezadone", "ethylredoxrazine", "slimejelly", "cyanide", "mindbreaker", "stoxin" ) for(var/x=1;x<=additional_chems;x++) if(!possible_chems.len) break var/new_chem = pick(possible_chems) possible_chems -= new_chem chems[new_chem] = list(rand(1,10),rand(10,20)) if(prob(90)) set_trait(TRAIT_REQUIRES_NUTRIENTS,1) set_trait(TRAIT_NUTRIENT_CONSUMPTION,rand(100)*0.1) else set_trait(TRAIT_REQUIRES_NUTRIENTS,0) if(prob(90)) set_trait(TRAIT_REQUIRES_WATER,1) set_trait(TRAIT_WATER_CONSUMPTION,rand(10)) else set_trait(TRAIT_REQUIRES_WATER,0) set_trait(TRAIT_IDEAL_HEAT, rand(100,400)) set_trait(TRAIT_HEAT_TOLERANCE, rand(10,30)) set_trait(TRAIT_IDEAL_LIGHT, rand(2,10)) set_trait(TRAIT_LIGHT_TOLERANCE, rand(2,7)) set_trait(TRAIT_TOXINS_TOLERANCE, rand(2,7)) set_trait(TRAIT_PEST_TOLERANCE, rand(2,7)) set_trait(TRAIT_WEED_TOLERANCE, rand(2,7)) set_trait(TRAIT_LOWKPA_TOLERANCE, rand(10,50)) set_trait(TRAIT_HIGHKPA_TOLERANCE,rand(100,300)) if(prob(5)) set_trait(TRAIT_ALTER_TEMP,rand(-5,5)) if(prob(1)) set_trait(TRAIT_IMMUTABLE,-1) var/carnivore_prob = rand(100) if(carnivore_prob < 5) set_trait(TRAIT_CARNIVOROUS,2) else if(carnivore_prob < 10) set_trait(TRAIT_CARNIVOROUS,1) if(prob(10)) set_trait(TRAIT_PARASITE,1) var/vine_prob = rand(100) if(vine_prob < 5) set_trait(TRAIT_SPREAD,2) else if(vine_prob < 10) set_trait(TRAIT_SPREAD,1) if(prob(5)) set_trait(TRAIT_BIOLUM,1) set_trait(TRAIT_BIOLUM_COLOUR,"#[get_random_colour(0,75,190)]") set_trait(TRAIT_ENDURANCE,rand(60,100)) set_trait(TRAIT_YIELD,rand(3,15)) set_trait(TRAIT_MATURATION,rand(5,15)) set_trait(TRAIT_PRODUCTION,get_trait(TRAIT_MATURATION)+rand(2,5)) //Returns a key corresponding to an entry in the global seed list. /datum/seed/proc/get_mutant_variant() if(!mutants || !mutants.len || get_trait(TRAIT_IMMUTABLE) > 0) return 0 return pick(mutants) //Mutates the plant overall (randomly). /datum/seed/proc/mutate(var/degree,var/turf/source_turf) if(!degree || get_trait(TRAIT_IMMUTABLE) > 0) return source_turf.visible_message("\The [display_name] quivers!") //This looks like shit, but it's a lot easier to read/change this way. var/total_mutations = rand(1,1+degree) for(var/i = 0;i\The [display_name] withers rapidly!") if(1) set_trait(TRAIT_NUTRIENT_CONSUMPTION,get_trait(TRAIT_NUTRIENT_CONSUMPTION)+rand(-(degree*0.1),(degree*0.1)),5,0) set_trait(TRAIT_WATER_CONSUMPTION, get_trait(TRAIT_WATER_CONSUMPTION) +rand(-degree,degree),50,0) set_trait(TRAIT_JUICY, !get_trait(TRAIT_JUICY)) set_trait(TRAIT_STINGS, !get_trait(TRAIT_STINGS)) if(2) set_trait(TRAIT_IDEAL_HEAT, get_trait(TRAIT_IDEAL_HEAT) + (rand(-5,5)*degree),800,70) set_trait(TRAIT_HEAT_TOLERANCE, get_trait(TRAIT_HEAT_TOLERANCE) + (rand(-5,5)*degree),800,70) set_trait(TRAIT_LOWKPA_TOLERANCE, get_trait(TRAIT_LOWKPA_TOLERANCE)+ (rand(-5,5)*degree),80,0) set_trait(TRAIT_HIGHKPA_TOLERANCE, get_trait(TRAIT_HIGHKPA_TOLERANCE)+(rand(-5,5)*degree),500,110) set_trait(TRAIT_EXPLOSIVE,1) if(3) set_trait(TRAIT_IDEAL_LIGHT, get_trait(TRAIT_IDEAL_LIGHT)+(rand(-1,1)*degree),30,0) set_trait(TRAIT_LIGHT_TOLERANCE, get_trait(TRAIT_LIGHT_TOLERANCE)+(rand(-2,2)*degree),10,0) if(4) set_trait(TRAIT_TOXINS_TOLERANCE, get_trait(TRAIT_TOXINS_TOLERANCE)+(rand(-2,2)*degree),10,0) if(5) set_trait(TRAIT_WEED_TOLERANCE, get_trait(TRAIT_WEED_TOLERANCE)+(rand(-2,2)*degree),10, 0) if(prob(degree*5)) set_trait(TRAIT_CARNIVOROUS, get_trait(TRAIT_CARNIVOROUS)+rand(-degree,degree),2, 0) if(get_trait(TRAIT_CARNIVOROUS)) source_turf.visible_message("\The [display_name] shudders hungrily.") if(6) set_trait(TRAIT_WEED_TOLERANCE, get_trait(TRAIT_WEED_TOLERANCE)+(rand(-2,2)*degree),10, 0) if(prob(degree*5)) set_trait(TRAIT_PARASITE,!get_trait(TRAIT_PARASITE)) if(7) if(get_trait(TRAIT_YIELD) != -1) set_trait(TRAIT_YIELD, get_trait(TRAIT_YIELD)+(rand(-2,2)*degree),10,0) if(8) set_trait(TRAIT_ENDURANCE, get_trait(TRAIT_ENDURANCE)+(rand(-5,5)*degree),100,10) set_trait(TRAIT_PRODUCTION, get_trait(TRAIT_PRODUCTION)+(rand(-1,1)*degree),10, 1) set_trait(TRAIT_POTENCY, get_trait(TRAIT_POTENCY)+(rand(-20,20)*degree),200, 0) if(prob(degree*5)) set_trait(TRAIT_SPREAD, get_trait(TRAIT_SPREAD)+rand(-1,1),2, 0) source_turf.visible_message("\The [display_name] spasms visibly, shifting in the tray.") if(9) set_trait(TRAIT_MATURATION, get_trait(TRAIT_MATURATION)+(rand(-1,1)*degree),30, 0) if(prob(degree*5)) set_trait(TRAIT_HARVEST_REPEAT, !get_trait(TRAIT_HARVEST_REPEAT)) if(10) if(prob(degree*2)) set_trait(TRAIT_BIOLUM, !get_trait(TRAIT_BIOLUM)) if(get_trait(TRAIT_BIOLUM)) source_turf.visible_message("\The [display_name] begins to glow!") if(prob(degree*2)) set_trait(TRAIT_BIOLUM_COLOUR,"#[get_random_colour(0,75,190)]") source_turf.visible_message("\The [display_name]'s glow changes colour!") else source_turf.visible_message("\The [display_name]'s glow dims...") if(11) set_trait(TRAIT_TELEPORTING,1) return //Mutates a specific trait/set of traits. /datum/seed/proc/apply_gene(var/datum/plantgene/gene) if(!gene || !gene.values || get_trait(TRAIT_IMMUTABLE) > 0) return // Splicing products has some detrimental effects on yield and lifespan. // We handle this before we do the rest of the looping, as normal traits don't really include lists. if(gene.genetype == GENE_PRODUCTS) for(var/trait in list(TRAIT_YIELD, TRAIT_ENDURANCE)) if(get_trait(trait) > 0) set_trait(trait,get_trait(trait),null,1,0.85) if(!products) products = list() products |= gene.values["[TRAIT_PRODUCTS]"] if(!chems) chems = list() var/list/gene_value = gene.values["[TRAIT_CHEMS]"] for(var/rid in gene_value) var/list/gene_chem = gene_value[rid] if(!chems[rid]) chems[rid] = gene_chem.Copy() continue for(var/i=1;i<=gene_chem.len;i++) if(isnull(gene_chem[i])) gene_chem[i] = 0 if(chems[rid][i]) chems[rid][i] = max(1,round((gene_chem[i] + chems[rid][i])/2)) else chems[rid][i] = gene_chem[i] var/list/new_gasses = gene.values["[TRAIT_EXUDE_GASSES]"] if(islist(new_gasses)) if(!exude_gasses) exude_gasses = list() exude_gasses |= new_gasses for(var/gas in exude_gasses) exude_gasses[gas] = max(1,round(exude_gasses[gas]*0.8)) for(var/trait in gene.values) set_trait(trait,gene.values["[trait]"]) update_growth_stages() //Returns a list of the desired trait values. /datum/seed/proc/get_gene(var/genetype) if(!genetype) return 0 var/list/traits_to_copy var/datum/plantgene/P = new() P.genetype = genetype P.values = list() switch(genetype) if(GENE_PRODUCTS) P.values["[TRAIT_PRODUCTS]"] = products P.values["[TRAIT_CHEMS]"] = chems P.values["[TRAIT_EXUDE_GASSES]"] = exude_gasses traits_to_copy = list(TRAIT_ALTER_TEMP,TRAIT_POTENCY,TRAIT_HARVEST_REPEAT,TRAIT_PRODUCES_POWER,TRAIT_JUICY,TRAIT_PRODUCT_ICON,TRAIT_PLANT_ICON) if(GENE_CONSUMPTION) P.values["[TRAIT_CONSUME_GASSES]"] = consume_gasses traits_to_copy = list(TRAIT_REQUIRES_NUTRIENTS,TRAIT_NUTRIENT_CONSUMPTION,TRAIT_REQUIRES_WATER,TRAIT_WATER_CONSUMPTION,TRAIT_CARNIVOROUS,TRAIT_PARASITE,TRAIT_STINGS) if(GENE_ENVIRONMENT) traits_to_copy = list(TRAIT_IDEAL_HEAT,TRAIT_HEAT_TOLERANCE,TRAIT_IDEAL_LIGHT,TRAIT_LIGHT_TOLERANCE,TRAIT_LOWKPA_TOLERANCE,TRAIT_HIGHKPA_TOLERANCE,TRAIT_EXPLOSIVE) if(GENE_RESISTANCE) traits_to_copy = list(TRAIT_TOXINS_TOLERANCE,TRAIT_PEST_TOLERANCE,TRAIT_WEED_TOLERANCE) if(GENE_VIGOUR) traits_to_copy = list(TRAIT_ENDURANCE,TRAIT_YIELD,TRAIT_SPREAD,TRAIT_MATURATION,TRAIT_PRODUCTION,TRAIT_TELEPORTING) if(GENE_PIGMENT) traits_to_copy = list(TRAIT_PLANT_COLOUR,TRAIT_PRODUCT_COLOUR,TRAIT_BIOLUM,TRAIT_BIOLUM_COLOUR) for(var/trait in traits_to_copy) P.values["[trait]"] = get_trait(trait) return (P ? P : 0) //Place the plant products at the feet of the user. /datum/seed/proc/harvest(var/mob/user,var/yield_mod,var/harvest_sample,var/force_amount) if(!user) return var/got_product if(!isnull(products) && products.len && get_trait(TRAIT_YIELD) > 0) got_product = 1 if(!force_amount && !got_product && !harvest_sample) if(istype(user)) user << "You fail to harvest anything useful." else if(istype(user)) user << "You [harvest_sample ? "take a sample" : "harvest"] from the [display_name]." //This may be a new line. Update the global if it is. if(name == "new line" || !(name in seed_types)) uid = seed_types.len + 1 name = "[uid]" seed_types[name] = src if(harvest_sample) var/obj/item/seeds/seeds = new(get_turf(user)) seeds.seed_type = name seeds.update_seed() return var/total_yield = 0 if(!isnull(force_amount)) total_yield = force_amount else if(get_trait(TRAIT_YIELD) > -1) if(isnull(yield_mod) || yield_mod < 1) yield_mod = 0 total_yield = get_trait(TRAIT_YIELD) else total_yield = get_trait(TRAIT_YIELD) + rand(yield_mod) total_yield = max(1,total_yield) currently_querying = list() for(var/i = 0;iThe pod disgorges [product]!") handle_living_product(product) if(istype(product,/mob/living/simple_animal/mushroom)) // Gross. var/mob/living/simple_animal/mushroom/mush = product mush.seed = src // When the seed in this machine mutates/is modified, the tray seed value // is set to a new datum copied from the original. This datum won't actually // be put into the global datum list until the product is harvested, though. /datum/seed/proc/diverge(var/modified) if(get_trait(TRAIT_IMMUTABLE) > 0) return //Set up some basic information. var/datum/seed/new_seed = new new_seed.name = "new line" new_seed.uid = 0 new_seed.roundstart = 0 new_seed.can_self_harvest = can_self_harvest //Copy over everything else. if(products) new_seed.products = products.Copy() if(mutants) new_seed.mutants = mutants.Copy() if(chems) new_seed.chems = chems.Copy() if(consume_gasses) new_seed.consume_gasses = consume_gasses.Copy() if(exude_gasses) new_seed.exude_gasses = exude_gasses.Copy() new_seed.seed_name = "[(roundstart ? "[(modified ? "modified" : "mutant")] " : "")][seed_name]" new_seed.display_name = "[(roundstart ? "[(modified ? "modified" : "mutant")] " : "")][display_name]" new_seed.seed_noun = seed_noun new_seed.traits = traits.Copy() new_seed.update_growth_stages() return new_seed /datum/seed/proc/update_growth_stages() if(get_trait(TRAIT_PLANT_ICON)) growth_stages = plant_sprites[get_trait(TRAIT_PLANT_ICON)] else growth_stages = 0