pub struct TradeRow {
pub population: i32,
pub months: f32,
pub range: f32,
pub lot_divisor: i32,
pub amount_divisor: i32,
}Expand description
A TradeDescription row by population (0x14 bytes): towns below population people see a merchant
every (months + RandFloatTol × range) × 300 s, and divide the merchant’s lots and each lot’s amount.
Original: FUN_14005d480.
Fields§
§population: i32The population this row applies below.
months: f32The base time between merchants, in units of 300 seconds.
range: f32The random part of that time.
lot_divisor: i32What the merchant’s lots are divided by.
amount_divisor: i32What each lot’s amount is divided by.
Trait Implementations§
impl Copy for TradeRow
impl StructuralPartialEq for TradeRow
Auto Trait Implementations§
impl Freeze for TradeRow
impl RefUnwindSafe for TradeRow
impl Send for TradeRow
impl Sync for TradeRow
impl Unpin for TradeRow
impl UnsafeUnpin for TradeRow
impl UnwindSafe for TradeRow
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