an http based roguelike rpg about jelqing
Commit 2ea5ef81f040
tarball1 file changed+8-0
@@ -316,6 +316,14 @@ impl Run {
316316
}317317
318318
fn hazards(&mut self, intensity: i32) -> Result<(), Problem> {319
+ let odds = match self.eq {320
+ ..=70 => 200,321
+ 71..=85 => 25,322
+ _ => 10,323
+ };324
+ if self.rng.random_ratio(1, odds) {325
+ return Err(self.rupture());326
+ }319327
if self.floor == Floor::LockerRoom && self.rng.random_ratio(1, 10) {320328
self.shame += 1;321329
return Err(Problem::new(