Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/economy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const RAM_PRICE_MULTIPLIER: f64 = 1.040;
const DISK_BASE_PRICE: f64 = 1.0;
const DISK_PRICE_MULTIPLIER: f64 = 1.035;

// Base price and price increment for prestige levels
const PRESTIGE_BASE_CREDIT_REQUIREMENT: f64 = 1000.0;
const PRESTIGE_CREDIT_INCREMENT: f64 = 500.0;

// Perks price
pub const CI_CD_PRICE: f64 = 5.0;
pub const AUTO_SCALING_PRICE: f64 = 25.0;
Expand Down
4 changes: 4 additions & 0 deletions src/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const BASE_COMPILATION_FAILURE_PROB: f64 = 0.25;
const MIN_COMPILATION_FAILURE_PROB: f64 = 0.05;
const MAX_COMPILATION_FAILURE_PROB: f64 = 0.90;

// Base resource requirement and increment for prestige levels
const BASE_PRESTIGE_RESOURCE_REQUIREMENT: u64 = 100;
const PRESTIGE_RESOURCE_INCREMENT: u64 = 20;

// Calculate compile time based on CPU and RAM
// - Each additional CPU core reduces the compile time by 5 seconds
// - Each additional GB of RAM increases the compile time by 1 second
Expand Down
4 changes: 4 additions & 0 deletions src/statefile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ pub struct GameState {
pub ci_cd_enabled: bool,
pub auto_scaling_unlocked: bool,
pub auto_scaling_enabled: bool,
// Prestige level
pub prestige_level: u64,
}

// Default values
Expand All @@ -37,6 +39,8 @@ impl Default for GameState {
ci_cd_enabled: false,
auto_scaling_unlocked: false,
auto_scaling_enabled: false,
// Prestige level
prestige_level: 0,
}
}
}
Expand Down
Loading