Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ jobs:
run: cargo fmt --check

- name: Clippy
run: cargo clippy -- -D warnings
# `--all-targets` so test-only code is linted too — without it,
# warnings inside `#[cfg(test)]` blocks slip past CI and only
# surface on developers' machines when they happen to run
# `cargo clippy --all-targets` locally.
run: cargo clippy --all-targets -- -D warnings
env:
RUSTFLAGS: -Dwarnings

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/target
/dist
# Claude Code's scheduled-task lock — per-checkout runtime artifact, never code.
.claude/scheduled_tasks.lock
14 changes: 5 additions & 9 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ fn demo_driver_tick(
// hit; gives the demo a steady visible tree-spread without needing
// to plan a route.
if t.is_multiple_of(160) {
let mut best: Option<(TreeCoord, f64)> = None;
let mut best: Option<(TreeCoord, crate::bignum::Mag)> = None;
for &owned in &state.tree.bought {
for n in crate::game::tree::node::neighbors_of(owned) {
if state.tree.bought.contains(&n) {
Expand Down Expand Up @@ -509,18 +509,14 @@ pub fn build_demo_state() -> GameState {
let mut s = GameState {
// Low relative to FPS so the counter clearly grows throughout
// the clip, and cheap enough to buy early tiers often.
cuques: 500_000.0,
lifetime_cuques: 500_000_000.0, // unlocks all tiers via the visibility gate
cuques: crate::bignum::Mag::from_f64(500_000.0),
lifetime_cuques: crate::bignum::Mag::from_f64(500_000_000.0),
total_clicks: 500,
total_play_ticks: 3600 * TICK_HZ as u64, // pretend we've been at this an hour
total_play_ticks: 3600 * TICK_HZ as u64,
prestige: 3,
golden_caught: 7,
// Default seeds each per-kind cooldown from a fresh exponential
// sample (60-240s mean depending on kind). For the demo we zero
// them all so the first powerup (a Buff, per the cycle in
// demo_driver_tick) lands well within the first few seconds.
powerup_cooldowns: [0; powerup::N_KINDS],
best_fps: 50_000.0,
best_fps: crate::bignum::Mag::from_f64(50_000.0),
..GameState::default()
};
// Seed counts/flags BY CATALOG INDEX rather than by hardcoded id strings,
Expand Down
Loading
Loading