From df307c26c16a2b86aed723f7452cd6eb92f1adfb Mon Sep 17 00:00:00 2001 From: Justin DuJardin Date: Fri, 9 Feb 2024 15:40:02 -0800 Subject: [PATCH] chore: auto format --- .../combat/behaviors/actions/combat-item.behavior.ts | 2 +- .../combat/states/combat-choose-action.state.spec.ts | 8 ++++---- .../routes/combat/states/combat-choose-action.state.ts | 6 +++--- src/app/routes/world/world.component.ts | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/routes/combat/behaviors/actions/combat-item.behavior.ts b/src/app/routes/combat/behaviors/actions/combat-item.behavior.ts index 404c7cd..5d92be9 100644 --- a/src/app/routes/combat/behaviors/actions/combat-item.behavior.ts +++ b/src/app/routes/combat/behaviors/actions/combat-item.behavior.ts @@ -67,7 +67,7 @@ export class CombatItemBehavior extends CombatActionBehavior { const actionCompletePromise = done$ .pipe( filter((d) => d === true), - take(1) + take(1), ) .toPromise(); diff --git a/src/app/routes/combat/states/combat-choose-action.state.spec.ts b/src/app/routes/combat/states/combat-choose-action.state.spec.ts index 8195b4c..5ebb6ae 100644 --- a/src/app/routes/combat/states/combat-choose-action.state.spec.ts +++ b/src/app/routes/combat/states/combat-choose-action.state.spec.ts @@ -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'); @@ -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'); @@ -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'); @@ -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); diff --git a/src/app/routes/combat/states/combat-choose-action.state.ts b/src/app/routes/combat/states/combat-choose-action.state.ts index 745c08d..ec501e7 100644 --- a/src/app/routes/combat/states/combat-choose-action.state.ts +++ b/src/app/routes/combat/states/combat-choose-action.state.ts @@ -25,7 +25,7 @@ export function chooseMove( enemies: GameEntityObject[], party: CombatPlayerComponent[], spells: Magic[], - items: Item[] + items: Item[], ): CombatActionBehavior { const magicAction = player.findBehavior(CombatMagicBehavior); const hurtPartyMember = party @@ -78,7 +78,7 @@ export function chooseMove( // Default to attacking const action = player.findBehavior( - CombatAttackBehaviorComponent + CombatAttackBehaviorComponent, ); assertTrue(action, `attack action not found on: ${player.name}`); action.from = player; @@ -244,7 +244,7 @@ export class CombatChooseActionStateComponent extends CombatMachineState { enemies, party, this.machine.spells.toJS(), - items + items, ); // Filter used items from next user choices diff --git a/src/app/routes/world/world.component.ts b/src/app/routes/world/world.component.ts index f8668b4..89dee91 100644 --- a/src/app/routes/world/world.component.ts +++ b/src/app/routes/world/world.component.ts @@ -137,7 +137,7 @@ export class WorldComponent extends SceneView implements AfterViewInit, OnDestro map((party: Immutable.List) => { const partyAlive = party.filter((p) => Number(p?.hp) > 0); return partyAlive.get(0) || null; - }) + }), ); private _renderPoint$: BehaviorSubject = new BehaviorSubject( this.renderPoint,