feat(api): ✨ add unit kind tracking in captor preview
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
22eaa27e5e
commit
a4f401cd8c
1 changed files with 2 additions and 0 deletions
|
|
@ -3851,6 +3851,7 @@ impl GdGameState {
|
|||
moved.current_action = None;
|
||||
moved.patrol_order = None;
|
||||
moved.formation_id = None;
|
||||
let unit_kind = moved.unit_id.clone();
|
||||
let captor_player = &mut self.inner.players[captor_idx];
|
||||
captor_player.units.push(moved);
|
||||
captor_player.unit_upkeep.push(upkeep.unwrap_or(0));
|
||||
|
|
@ -3863,6 +3864,7 @@ impl GdGameState {
|
|||
prior_owner: preview.owner,
|
||||
col,
|
||||
row,
|
||||
unit_kind,
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue