Merge pull request #52169 from Angustmeta/200711_mushroom

Fixes glowshrooms spreading slower from better production speed
This commit is contained in:
skoglol
2020-07-13 10:48:55 +02:00
committed by GitHub

View File

@@ -68,7 +68,8 @@
myseed.adjust_yield(rand(-3,2))
myseed.adjust_production(rand(-3,3))
myseed.endurance = clamp(myseed.endurance + rand(-3,2), 0, 100) // adjust_endurance has a min value of 10, need to edit directly
delay_spread = delay_spread - myseed.production * 100 //So the delay goes DOWN with better stats instead of up. :I
if(myseed.production >= 1) //In case production is varedited to -1 or less which would cause unlimited or negative delay.
delay_spread = delay_spread - (11 - myseed.production) * 100 //Because lower production speed stat gives faster production speed, which should give faster mushroom spread. Range 200-1100 deciseconds.
var/datum/plant_gene/trait/glow/G = myseed.get_gene(/datum/plant_gene/trait/glow)
if(ispath(G)) // Seeds were ported to initialize so their genes are still typepaths here, luckily their initializer is smart enough to handle us doing this
myseed.genes -= G