Skip to content

Commit

Permalink
Add 10x Dev upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Dec 7, 2023
1 parent aaf3c7a commit c01e202
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::state::editor_screen::SceneView;
use crate::state::editor_screen::SceneViewBounds;
use crate::state::editor_screen::UpgradeContainer;
use crate::state::editor_screen::UpgradeOutline;
use crate::ui::CodeTyper;
use crate::AppRoot;
use crate::AppSet;

Expand Down Expand Up @@ -287,5 +288,17 @@ generate_upgrade_list!(
weight: 1.0,
remaining: usize::MAX,
..default()
},
TenXDev: Upgrade {
name: "10x Dev".to_string(),
description: "Multiplies the number of characters typed per key press by 10.".to_string(),
base_cost: 50.0,
weight: 0.5,
install: Some(world.register_system(|mut typer_query: Query<&mut CodeTyper>| {
for mut typer in &mut typer_query {
typer.chars_per_key *= 10;
}
})),
..default()
}
);

0 comments on commit c01e202

Please sign in to comment.