This commit is contained in:
@@ -63,7 +63,7 @@ unsafe impl Send for DynamicLibraryImpl {}
|
||||
unsafe impl Sync for DynamicLibraryImpl {}
|
||||
|
||||
impl DynamicLibraryImpl {
|
||||
/// Instantiates a new DynamicLibrary with given parameters.
|
||||
/// Instantiates a new DynamicLibrary with given libraries.
|
||||
pub fn new(
|
||||
static_data: Arc<dyn StaticData>,
|
||||
stat_calculator: Arc<dyn BattleStatCalculator>,
|
||||
|
||||
@@ -415,11 +415,13 @@ impl Pokemon {
|
||||
Ok(changed)
|
||||
}
|
||||
|
||||
/// The [individual values](https://bulbapedia.bulbagarden.net/wiki/Individual_values) of the Pokemon.
|
||||
/// Gets an individual value of the Pokemon.
|
||||
/// [See also](https://bulbapedia.bulbagarden.net/wiki/Individual_values)
|
||||
pub fn individual_values(&self) -> &Arc<ClampedStatisticSet<u8, 0, 31>> {
|
||||
&self.data.individual_values
|
||||
}
|
||||
/// The [effort values](https://bulbapedia.bulbagarden.net/wiki/Effort_values) of the Pokemon.
|
||||
/// Gets an effort value of the Pokemon.
|
||||
/// [See also](https://bulbapedia.bulbagarden.net/wiki/Effort_values)
|
||||
pub fn effort_values(&self) -> &Arc<ClampedStatisticSet<u8, 0, 252>> {
|
||||
&self.data.effort_values
|
||||
}
|
||||
@@ -485,7 +487,8 @@ impl Pokemon {
|
||||
self.data.allowed_experience
|
||||
}
|
||||
|
||||
/// The [nature](https://bulbapedia.bulbagarden.net/wiki/Nature) of the Pokemon.
|
||||
/// The nature of the Pokemon.
|
||||
/// [See also](https://bulbapedia.bulbagarden.net/wiki/Nature)
|
||||
pub fn nature(&self) -> &Arc<dyn Nature> {
|
||||
&self.data.nature
|
||||
}
|
||||
@@ -961,7 +964,7 @@ impl VolatileScriptsOwner for Pokemon {
|
||||
}
|
||||
}
|
||||
|
||||
/// A source of damage. This should be as unique as possible.
|
||||
/// A source of damage.
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[repr(u8)]
|
||||
pub enum DamageSource {
|
||||
|
||||
Reference in New Issue
Block a user