summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-11 16:05:53 +0200
committersalmonik <salmonik@tuta.io>2026-07-11 16:05:53 +0200
commit31661b25d35e8f2b72b2151585b00a5af74e7ec2 (patch)
tree3380b9c4e8e04bcb19e4a3422edf5cb57e968f69
parentadd psychedelic horror effects: phantom walls, shifting maze, darkness, color... (diff)
downloaddungeon-31661b25d35e8f2b72b2151585b00a5af74e7ec2.tar.gz
dungeon-31661b25d35e8f2b72b2151585b00a5af74e7ec2.zip
fix shifting maze sanity thresholds: only triggers at <60%
-rw-r--r--Cargo.lock14
-rw-r--r--Cargo.toml2
-rw-r--r--src/game.rs1
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,7 +52,13 @@ dependencies = [
52] 52]
53 53
54[[package]] 54[[package]]
55name = "doom" 55name = "downcast-rs"
56version = "1.2.1"
57source = "registry+https://github.com/rust-lang/crates.io-index"
58checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
59
60[[package]]
61name = "dungeon"
56version = "0.1.0" 62version = "0.1.0"
57dependencies = [ 63dependencies = [
58 "minifb", 64 "minifb",
@@ -60,12 +66,6 @@ dependencies = [
60] 66]
61 67
62[[package]] 68[[package]]
63name = "downcast-rs"
64version = "1.2.1"
65source = "registry+https://github.com/rust-lang/crates.io-index"
66checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
67
68[[package]]
69name = "errno" 69name = "errno"
70version = "0.3.14" 70version = "0.3.14"
71source = "registry+https://github.com/rust-lang/crates.io-index" 71source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 2be2d18..39c7286 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
1[package] 1[package]
2name = "doom" 2name = "dungeon"
3version = "0.1.0" 3version = "0.1.0"
4edition = "2024" 4edition = "2024"
5 5
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 {
1734 } 1734 }
1735 // Chance based on sanity. 1735 // Chance based on sanity.
1736 let chance = match self.sanity { 1736 let chance = match self.sanity {
1737 60..=79 => 0.05,
1738 40..=59 => 0.05, 1737 40..=59 => 0.05,
1739 20..=39 => 0.10, 1738 20..=39 => 0.10,
1740 _ if self.sanity < 20 => 0.15, 1739 _ if self.sanity < 20 => 0.15,