diff options
author | Katharina Fey <kookie@spacekookie.de> | 2020-03-18 22:12:21 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2020-03-18 22:12:21 +0100 |
commit | e458ac4c5293762f0afcfa8c2649995ce1b3ba09 (patch) | |
tree | 47c553e91a31da8014876bbfe4af1252869a9b67 /src/stats.rs | |
parent | eb86eb246e5a98867d0d8766a236d73b44bb46c7 (diff) |
Making updates to the serialisability of data
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! |