pub struct Profession {
pub reference: String,
pub name: String,
pub string_table: Option<String>,
pub sprite_sheet: Option<String>,
pub works_anywhere: bool,
pub immune_at_work: bool,
pub death: String,
pub accident: (f32, f32),
pub carry: i32,
}Expand description
Profession fields the simulation reads.
Original: FUN_1400ae3e0.
Fields§
§reference: StringGame\Profession\Profession.rsc:<key>.
name: StringName key (ProfessionBuilder), in the string table.
string_table: Option<String>The string table of the name, if not the default one.
sprite_sheet: Option<String>The icon’s sprite sheet (sprite).
works_anywhere: boolWorks anywhere (laborers and builders): Jobs::TryList offers it work outside its
workplace, and the job status icon stays off without one.
Original: FUN_1400fce80.
immune_at_work: boolWith a workplace, the citizen does not catch diseases (the doctor).
Original: FUN_14011c060.
death: StringThe death-message key of an accident at its work.
accident: (f32, f32)The accident odds (years, factor): on average one accident per years × factor years
at work; none when the factor is not positive.
Original: FUN_1400ae760.
carry: i32How much a citizen of this profession carries (100; 500 for traders and vendors).
Original: FUN_140114c70.
Trait Implementations§
Source§impl Clone for Profession
impl Clone for Profession
Source§fn clone(&self) -> Profession
fn clone(&self) -> Profession
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more