Skip to content

Commit

Permalink
fixing typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jjppof committed Mar 29, 2023
1 parent 119a667 commit dc8408b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions base/battle/Battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,14 @@ export class Battle {

this.battle_log.add(this.enemies_party_name + " appeared!");
this.battle_stage.initialize_stage(() => {
this.allies_map_sprite = _.mapValues(_.keyBy(this.allies_info, "instance.key_name"), info => info.sprite);
this.enemies_map_sprite = _.mapValues(_.keyBy(this.enemies_info, "battle_key"), info => info.sprite);
this.allies_map_sprite = _.mapValues(
_.keyBy(this.allies_info, "instance.key_name"),
(info: PlayerInfo) => info.sprite
);
this.enemies_map_sprite = _.mapValues(
_.keyBy(this.enemies_info, "battle_key"),
(info: PlayerInfo) => info.sprite
);

this.data.control_manager.add_simple_controls(() => {
this.battle_log.clear();
Expand Down

0 comments on commit dc8408b

Please sign in to comment.