File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 31
31
var /harvest = 0 // Is it ready to harvest?
32
32
var /age = 0 // Current plant age
33
33
var /sampled = 0 // Have we taken a sample?
34
+ var /growth_level = 0
34
35
35
36
// Harvest/mutation mods.
36
37
var /list /mutation_levels = list () // Increases as mutagenic compounds are added, determines potency of resulting mutation when it's called.
136
137
seed = null
137
138
dead = 0
138
139
age = 0
140
+ growth_level = 0
139
141
sampled = 0
140
142
harvest = 0
141
143
improper_light = 0
Original file line number Diff line number Diff line change 58
58
else
59
59
if (prob(80 ))
60
60
age += 1 * HYDRO_SPEED_MULTIPLIER
61
- update_icon_after_process = 1
61
+ update_icon_after_process = 1
62
62
63
63
// Highly mutable plants have a chance of mutating every tick.
64
64
if (seed. immutable == - 1 )
210
210
plant_appearance = " harvest"
211
211
else if (age < seed. maturation)
212
212
var /t_growthstate = clamp(1 + round((age * seed. growth_stages) / seed. maturation),1 ,seed. growth_stages)
213
- plant_appearance = " stage-[ t_growthstate] "
213
+ if (t_growthstate > growth_level)
214
+ // this should give us a chance to witness stages we wouldn't otherwise see due to the plant's maturation var being inferior or equal to its growth_stages var.
215
+ growth_level++
216
+ if (t_growthstate > growth_level+ 1 )
217
+ growth_level++
218
+ plant_appearance = " stage-[ growth_level] "
214
219
lastproduce = age
215
220
else
216
221
plant_appearance = " stage-[ seed. growth_stages] "
You can’t perform that action at this time.
0 commit comments