Refactor import paths to use absolute paths from '@sammo-ts/logic' for consistency and clarity across the codebase. This includes updates to various modules related to actions, triggers, constraints, and world management, ensuring that all imports are correctly pointing to the new structure.

This commit is contained in:
2026-01-03 08:08:33 +00:00
parent 64953e39a5
commit e10bcba49b
70 changed files with 314 additions and 314 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import type {
General,
GeneralTriggerState,
Nation,
} from '../domain/entities.js';
import type { ActionLogger } from '../logging/actionLogger.js';
} from '@sammo-ts/logic/domain/entities.js';
import type { ActionLogger } from '@sammo-ts/logic/logging/actionLogger.js';
import type { WarUnit } from './units.js';
import { WarTriggerCaller } from './triggers.js';
+4 -4
View File
@@ -9,14 +9,14 @@ import type {
General,
GeneralTriggerState,
Nation,
} from '../domain/entities.js';
import { ActionLogger } from '../logging/actionLogger.js';
import { LogFormat, type LogEntryDraft } from '../logging/types.js';
} from '@sammo-ts/logic/domain/entities.js';
import { ActionLogger } from '@sammo-ts/logic/logging/actionLogger.js';
import { LogFormat, type LogEntryDraft } from '@sammo-ts/logic/logging/types.js';
import {
buildCrewTypeIndex,
getTechCost,
getTechLevel,
} from '../world/unitSet.js';
} from '@sammo-ts/logic/world/unitSet.js';
import type { WarUnitReport } from './types.js';
import type {
ConquerCityOutcome,
+1 -1
View File
@@ -1,4 +1,4 @@
import type { CrewTypeDefinition } from '../world/types.js';
import type { CrewTypeDefinition } from '@sammo-ts/logic/world/types.js';
// 전투 계산에 필요한 병종 정보 래퍼.
export class WarCrewType {
+4 -4
View File
@@ -8,10 +8,10 @@ import type {
City,
General,
GeneralTriggerState,
} from '../domain/entities.js';
import { ActionLogger } from '../logging/actionLogger.js';
import { LogFormat } from '../logging/types.js';
import { buildCrewTypeIndex as buildCrewTypeDefinitionIndex } from '../world/unitSet.js';
} from '@sammo-ts/logic/domain/entities.js';
import { ActionLogger } from '@sammo-ts/logic/logging/actionLogger.js';
import { LogFormat } from '@sammo-ts/logic/logging/types.js';
import { buildCrewTypeIndex as buildCrewTypeDefinitionIndex } from '@sammo-ts/logic/world/unitSet.js';
import { WarActionPipeline } from './actions.js';
import { WarCrewType } from './crewType.js';
import {
+1 -1
View File
@@ -1,6 +1,6 @@
import type { RandUtil } from '@sammo-ts/common';
import { TriggerCaller, type Trigger } from '../triggers/core.js';
import { TriggerCaller, type Trigger } from '@sammo-ts/logic/triggers/core.js';
import type { WarUnit } from './units.js';
export interface WarTriggerContext {
@@ -1,7 +1,7 @@
import { LogFormat } from '../../logging/types.js';
import { TriggerPriority } from '../../triggers/core.js';
import { BaseWarUnitTrigger, WarTriggerCaller } from '../triggers.js';
import { WarUnitGeneral, type WarUnit } from '../units.js';
import { LogFormat } from '@sammo-ts/logic/logging/types.js';
import { TriggerPriority } from '@sammo-ts/logic/triggers/core.js';
import { BaseWarUnitTrigger, WarTriggerCaller } from '@sammo-ts/logic/war/triggers.js';
import { WarUnitGeneral, type WarUnit } from '@sammo-ts/logic/war/units.js';
import type { WarTriggerModule } from './types.js';
// 의술: 치료 시도
@@ -1,7 +1,7 @@
import { LogFormat } from '../../logging/types.js';
import { TriggerPriority } from '../../triggers/core.js';
import { BaseWarUnitTrigger, WarTriggerCaller } from '../triggers.js';
import { WarUnitGeneral, type WarUnit } from '../units.js';
import { LogFormat } from '@sammo-ts/logic/logging/types.js';
import { TriggerPriority } from '@sammo-ts/logic/triggers/core.js';
import { BaseWarUnitTrigger, WarTriggerCaller } from '@sammo-ts/logic/war/triggers.js';
import { WarUnitGeneral, type WarUnit } from '@sammo-ts/logic/war/units.js';
import type { WarTriggerModule } from './types.js';
// 기본 필살: 시도 단계
+1 -1
View File
@@ -1,5 +1,5 @@
import type { WarTriggerModule, WarTriggerModuleExport } from './types.js';
import type { WarTriggerRegistry } from '../triggers.js';
import type { WarTriggerRegistry } from '@sammo-ts/logic/war/triggers.js';
export const WAR_TRIGGER_KEYS = [
'che_필살',
+2 -2
View File
@@ -1,5 +1,5 @@
import type { WarTriggerCaller } from '../triggers.js';
import type { WarUnit } from '../units.js';
import type { WarTriggerCaller } from '@sammo-ts/logic/war/triggers.js';
import type { WarUnit } from '@sammo-ts/logic/war/units.js';
export interface WarTriggerModule {
key: string;
+4 -4
View File
@@ -5,10 +5,10 @@ import type {
General,
GeneralTriggerState,
Nation,
} from '../domain/entities.js';
import type { ActionLogger } from '../logging/actionLogger.js';
import type { LogEntryDraft } from '../logging/types.js';
import type { UnitSetDefinition } from '../world/types.js';
} from '@sammo-ts/logic/domain/entities.js';
import type { ActionLogger } from '@sammo-ts/logic/logging/actionLogger.js';
import type { LogEntryDraft } from '@sammo-ts/logic/logging/types.js';
import type { UnitSetDefinition } from '@sammo-ts/logic/world/types.js';
import type { WarActionModule } from './actions.js';
import type { WarTriggerRegistry } from './triggers.js';
+4 -4
View File
@@ -7,10 +7,10 @@ import type {
Nation,
StatBlock,
TriggerValue,
} from '../domain/entities.js';
import type { ActionLogger } from '../logging/actionLogger.js';
import { LogFormat } from '../logging/types.js';
import { getTechAbility, getTechCost } from '../world/unitSet.js';
} from '@sammo-ts/logic/domain/entities.js';
import type { ActionLogger } from '@sammo-ts/logic/logging/actionLogger.js';
import { LogFormat } from '@sammo-ts/logic/logging/types.js';
import { getTechAbility, getTechCost } from '@sammo-ts/logic/world/unitSet.js';
import { WarActionPipeline, type WarActionContext } from './actions.js';
import type { WarEngineConfig } from './types.js';
import { WarCrewType } from './crewType.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import type { TriggerValue } from '../domain/entities.js';
import type { TriggerValue } from '@sammo-ts/logic/domain/entities.js';
const DEX_LEVEL_THRESHOLDS = [
0,