Skip to content

Commit

Permalink
Add Refactor upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Dec 7, 2023
1 parent f42ee1b commit aaf3c7a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ generate_upgrade_list!(
SplashOfLifePlugin: Upgrade {
name: "SplashOfLifePlugin".to_string(),
description: "Spawns 32 entities immediately.".to_string(),
base_cost: 1.0,
base_cost: 2.0,
cost_scale_factor: 1.2,
weight: 1.0,
remaining: usize::MAX,
Expand All @@ -268,14 +268,24 @@ generate_upgrade_list!(
},
ImportLibrary: Upgrade {
name: "Import Library".to_string(),
description: "Writes 10 lines of code immediately.".to_string(),
description: "Writes 32 lines of code immediately.".to_string(),
base_cost: 1.0,
tech_debt: 0.0,
tech_debt: 1.0,
weight: 1.0,
remaining: usize::MAX,
install: Some(world.register_system(|mut simulation: ResMut<Simulation>| {
simulation.lines += 10.0;
simulation.lines += 32.0;
})),
..default()
},
Refactor: Upgrade {
name: "Refactor".to_string(),
description: "Improves the quality of the codebase.".to_string(),
base_cost: 10.0,
cost_scale_factor: 1.5,
tech_debt: -5.0,
weight: 1.0,
remaining: usize::MAX,
..default()
}
);

0 comments on commit aaf3c7a

Please sign in to comment.