POWER ROUND 2: HYDROPONICS FIXES (#50381)

This commit is contained in:
ArcaneMusic
2020-04-03 22:50:29 -07:00
committed by GitHub
parent bde836f1ef
commit afd86c8b9f
3 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ A new subsystem for hydroponics, as a way to share specific traits into plants,
/obj/item/graft/Initialize()
. = ..()
stored_trait = new /datum/plant_gene/trait/repeated_harvest //Default gene is repeated harvest.
icon_state = pick( \
10 ; "graft_types" , \
icon_state = pick(
10 ; "graft_plant" , \
5 ; "graft_flower" , \
4 ; "graft_mushroom" , \
1 ; "graft_doom" )
+5 -4
View File
@@ -252,17 +252,17 @@
//This is where stability mutations exist now.
switch(myseed.instability)
if(100 to 80)
if(80 to 100)
if(prob(20))
mutate(0, 0, 0, 0, 0, 0, 0, 10, 0) //Exceedingly low odds of gaining a trait.
if(79 to 60)
if(60 to 79)
if(prob((myseed.instability)/2) && !self_sustaining)
mutatespecie()
myseed.instability = myseed.instability/2
if(59 to 40)
if(40 to 59)
if(prob(40))
hardmutate()
if(39 to 20)
if(20 to 39)
if(prob(40))
mutate()
@@ -508,6 +508,7 @@
var/datum/plant_gene/reagent/reagent_gene = new /datum/plant_gene/reagent(picked_reagent, 0.05) //I cannot figure out how to copy over the keyed value from the reagents_add list so for now this works, skog you'll want to fix this before merge
if(reagent_gene.can_add(myseed))
myseed.genes += reagent_gene
myseed.reagents_from_genes()
return