Browse Source

actually this can be simplified

pull/122/head
jake 2 years ago
parent
commit
8700987986
  1. 5
      src/ship/map/enemy.rs

5
src/ship/map/enemy.rs

@ -99,10 +99,7 @@ impl RareMonsterAppearTable {
}
pub fn roll_is_rare(&self, monster: &MonsterType) -> bool {
if rand_chacha::ChaChaRng::from_entropy().gen::<f32>() < *self.appear_rate.get(monster).unwrap_or(&0.0f32) {
return true
}
false
rand_chacha::ChaChaRng::from_entropy().gen::<f32>() < *self.appear_rate.get(monster).unwrap_or(&0.0f32)
}
}

Loading…
Cancel
Save