holiday rappies (and other events) #122
@ -99,10 +99,7 @@ impl RareMonsterAppearTable {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub fn roll_is_rare(&self, monster: &MonsterType) -> bool {
 | 
					    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) {
 | 
					        rand_chacha::ChaChaRng::from_entropy().gen::<f32>() < *self.appear_rate.get(monster).unwrap_or(&0.0f32)
 | 
				
			||||||
            return true
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        false
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user