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
@@ -1,4 +1,4 @@
import type { GeneralTriggerState } from '../domain/entities.js';
import type { GeneralTriggerState } from '@sammo-ts/logic/domain/entities.js';
import { type GeneralActionContext, GeneralTriggerCaller } from './general.js';
export interface GeneralActionModule<TriggerState extends GeneralTriggerState = GeneralTriggerState> {
+2 -2
View File
@@ -1,6 +1,6 @@
import type { General, GeneralTriggerState } from '../domain/entities.js';
import type { General, GeneralTriggerState } from '@sammo-ts/logic/domain/entities.js';
import type { RandomGenerator } from '@sammo-ts/common';
import type { WorldStateRepository } from '../ports/world.js';
import type { WorldStateRepository } from '@sammo-ts/logic/ports/world.js';
import { TriggerCaller, type Trigger } from './core.js';
export interface GeneralWorldView<
@@ -1,11 +1,11 @@
import { JosaUtil } from '@sammo-ts/common';
import type { General, GeneralTriggerState } from '../../domain/entities.js';
import { TriggerPriority } from '../core.js';
import type { General, GeneralTriggerState } from '@sammo-ts/logic/domain/entities.js';
import { TriggerPriority } from '@sammo-ts/logic/triggers/core.js';
import {
BaseGeneralTrigger,
type GeneralTriggerContext,
} from '../general.js';
} from '@sammo-ts/logic/triggers/general.js';
const HEAL_PROBABILITY = 0.5;
const MIN_HEAL_INJURY = 10;
@@ -1,4 +1,4 @@
import type { SpecialActionModule } from '../types.js';
import type { SpecialActionModule } from '@sammo-ts/logic/triggers/special/types.js';
// 내정 특기: 발명
export const specialModule: SpecialActionModule = {
@@ -1,4 +1,4 @@
import type { SpecialActionModule } from '../types.js';
import type { SpecialActionModule } from '@sammo-ts/logic/triggers/special/types.js';
// 내정 특기: 인덕
export const specialModule: SpecialActionModule = {
@@ -1,7 +1,7 @@
import type {
SpecialActionModule,
SpecialActionModuleExport,
} from '../types.js';
} from '@sammo-ts/logic/triggers/special/types.js';
export const DOMESTIC_SPECIAL_KEYS = [
'che_인덕',
@@ -1,9 +1,9 @@
import type { GeneralTriggerState } from '../../domain/entities.js';
import type { GeneralActionContext } from '../general.js';
import type { GeneralActionModule } from '../general-action.js';
import type { WarActionContext, WarActionModule } from '../../war/actions.js';
import type { WarUnit } from '../../war/units.js';
import type { WarTriggerCaller } from '../../war/triggers.js';
import type { GeneralTriggerState } from '@sammo-ts/logic/domain/entities.js';
import type { GeneralActionContext } from '@sammo-ts/logic/triggers/general.js';
import type { GeneralActionModule } from '@sammo-ts/logic/triggers/general-action.js';
import type { WarActionContext, WarActionModule } from '@sammo-ts/logic/war/actions.js';
import type { WarUnit } from '@sammo-ts/logic/war/units.js';
import type { WarTriggerCaller } from '@sammo-ts/logic/war/triggers.js';
import type {
SpecialActionKind,
SpecialActionModule,
+3 -3
View File
@@ -1,6 +1,6 @@
import type { GeneralTriggerState } from '../../domain/entities.js';
import type { GeneralActionModule } from '../general-action.js';
import type { WarActionModule } from '../../war/actions.js';
import type { GeneralTriggerState } from '@sammo-ts/logic/domain/entities.js';
import type { GeneralActionModule } from '@sammo-ts/logic/triggers/general-action.js';
import type { WarActionModule } from '@sammo-ts/logic/war/actions.js';
export type SpecialActionKind = 'domestic' | 'war';
@@ -1,8 +1,8 @@
import { GeneralTriggerCaller } from '../../general.js';
import type { WarActionContext } from '../../../war/actions.js';
import { CheUisulCityHealTrigger } from '../../generalTriggers/che_도시치료.js';
import { triggerModule as cheUisulTriggerModule } from '../../../war/triggers/che_의술.js';
import type { SpecialActionModule } from '../types.js';
import { GeneralTriggerCaller } from '@sammo-ts/logic/triggers/general.js';
import type { WarActionContext } from '@sammo-ts/logic/war/actions.js';
import { CheUisulCityHealTrigger } from '@sammo-ts/logic/triggers/generalTriggers/che_도시치료.js';
import { triggerModule as cheUisulTriggerModule } from '@sammo-ts/logic/war/triggers/che_의술.js';
import type { SpecialActionModule } from '@sammo-ts/logic/triggers/special/types.js';
// 전투 특기: 의술
export const specialModule: SpecialActionModule = {
@@ -1,6 +1,6 @@
import type { GeneralActionContext } from '../../general.js';
import type { WarActionContext } from '../../../war/actions.js';
import type { SpecialActionModule } from '../types.js';
import type { GeneralActionContext } from '@sammo-ts/logic/triggers/general.js';
import type { WarActionContext } from '@sammo-ts/logic/war/actions.js';
import type { SpecialActionModule } from '@sammo-ts/logic/triggers/special/types.js';
const RECRUIT_TRAIN = 70;
const CONSCRIPT_TRAIN = 84;
@@ -1,7 +1,7 @@
import type {
SpecialActionModule,
SpecialActionModuleExport,
} from '../types.js';
} from '@sammo-ts/logic/triggers/special/types.js';
export const WAR_SPECIAL_KEYS = [
'che_의술',