actually this can be simplified

This commit is contained in:
jake 2022-10-19 17:41:04 -06:00
parent ed9f951bca
commit 8700987986

View File

@ -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)
}
}