From 31661b25d35e8f2b72b2151585b00a5af74e7ec2 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sat, 11 Jul 2026 16:05:53 +0200 Subject: fix shifting maze sanity thresholds: only triggers at <60% --- Cargo.lock | 14 +++++++------- Cargo.toml | 2 +- src/game.rs | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d3682b2..2485847 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,19 +52,19 @@ dependencies = [ ] [[package]] -name = "doom" +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + +[[package]] +name = "dungeon" version = "0.1.0" dependencies = [ "minifb", "rand", ] -[[package]] -name = "downcast-rs" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" - [[package]] name = "errno" version = "0.3.14" diff --git a/Cargo.toml b/Cargo.toml index 2be2d18..39c7286 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "doom" +name = "dungeon" version = "0.1.0" edition = "2024" diff --git a/src/game.rs b/src/game.rs index 1cc12f2..cec85a2 100644 --- a/src/game.rs +++ b/src/game.rs @@ -1734,7 +1734,6 @@ impl Game { } // Chance based on sanity. let chance = match self.sanity { - 60..=79 => 0.05, 40..=59 => 0.05, 20..=39 => 0.10, _ if self.sanity < 20 => 0.15, -- cgit v1.2.3