Commit Graph
100 Commits
Author SHA1 Message Date
Hide_D 24fbace987 lint 로직 변경 2026-01-15 14:58:44 +00:00
Hide_D 62279dc587 todo 추가 2026-01-15 14:49:52 +00:00
Hide_D 9c1da3a5d5 턴엔진 테스트 및 버그 수정 2026-01-15 13:27:16 +00:00
Hide_D 550910811c feat(ai): add autorun policies for general and nation management
- Introduced `policies.ts` to define AI policies for generals and nations, including priority actions and flags.
- Implemented `AutorunGeneralPolicy` class to manage general-specific actions based on AI options and server/nation policies.
- Implemented `AutorunNationPolicy` class to handle nation-specific actions, including resource requirements and combat strategies.
- Added types for AI context and world view in `types.ts` to facilitate interaction with game state and entities.
2026-01-11 14:49:42 +00:00
Hide_D cc41d1538e 코드 수정 2026-01-11 11:48:12 +00:00
Hide_D 511aade81c 구현 2026-01-11 10:35:12 +00:00
Hide_D 373ddd863d 코드 2026-01-11 10:05:42 +00:00
Hide_D dc0b9271fb 코드 이식 2026-01-11 09:49:22 +00:00
Hide_D 6497b09b9d 사령턴 추가 2026-01-11 03:26:14 +00:00
Hide_D baa913a09c 사령턴 추가 구현 2026-01-10 14:49:39 +00:00
Hide_D f334cc297a ㅍㅍ 2026-01-10 14:04:52 +00:00
Hide_D a6c2077be7 수정 2026-01-10 13:49:33 +00:00
Hide_D 6a7151da4f 테스트 수정 2026-01-10 13:28:59 +00:00
Hide_D 98e4617393 유닛 테스트 수정 2026-01-10 13:23:54 +00:00
Hide_D 3ec7e66948 constraint 실패 후 실패 검사 결과 항목을 직접 반환. 2026-01-10 13:16:43 +00:00
Hide_D d5d3949705 예턴을 통한 테스트 수정 2026-01-08 16:43:50 +00:00
Hide_D 77185f1d49 건국 커맨드 구현 및 테스트 추가 2026-01-08 16:21:15 +00:00
Hide_D 2c541199da 예턴을 포함한 테스트 2026-01-08 15:14:52 +00:00
Hide_D e91fe06762 커맨드 엔진 실행에서 alternative 추가 2026-01-08 14:39:45 +00:00
Hide_D bc9c0fd717 misc 2026-01-08 14:19:13 +00:00
Hide_D 50dfed9adf 건국 관련 추가 구현 2026-01-08 14:16:34 +00:00
Hide_D 3e649f75fa 커맨드 보정 2026-01-08 13:59:59 +00:00
Hide_D f62bbb7927 refactor: apply consistent formatting and minor import adjustments across test and tsconfig files. 2026-01-07 18:05:22 +00:00
Hide_D 542a65c2a9 feat: include test directories in tsconfig files, disable no-explicit-any for test files, and document testing policy relaxations. 2026-01-07 18:02:02 +00:00
Hide_D 73c186fa74 refactor: Update test object modifications to use immutable patterns and extend command context with map, unitSet, and cities. 2026-01-07 17:56:10 +00:00
Hide_D b6e1c18203 WarUnitTrigger 부분 재정리 2026-01-07 17:44:49 +00:00
Hide_D 38a8d33242 refactor: update test setup, introduce system environment for commands, and streamline frontend build configuration. 2026-01-07 17:17:04 +00:00
Hide_D 57e9bbb4ea test: Implement in-memory game world and runner for logic scenario tests and fixtures. 2026-01-07 16:44:21 +00:00
Hide_D 4f23173efe feat(items): add various new items with unique effects and triggers
- Added '병법24편' book item to enhance intelligence by 13.
- Added '오자병법' book item to enhance intelligence by 14.
- Added '한비자' book item to enhance intelligence by 14.
- Added '노자' book item to enhance intelligence by 15.
- Added '손자병법' book item to enhance intelligence by 15.
- Introduced '동작' item to increase dexterity by 20%.
- Implemented '옥벽' item for a 20% chance to steal resources in battle.
- Created '상한잡병론' book item to improve city healing efficiency by 50%.
- Developed '정력견혈산' book item to enhance city healing efficiency by 100%.
- Added '청낭서' book item to improve city healing efficiency by 50%.
- Introduced '태평청령' book item to improve city healing efficiency by 50%.
- Added '매화수전' item for a 50% sniping chance during strategy attempts.
- Created '비도' item for a 50% sniping chance during strategy attempts.
- Developed '수극' item for a one-time sniping action at the start of battle.
- Introduced '삼황내문' item to halt enemy phases during defense.
- Added '평만지장도' item to reduce cooldown for national strategies by 20%.
- Created '주판' item to enhance resource acquisition success and quantity.
- Developed '박혁론' item to negate enemy strategies and rage effects.
- Introduced '전국책' item to increase damage by 30% on successful strategies.
- Added '낙주' item to reduce conscription costs and maintain population.
- Created '오악진형도' item to increase damage against regional units.
- Developed '둔갑천서' item to enhance critical hit probability by 20%.
- Introduced '서촉지형도' item to increase attack phase by 2.
- Added '논어집해' item to improve strategy success rate and damage.
- Created '태평요술' item to enhance evasion probability by 20%.
- Developed '단결도' item to increase training efficiency by 15.
- Introduced '철벽서' item to increase training efficiency by 15.
- Created '청주' item to provide a one-time training boost of 40.
2026-01-06 16:40:47 +00:00
Hide_D 0cfdebbb08 feat: Add new traits and requirements for war mechanics
- Introduced new traits including '귀병', '신산', '환술', '집중', '신중', '반계', '돌격', '무쌍', '견고', '위압', '저격', '필살', '격노', and '척사'.
- Implemented selection criteria for each trait, specifying weight, weight type, and requirements based on leadership, strength, intelligence, and army types.
- Updated existing traits to include selection properties for better trait management.
- Added a new requirements module to define trait requirements and weight types.
- Enhanced the trait selection logic to accommodate new traits and their specific conditions.
2026-01-06 15:10:00 +00:00
Hide_D 55a9230a36 feat: 국가 성향 모듈 추가 및 관련 타입 수정 2026-01-06 12:50:55 +00:00
Hide_D 19851c6e08 Revert "refactor: Introduce dedicated interfaces for trait stat calculation and update TraitModule to use them."
This reverts commit 27f7b8e894.
2026-01-05 19:53:25 +00:00
Hide_D da6a095151 Revert "wip: 바보 젬3플. type 재정의 준비"
This reverts commit 6bddbc3aa0.
2026-01-05 19:53:22 +00:00
Hide_D 33ccf31d55 Revert "wip"
This reverts commit 13426394dd.
2026-01-05 19:53:19 +00:00
Hide_D 06bca2a4a9 Revert "eslint warn"
This reverts commit 7dca3ecbc2.
2026-01-05 19:53:17 +00:00
Hide_D 101541e196 Revert "AGENTS 수정"
This reverts commit 3efcc8007a.
2026-01-05 19:52:14 +00:00
Hide_D 7dca3ecbc2 eslint warn 2026-01-05 19:12:37 +00:00
Hide_D 13426394dd wip 2026-01-05 19:10:45 +00:00
Hide_D 6bddbc3aa0 wip: 바보 젬3플. type 재정의 준비 2026-01-05 18:43:09 +00:00
Hide_D 27f7b8e894 refactor: Introduce dedicated interfaces for trait stat calculation and update TraitModule to use them. 2026-01-05 18:03:24 +00:00
Hide_D 2172953869 AGENTS 수정 2026-01-05 17:54:35 +00:00
Hide_D 3efcc8007a AGENTS 수정 2026-01-05 17:51:18 +00:00
Hide_D 44df19b079 refactor: improve war module type safety and reserved turns test data handling 2026-01-05 17:34:36 +00:00
Hide_D 2e45a2d194 gitignore 수정 2026-01-05 17:34:10 +00:00
Hide_D b0f070e5a5 AGENTS 수정 2026-01-05 17:24:11 +00:00
Hide_D cb7e9c832f feat: 타입 정의 개선 및 any 사용 제거 2026-01-05 17:19:32 +00:00
Hide_D 7e58f7bac4 fix: '@typescript-eslint/no-explicit-any' 규칙을 경고에서 오류로 변경 2026-01-05 17:07:34 +00:00
Hide_D 414db51c64 fix: 수정된 변수 이름 및 로그 출력 형식 개선 2026-01-05 16:56:45 +00:00
Hide_D 41339176ee feat: add new war traits for various unit types
- Implemented '궁병' trait with bonuses for archer units, including reduced recruitment costs and increased evasion.
- Added '기병' trait providing cavalry units with damage bonuses and reduced recruitment costs.
- Introduced '돌격' trait enhancing attack phases and damage against equal or weaker unit types.
- Created '무쌍' trait that increases damage and reduces damage taken based on the number of victories.
- Developed '반계' trait to reduce enemy strategy success rates and reflect damage back.
- Added '보병' trait with reduced recruitment costs and damage penalties for allies during attacks.
- Implemented '신산' trait enhancing magic success rates for various strategies.
- Created '신중' trait guaranteeing strategy success.
- Added '위압' trait to activate pressure effects on the first phase of battle.
- Implemented '저격' trait allowing for a chance to activate a sniping effect against new opponents.
- Developed '집중' trait to increase damage on successful strategies.
- Created '척사' trait providing damage bonuses against regional and city units while reducing ally damage.
- Implemented '필살' trait enhancing critical hit chances and disabling enemy evasion on critical hits.
- Added '환술' trait to boost magic success rates and damage on successful magic attacks.
2026-01-05 16:43:28 +00:00
Hide_D cf93c28aff docs: 업데이트된 문서 내용 반영 및 Redis 통합 설명 추가 2026-01-05 16:20:20 +00:00
Hide_D f4bc8e42f3 resource 위치 변경 2026-01-05 16:12:55 +00:00
Hide_D 10e9c80eb4 fix: 버튼 클릭 이벤트 순서 수정 2026-01-05 16:09:19 +00:00
Hide_D 3b7f4b1434 Refactor scenario JSON files for improved readability and consistency
- Consolidated array elements in scenario_903.json, scenario_904.json, scenario_905.json, scenario_906.json, scenario_908.json, scenario_910.json, scenario_911.json, scenario_912.json, and scenario_913.json to single-line format for better clarity.
- Removed unnecessary line breaks and whitespace in availableGeneralCommand and events sections across multiple scenario files.
- Ensured consistent formatting of event definitions, particularly for destroy_nation and OpenNationBetting events.
2026-01-05 16:09:15 +00:00
Hide_D 637d029101 fix: null 체크를 위한 단언 연산자 추가 2026-01-05 15:55:55 +00:00
Hide_D 5dff367c85 feat: eslint 설정에 무시할 경로 추가 2026-01-05 15:54:28 +00:00
Hide_D c965b1120f feat: eslint 적용 및 관련 코드 일괄 수정 2026-01-05 15:46:47 +00:00
Hide_D cb312f02b3 docs: AGENTS.md 문서에 섹션 추가 및 내용 정리 2026-01-05 15:45:22 +00:00
Hide_D e0dfe567db feat: Turbo 설정 추가 및 스크립트 업데이트 2026-01-05 15:24:14 +00:00
Hide_D d8c1035041 refactor: GatewayPrisma 가져오기 방식 변경 2026-01-05 15:23:36 +00:00
Hide_D b1f2523fa3 feat: GamePrisma를 사용하여 데이터베이스 클라이언트 및 관련 타입 정의 업데이트 2026-01-05 15:13:59 +00:00
Hide_D c3b6833172 feat: 모든 패키지에서 타입 체크 명령어를 --noEmit에서 -b로 변경 및 @sammo-ts/game-api 의존성 추가 2026-01-05 15:07:14 +00:00
Hide_D 1861cbc9c6 feat: Zod를 사용한 월드 상태 구성 및 메타 타입 추가, 사용자 ID 처리 개선 2026-01-05 14:49:19 +00:00
Hide_D 4391110ab0 docs: README.md에 타입체크 명령어 추가 2026-01-05 14:42:30 +00:00
Hide_D 33ca12bf14 refactor: rename SpecialAction to Trait and update related types
- Changed SpecialActionKind to TraitKind and updated its usage across the codebase.
- Refactored SpecialActionSpec to TraitSpec and updated all references.
- Updated the SpecialActionModule and related interfaces to TraitModule.
- Added personality traits with corresponding modules and loaders.
- Updated tests to reflect the new Trait structure and naming conventions.
- Adjusted imports and exports to align with the new Trait system.
2026-01-05 14:13:09 +00:00
Hide_D 3581477a42 feat: 타입스크립트 설정 및 Vite 구성 추가 2026-01-04 17:01:38 +00:00
Hide_D 0e06ae9c38 feat: 장수 관련 명령어 처리 및 설정 기능 추가 2026-01-04 16:51:58 +00:00
Hide_D ef2ced5f5e feat: 명령어 요청 ID 처리 개선 및 상태 응답 기능 업데이트 2026-01-04 16:18:52 +00:00
Hide_D 2753b85a26 feat: 턴 데몬 명령 처리 및 결과 응답 기능 추가 2026-01-04 16:05:22 +00:00
Hide_D b2a625d4e7 feat: 군대 관련 기능 추가 및 명령어 정의 업데이트 2026-01-04 13:54:30 +00:00
Hide_D 4fe4af868a feat: 추가된 전투 및 내정 특기 초기화, 단련, 숙련 전환 및 관광 명령 2026-01-04 06:58:43 +00:00
Hide_D 436a55297e feat: Add new strategic actions for nation turns
- Implemented '백성동원' (Mobilize People) action to enhance city defense and gain experience for generals.
- Added '수몰' (Flood) action to damage enemy city defenses and affect diplomatic relations.
- Created '이호경식' (Degrade Relations) action to manipulate diplomatic states between nations.
- Introduced '필사즉생' (Desperate Fight) action to boost training and atmosphere for generals in a nation.
- Developed '허보' (Deception) action to mislead enemy generals and alter their city assignments.
2026-01-04 06:38:20 +00:00
Hide_D c23b370f40 feat: migrate diplomacy logic to new module and update imports 2026-01-04 06:01:16 +00:00
Hide_D d7840a2681 Handle overlay diplomacy patches 2026-01-04 04:50:00 +00:00
Hide_D 94dec6c794 feat: replace custom clamp function with es-toolkit's clamp in multiple files 2026-01-03 16:47:45 +00:00
Hide_D eb4577a4c5 Refactor code structure for improved readability and maintainability 2026-01-03 16:43:14 +00:00
Hide_D aec43e67fa feat: add es-toolkit dependency to multiple package.json files 2026-01-03 16:40:15 +00:00
Hide_D 020028fc74 feat: add orchestrator admin action interval and integrate game engine dependency 2026-01-03 16:35:48 +00:00
Hide_D 822acebca0 feat: update gateway admin action consumer to handle applied actions and add reset functionality 2026-01-03 16:01:29 +00:00
Hide_D fbf5d68a6c feat: add admin action interval option and implement gateway admin action consumer 2026-01-03 15:55:28 +00:00
Hide_D 95f263785a feat: implement admin authentication context and update related procedures and tokens 2026-01-03 15:44:27 +00:00
Hide_D e5bd6d89ab feat: add admin user management features and update user repository methods
- Implemented updateRoles, updateSanctions, and deleteUser methods in both in-memory and PostgreSQL user repositories.
- Enhanced UserSanctions and UserServerRestriction interfaces to include additional properties.
- Added AdminView component for admin functionalities including user lookup, role management, sanctions application, and profile management.
- Integrated admin token handling in TRPC client for secure API requests.
- Updated routing to include admin dashboard and linked it in the default layout.
2026-01-03 15:28:51 +00:00
Hide_D a9609dcc19 feat: add database schema support for gateway and game profiles
- Introduced `dbSchema` configuration option in GatewayApiConfig and GatewayOrchestratorConfig.
- Implemented schema resolution logic in environment configuration functions.
- Updated context and orchestrator factory to use GatewayPrismaClient instead of PrismaClient.
- Refactored orchestrator server and profile repository to accommodate new database schema handling.
- Created separate Prisma schemas for game and gateway in the infra package.
- Enhanced Postgres connector to support schema overrides in database URLs.
- Updated documentation to reflect changes in database schema handling.
- Added new Prisma generation and database push scripts for game and gateway schemas.
2026-01-03 14:47:28 +00:00
Hide_D 67d995c65f feat: implement lobby functionality with user and server information retrieval 2026-01-03 13:35:16 +00:00
Hide_D 1988e180c5 feat: add profile status service and integrate it into the gateway API context and router 2026-01-03 10:30:59 +00:00
Hide_D 821e18cb53 feat: initialize gateway frontend with Vue 3, Vite, and Tailwind CSS
- Set up pnpm workspace with necessary dependencies including esbuild and vue-demi.
- Create initial HTML structure for the frontend application.
- Implement main App component with Vue Router integration.
- Add global styles using Tailwind CSS and custom theme variables.
- Define TypeScript environment for Vue components.
- Create a default layout component for consistent page structure.
- Set up Vue Router with a home view route.
- Implement authentication store using Pinia for user management.
- Create utility for tRPC client setup.
- Develop HomeView component with login functionality and server status placeholder.
- Configure TypeScript for Node with composite and strict options.
- Set up Vite configuration for Vue and Tailwind CSS integration.
2026-01-03 10:15:40 +00:00
Hide_D 395d937fd5 feat: update stat handling by introducing specific types for GeneralStatName and WarStatName across various modules 2026-01-03 09:49:46 +00:00
Hide_D d1522ff450 feat(items): add new item modules and enhance item functionality
- Introduced various item modules including '흑색마', '사륜거', '단궁', '동호비궁', '도기', '변도론', '전론', and '환약'.
- Implemented stat item modules to enhance general and war action contexts.
- Added triggers for item healing and sniping actions during battles.
- Enhanced item management with new utility functions for inventory handling.
- Updated the item registry and loader to support new items and their functionalities.
- Improved the overall structure of item-related code for better maintainability and scalability.
2026-01-03 09:28:46 +00:00
Hide_D e10bcba49b 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. 2026-01-03 08:08:33 +00:00
Hide_D 64953e39a5 feat: add special action modules for domestic and war triggers
- Implemented '발명' and '인덕' domestic special action modules with modifiers for technology research and population management.
- Added '의술' and '징병' war special action modules to enhance healing and recruitment capabilities during battles.
- Created a general trigger for city healing in '의술' and integrated it with the war action pipeline.
- Developed a comprehensive registry and loader for special action modules to streamline their usage in the game logic.
- Enhanced test coverage for special action modules, ensuring correct application of modifiers and trigger functionalities.
2026-01-03 08:01:04 +00:00
Hide_D eb361e1bed feat: add caching mechanism to GeneralTurnCommandLoader and NationTurnCommandLoader for improved performance 2026-01-03 07:02:55 +00:00
Hide_D 7b41852938 feat: replace js-sha512 with @noble/hashes for SHA-512 implementation and update related logic 2026-01-03 06:47:45 +00:00
Hide_D 4f90f50033 feat: Introduce action context builders for various turn actions
- Added `actionContextBuilder` to multiple turn action files to utilize the default action context builder.
- Implemented specific context builders for actions requiring additional context, such as war configurations, world summaries, and general statistics.
- Created new `actionContext.ts` and `actionContextHelpers.ts` files to define interfaces and helper functions for managing action contexts.
- Enhanced context handling for nation and general actions, ensuring proper data injection for turn execution.
2026-01-03 06:28:50 +00:00
Hide_D b628b32968 feat: add non-aggression cancel actions and related diplomacy constraints 2026-01-03 06:09:10 +00:00
Hide_D 11ffdfef0e feat: add state property to city and update related processing logic in battle simulation and world map 2026-01-02 21:13:37 +00:00
Hide_D edcfad4e40 feat: enhance action context with diplomacy and map handling, add constraints for crew and route validation 2026-01-02 19:52:17 +00:00
Hide_D ea2ef91b31 feat: enhance war action handling with new configurations and context management 2026-01-02 19:35:36 +00:00
Hide_D fba363c6ce feat: add command module and update action resolvers with GeneralActionResolver implementation 2026-01-02 19:08:11 +00:00
Hide_D f58b8b2553 feat: remove VolunteerRecruit module and related imports 2026-01-02 18:35:58 +00:00
Hide_D 10ff64946e feat: add non-aggression proposal and acceptance actions with constraints 2026-01-02 18:33:24 +00:00
Hide_D cb86a47f94 feat: implement diplomacy system with state management and processing logic 2026-01-02 17:48:44 +00:00