pub struct Disease {
pub table: Option<String>,
pub name: String,
pub spread_interval: f32,
pub spread_chance: f32,
pub spread_radius: f32,
pub weight: f32,
pub recovery: f32,
}Expand description
Disease (version 2, Game/Disease/Diseases.rsc lists them).
Original: FUN_1400987a0.
Fields§
§table: Option<String>The string table of the name.
name: StringThe name’s key.
spread_interval: f32Spread interval in 300 s units.
Original: FUN_140117ca0.
spread_chance: f32Chance a spread attempt infects.
Original: FUN_140117940.
spread_radius: f32Spread radius.
weight: f32Weight when an outbreak picks a disease.
Original: FUN_140117af0.
recovery: f32How fast a sick citizen recovers: a citizen recovers when a random float is greater than
1 / recovery / doctor.
Original: used by FUN_140117880.
Trait Implementations§
impl StructuralPartialEq for Disease
Auto Trait Implementations§
impl Freeze for Disease
impl RefUnwindSafe for Disease
impl Send for Disease
impl Sync for Disease
impl Unpin for Disease
impl UnsafeUnpin for Disease
impl UnwindSafe for Disease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more