Skip to content

Commit

Permalink
fix #83
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Aug 20, 2024
1 parent 47f3190 commit 11daad1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pets-lib/src/battle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ impl BattleEngine {

pub fn swap_party_member(&mut self, new_index: usize) {
self.current_party_member = new_index;
let pchar: String = todo!();
// let pchar = &self.battlers.good_guys[new_index].borrow().id;
let pchar = PChar::from_godot(pchar.into());
let pchar: PChar = pcb().bind_mut().party_pchars()[new_index];
godot_print!("Swapped to party member `{}`", pchar);

// set battle icon sprite
Expand Down

0 comments on commit 11daad1

Please sign in to comment.