pub struct GrowthDescription {Show 18 fields
pub max_base: f32,
pub max_range: f32,
pub f28: f32,
pub b2c: bool,
pub f30: f32,
pub f34: f32,
pub b38: bool,
pub f3c: f32,
pub f40: f32,
pub b44: bool,
pub spawn_radius: i32,
pub timer_months: i32,
pub spawn_one_in: i32,
pub threshold: f32,
pub max_neighbours: i32,
pub max_same: i32,
pub f60: f32,
pub tall: bool,
}Expand description
GrowthDescription. See GAME-LOOP-STEP-11/12 and RESOURCE-SEEDING.md for the consumers.
Original: FUN_140125e50.
Fields§
§max_base: f32Maximum growth = RandFloatTol · range + base when base > 0; otherwise −1. Also the spawn
step.
Original: FUN_140125bc0, FUN_140056620.
max_range: f32The random range of the maximum growth.
f28: f32The growing time, in months of 300 seconds.
b2c: boolWhether the temperature changes the growth rate.
f30: f32The best temperature.
f34: f32The range of temperatures around the best one.
b38: boolNot identified yet.
f3c: f32The map-byte factor when a resource of the same template is removed.
f40: f32The map-byte factor otherwise, and when growth ends.
b44: boolWhether it spawns children from time to time.
spawn_radius: i32Spawn radius in cells (RandTol).
timer_months: i32Growth timer scale (RandFloat · value · 300 seconds).
spawn_one_in: i32Spawn chance is 1 / value.
threshold: f32Not identified yet.
max_neighbours: i32Maximum occupied neighbours.
Original: FUN_140126100.
max_same: i32Maximum neighbours of the same growth type.
f60: f32The smallest visible scale.
tall: boolScale shape: false = uniform growth, true = (g/0.15, g/0.15, g, 1) clamped.
Trait Implementations§
Source§impl Clone for GrowthDescription
impl Clone for GrowthDescription
Source§fn clone(&self) -> GrowthDescription
fn clone(&self) -> GrowthDescription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more