mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
POWER ROUND 2: HYDROPONICS FIXES (#50381)
This commit is contained in:
@@ -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" )
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user