pub struct DiseaseDescription {
pub months: (i32, i32),
pub odds: f32,
pub odds_same: f32,
pub check: f32,
pub kill: f32,
pub spread: f32,
pub duration: f32,
pub radius: i32,
}Expand description
A DiseaseDescription: blight on fields, orchards and pastures. Times are in months of 300
seconds.
Original: FUN_1400497a0.
Fields§
§months: (i32, i32)The months in which it can start, both included.
odds: f32The odds of a start: 1 / (12 / check × odds) at each check.
odds_same: f32The odds instead of odds when the cell grew the same crop last time.
check: f32The time between checks.
kill: f32The time between kills of a crop, a tree or an animal.
spread: f32The time between spreads.
duration: f32How long the blight lasts.
radius: i32How far it spreads, in cells.
Trait Implementations§
Source§impl Clone for DiseaseDescription
impl Clone for DiseaseDescription
Source§fn clone(&self) -> DiseaseDescription
fn clone(&self) -> DiseaseDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiseaseDescription
Source§impl Debug for DiseaseDescription
impl Debug for DiseaseDescription
Source§impl Default for DiseaseDescription
impl Default for DiseaseDescription
Source§fn default() -> DiseaseDescription
fn default() -> DiseaseDescription
Returns the “default value” for a type. Read more
Source§impl PartialEq for DiseaseDescription
impl PartialEq for DiseaseDescription
impl StructuralPartialEq for DiseaseDescription
Auto Trait Implementations§
impl Freeze for DiseaseDescription
impl RefUnwindSafe for DiseaseDescription
impl Send for DiseaseDescription
impl Sync for DiseaseDescription
impl Unpin for DiseaseDescription
impl UnsafeUnpin for DiseaseDescription
impl UnwindSafe for DiseaseDescription
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