pub struct CitizenRulesAi {Show 18 fields
pub thresholds: Thresholds,
pub health: f32,
pub happiness: f32,
pub loiter_range: i32,
pub clothing_duration: f32,
pub health_max: f32,
pub hunger_limit: f32,
pub cold_limit: f32,
pub profession_allows_idle: bool,
pub tool_grade: i32,
pub work_near: i32,
pub work_far: i32,
pub work_minutes: i32,
pub work_ok: i32,
pub work_cold: f32,
pub no_tool_factor: f32,
pub education: i32,
pub water_distance: i32,
}Expand description
The CitizenDescription values the AI reads.
Fields§
§thresholds: ThresholdsThe thresholds of the citizen’s needs.
health: f32The starting health.
happiness: f32The starting happiness.
loiter_range: i32Loiter search range.
clothing_duration: f32How long clothing lasts, in seconds (the citizen description’s value multiplied by 300).
Original: FUN_140117730.
health_max: f32The highest health.
hunger_limit: f32Midpoint for food, quarter-point for cold status warnings.
Original: FUN_140118340.
cold_limit: f32The cold level of the cold warning.
profession_allows_idle: boolWhether a citizen without a workplace shows no job warning, when no professions are loaded.
tool_grade: i32CitizenDescription: the tool type CitizenUI calls “Iron” (others are “Steel”).
work_near: i32The rank of work a citizen takes at once, before it has waited.
work_far: i32The rank of work a citizen takes after it has waited the longest.
work_minutes: i32The longest wait, in months (of 300 seconds).
work_ok: i32The rank of work a citizen always takes.
work_cold: f32The temperature at or above which a citizen takes any work in range.
no_tool_factor: f32CitizenDescription: work duration factor without a tool.
Original: FUN_1400cebf0.
education: i32The education a citizen counts as educated with.
water_distance: i32How far a firefighter looks for water.
Original: FUN_14008d6a0.
Trait Implementations§
Source§impl Clone for CitizenRulesAi
impl Clone for CitizenRulesAi
Source§fn clone(&self) -> CitizenRulesAi
fn clone(&self) -> CitizenRulesAi
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more