Loads more work on battling, initial stretch to run a turn done.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
use crate::dynamic_data::models::pokemon_party::PokemonParty;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct BattleParty<'a> {
|
||||
party: &'a PokemonParty<'a>,
|
||||
pub struct BattleParty<'own, 'library> {
|
||||
party: &'own PokemonParty<'own, 'library>,
|
||||
responsible_indices: Vec<(u8, u8)>,
|
||||
}
|
||||
|
||||
impl<'a> BattleParty<'a> {
|
||||
impl<'own, 'library> BattleParty<'own, 'library> {
|
||||
pub fn is_responsible_for_index(&self, side: u8, index: u8) -> bool {
|
||||
for responsible_index in &self.responsible_indices {
|
||||
if responsible_index.0 == side && responsible_index.1 == index {
|
||||
|
||||
Reference in New Issue
Block a user