This commit is contained in:
@@ -26,7 +26,7 @@ pub struct LearnableMovesImpl {
|
||||
}
|
||||
|
||||
impl LearnableMovesImpl {
|
||||
/// Instantiates a new Learnable Moves.
|
||||
/// Instantiates a new object to store the moves a Pokemon can learn.
|
||||
pub fn new(max_level: LevelInt) -> Self {
|
||||
Self {
|
||||
learned_by_level: RwLock::new(vec![Vec::new(); (max_level + 1) as usize]),
|
||||
|
||||
@@ -152,7 +152,7 @@ impl Species for SpeciesImpl {
|
||||
.clone())
|
||||
}
|
||||
|
||||
/// Gets a random gender.
|
||||
/// Gets a random gender, returning a value based on the species gender ratio.
|
||||
fn get_random_gender(&self, rand: &mut Random) -> Gender {
|
||||
if self.gender_rate < 0.0 {
|
||||
Gender::Genderless
|
||||
|
||||
Reference in New Issue
Block a user