diff options
Diffstat (limited to 'src/stats.rs')
-rw-r--r-- | src/stats.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stats.rs b/src/stats.rs index 99340f2989dc..1c651a98a0a8 100644 --- a/src/stats.rs +++ b/src/stats.rs @@ -5,7 +5,7 @@ //! Whenever there is some effect that can happen in the game, it's //! value (strength) will be derived from here. -pub type Money = u16; +pub type Money = usize; /// The cost of doing business pub mod costs { @@ -140,9 +140,9 @@ pub mod gains { // reference. If it made it to "max", it will then also // return an amount of money that can be gained (Cc(ref lvl), Compute { ref max, .. }) if incr_compute(lvl, packet) => match lvl { - One => *max, - Two => max * 2, - Three => max * 3, + One => *max as usize, + Two => (max * 2) as usize, + Three => (max * 3) as usize, }, // If in doubt, nada! |