Skip to content

Commit

Permalink
chore: auto format
Browse files Browse the repository at this point in the history
  • Loading branch information
justindujardin committed Feb 9, 2024
1 parent 0fbd227 commit df307c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class CombatItemBehavior extends CombatActionBehavior {
const actionCompletePromise = done$
.pipe(
filter((d) => d === true),
take(1)
take(1),
)
.toPromise();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('CombatChooseActionStateComponent', () => {
enemies,
party,
combat.machine.spells.toJS(),
combat.machine.items.toJS()
combat.machine.items.toJS(),
);
expect(action instanceof CombatMagicBehavior).toBe(true);
expect(action.spell?.id).toBe('heal');
Expand All @@ -79,7 +79,7 @@ describe('CombatChooseActionStateComponent', () => {
enemies,
party,
combat.machine.spells.toJS(),
combat.machine.items.toJS()
combat.machine.items.toJS(),
);
expect(action instanceof CombatMagicBehavior).toBe(true);
expect(action.spell?.id).toBe('push');
Expand All @@ -97,7 +97,7 @@ describe('CombatChooseActionStateComponent', () => {
enemies,
party,
combat.machine.spells.toJS(),
combat.machine.items.toJS()
combat.machine.items.toJS(),
);
expect(action instanceof CombatItemBehavior).toBe(true);
expect(action.item?.id).toBe('potion');
Expand All @@ -113,7 +113,7 @@ describe('CombatChooseActionStateComponent', () => {
enemies,
party,
combat.machine.spells.toJS(),
combat.machine.items.toJS()
combat.machine.items.toJS(),
);
expect(action instanceof CombatAttackBehaviorComponent).toBe(true);
expect(action.to instanceof CombatEnemyComponent).toBe(true);
Expand Down
6 changes: 3 additions & 3 deletions src/app/routes/combat/states/combat-choose-action.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function chooseMove(
enemies: GameEntityObject[],
party: CombatPlayerComponent[],
spells: Magic[],
items: Item[]
items: Item[],
): CombatActionBehavior {
const magicAction = player.findBehavior<CombatMagicBehavior>(CombatMagicBehavior);
const hurtPartyMember = party
Expand Down Expand Up @@ -78,7 +78,7 @@ export function chooseMove(

// Default to attacking
const action = player.findBehavior<CombatAttackBehaviorComponent>(
CombatAttackBehaviorComponent
CombatAttackBehaviorComponent,
);
assertTrue(action, `attack action not found on: ${player.name}`);
action.from = player;
Expand Down Expand Up @@ -244,7 +244,7 @@ export class CombatChooseActionStateComponent extends CombatMachineState {
enemies,
party,
this.machine.spells.toJS(),
items
items,
);

// Filter used items from next user choices
Expand Down
2 changes: 1 addition & 1 deletion src/app/routes/world/world.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class WorldComponent extends SceneView implements AfterViewInit, OnDestro
map((party: Immutable.List<Entity>) => {
const partyAlive = party.filter((p) => Number(p?.hp) > 0);
return partyAlive.get(0) || null;
})
}),
);
private _renderPoint$: BehaviorSubject<IPoint> = new BehaviorSubject(
this.renderPoint,
Expand Down

0 comments on commit df307c2

Please sign in to comment.