diff options
Diffstat (limited to 'src/stats.rs')
-rw-r--r-- | src/stats.rs | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/stats.rs b/src/stats.rs index 7755821e4742..99340f2989dc 100644 --- a/src/stats.rs +++ b/src/stats.rs @@ -8,7 +8,7 @@ pub type Money = u16; /// The cost of doing business -pub mod cost { +pub mod costs { use super::Money; use crate::data::{Level, PacketType, Upgrade}; @@ -150,3 +150,34 @@ pub mod gains { } } } + +pub mod strengths { + use crate::data::Level::{self, *}; + + /// Determine the maximum amount of resources for a compute packet + pub fn compute_max(lvl: Level) -> u16 { + match lvl { + One => 65, + Two => 120, + Three => 250, + } + } + + /// Determine the step size by which a computation advances + pub fn compute_step(lvl: Level) -> u16 { + match lvl { + One => 7, + Two => 20, + Three => 32, + } + } + + /// Determine the reward gained from processing a payload packet + pub fn payload_reward(lvl: Level) -> u16 { + match lvl { + One => 70, + Two => 150, + Three => 275, + } + } +} |