Commit Graph
159 Commits
Author SHA1 Message Date
Hide_D 828dceae13 fix: align item battle progression with legacy 2026-07-25 07:04:58 +00:00
Hide_D 7ed1b5df7f test: audit and strengthen legacy test suite 2026-07-25 06:54:18 +00:00
Hide_D 0d7ede3d93 feat: complete legacy unique item battle parity 2026-07-25 06:47:56 +00:00
Hide_D 35935c9eca Refactor equipped items into persistent instances 2026-07-25 06:46:56 +00:00
Hide_D 0da9c46f66 Merge feature/nation-turn-audit 2026-07-25 06:18:23 +00:00
Hide_D 85f134fd12 feat: preserve legacy nation turn execution 2026-07-25 06:17:32 +00:00
Hide_D 4b13c6d4f5 feat: align battle simulator with legacy handlers 2026-07-25 05:57:05 +00:00
Hide_D c5da507df9 Implement crew type execution model 2026-07-25 05:16:11 +00:00
Hide_D 14da014a6f feat: 여러 액션의 로그 메시지 개선 및 템플릿 카운트 비교 기능 추가 2026-02-07 07:52:00 +00:00
Hide_D 952c0d28c6 feat: add new general actions for border return, gifting, disbanding, founding nations, and fierce training
- Implemented '접경귀환' action for returning to a home city within 3 spaces.
- Added '증여' action for transferring resources between generals with constraints.
- Created '해산' action to disband a faction, resetting generals and cities.
- Developed '건국' action for founding a new nation with specified attributes.
- Introduced '맹훈련' action for training generals, enhancing their stats.
- Added tests for the new actions to ensure functionality and constraints are respected.
2026-02-07 06:10:28 +00:00
Hide_D d888140cf3 feat: 여러 제약 조건 개선 및 테스트 케이스 수정 2026-02-07 05:14:33 +00:00
Hide_D 13d22ece4a feat: 'AvailableRecruitCrewType' 제약 조건 이름 변경 2026-02-07 05:04:37 +00:00
Hide_D a30bc93d10 feat: 새로운 제약 조건 추가 및 기존 제약 조건 개선 2026-02-06 19:06:38 +00:00
Hide_D 15730feafe Refactor constraints and action definitions for improved clarity and functionality
- Renamed `requireMinimumTerm` to `reqMinimumTreatyTerm` for consistency in naming conventions.
- Introduced `battleGroundCity` constraint to encapsulate logic for checking if a city is in a war zone.
- Added `hasRouteToDestCity` constraint to validate city accessibility based on distance and resource requirements.
- Replaced `alwaysFail` with `denyWithReason` for better error handling in action definitions.
- Implemented `reqEnvValue` for environment value checks with comparison operators.
- Enhanced nation constraints with `reqNationValue` and `reqDestNationValue` for flexible value comparisons.
- Added `wanderingNation` constraint to check if a nation is classified as wandering.
- Improved general constraints with `reqGeneralValue` for dynamic value checks.
- Updated various action definitions to utilize new constraints for better maintainability and readability.
2026-02-06 18:55:43 +00:00
Hide_D d7cb8c77e3 feat: 여러 커맨드의 제약 조건 개선 및 새로운 제약 조건 추가 2026-02-06 18:26:21 +00:00
Hide_D dc752294fb feat: 커맨드 로그 체크리스트 업데이트 및 로그 메시지 개선 2026-02-06 16:50:19 +00:00
Hide_D 39935404bc feat: 커맨드 로그 메시지 개선 및 불필요한 항목 제거 2026-02-05 12:33:55 +00:00
Hide_D db1082ecb1 feat: 커맨드 로그 메시지 개선 및 불필요한 항목 제거 2026-02-04 19:07:14 +00:00
Hide_D 702f385612 feat: 여러 커맨드 로그 메시지 개선 및 불필요한 항목 제거 2026-02-04 19:03:54 +00:00
Hide_D 113e269a2c feat: 로그 메시지 개선 및 커맨드 로그 체크리스트 추가 2026-02-04 18:58:57 +00:00
Hide_D 568084927c feat: integrate unique lottery system into general actions
- Added `tryApplyUniqueLottery` function to various action definitions to apply unique item rewards based on specific actions.
- Enhanced the `uniqueLottery.ts` module to handle unique item acquisition and logging.
- Created unit tests for the unique lottery feature to ensure proper functionality during general commands.
- Updated action definitions to include unique item acquisition for actions such as training, technology research, and item procurement.
2026-02-04 12:03:47 +00:00
Hide_D a2bb667b57 feat: acquireType을 UniqueAcquireType으로 변경하고 관련 테스트 추가 2026-02-03 18:37:11 +00:00
Hide_D b0a8f768e9 feat: add survey view with voting functionality and admin panel
- Implemented SurveyView.vue for displaying and managing polls, including voting, comments, and results.
- Added new database tables for vote polls, votes, and comments in migration script.
- Created unique lottery logic for handling unique item rewards based on voting.
- Developed unit tests for unique lottery functionality to ensure deterministic behavior and correct counting of occupied unique items.
2026-02-03 18:25:26 +00:00
Hide_D 21d8507fc5 feat: 죽음 연도에 따른 killturn 계산 로직 추가 및 관련 메타 데이터 수정 2026-01-25 06:17:27 +00:00
Hide_D 5d5ed9ee2a feat: add killturn to general meta and update related tests
- Introduced a new meta property `killturn` to the GeneralMeta interface.
- Implemented a function `readMetaNumber` to handle the retrieval of numeric values from meta.
- Updated the `mapGeneralRow` function to ensure `killturn` is required and properly handled.
- Modified various tests to include the `killturn` property in the general's meta data.
- Adjusted related action files to utilize the new GeneralMeta type for better type safety.
- Ensured backward compatibility by updating existing test cases across multiple scenarios.
2026-01-25 05:48:56 +00:00
Hide_D f199427ff1 refactor: rename RNG method from nextFloat to nextFloat1 for consistency across the codebase 2026-01-24 13:58:12 +00:00
Hide_D a6b195fcaf feat: implement base war unit and specific unit types for city and general
- Added `WarUnit` class as the base for all war units, encapsulating common properties and methods.
- Introduced `WarUnitCity` class to represent city units, including methods for siege mechanics and city-specific calculations.
- Created `WarUnitGeneral` class for general units, incorporating action pipelines and experience handling.
- Implemented various utility functions for calculating attack, defense, and other combat-related metrics.
- Established logging mechanisms for battle results and unit actions.
2026-01-24 13:15:29 +00:00
Hide_D 4e521de0f3 feat: 랜덤 임관 기능 추가 및 관련 명령어 정의 2026-01-24 12:15:30 +00:00
Hide_D 756382d13b feat: 주민 선정 재구현 2026-01-24 12:00:43 +00:00
Hide_D 2ea8e11f50 feat: createNoopDaemonTransport 함수 추가 및 토너먼트 상태 처리 개선, 캘린더 핸들러 반환 타입 수정 2026-01-24 11:36:01 +00:00
Hide_D 9b867e99a4 롤백 2026-01-24 10:37:51 +00:00
Hide_D 2964c8ea59 feat: NPC 징병 및 예약 턴 핸들러 개선, 대형 테스트 맵 인구 수정 2026-01-24 10:32:38 +00:00
Hide_D 753abdaf47 feat: NPC 세금 처리 로직 및 관련 핸들러 추가, 대형 테스트 맵 수정 2026-01-24 10:06:55 +00:00
Hide_D 2d87cf881e 토너먼트 준비 2026-01-23 16:45:36 +00:00
Hide_D 5b51aad6d0 내무부, 금/쌀수입, 감찰부 구현 2026-01-18 16:40:12 +00:00
Hide_D e2accc31a7 feat: e2e 테스트 실행 및 에러 수정 2026-01-18 13:28:02 +00:00
Hide_D 3ce1f441d0 feat: add unification handler and inheritance system
- Implemented `unificationHandler.ts` to manage nation unification logic, including inheritance point calculations and logging.
- Created `InheritView.vue` for frontend management of inheritance points, buffs, and logs.
- Added database migration for new inheritance tables: `inheritance_point`, `inheritance_log`, `inheritance_result`, and `inheritance_user_state`.
- Developed inheritance buff logic in `inheritBuff.ts` to apply buffs during domestic and war actions.
2026-01-18 10:59:04 +00:00
Hide_D 2f05e5a1e1 feat: zod 라이브러리 버전을 4.3.5로 업데이트 2026-01-18 08:27:36 +00:00
Hide_D 116993b3ad feat: zod 라이브러리 업데이트 및 JSON 스키마 정의 개선 2026-01-18 08:19:22 +00:00
Hide_D 81594a25c3 feat: add resource schemas and validation scripts
- Introduced new resource schemas for maps, scenarios, unit sets, and turn commands using Zod.
- Implemented a script to generate JSON schemas from Zod schemas.
- Added a validation script to ensure resource JSON files conform to their respective schemas.
- Updated the logic package to export new resource schemas.
- Added new dependencies for schema generation and validation.
- Created a tools-scripts package for resource management tasks.
2026-01-18 08:04:02 +00:00
Hide_D 1b7423e1f6 feat: 여러 아이템의 onCalcStat 함수 개선 및 통일성 있는 statValue 상수화 2026-01-17 16:19:49 +00:00
Hide_D 07ea17dacf feat: refactor utility functions for improved consistency and usability; consolidate parsing logic 2026-01-17 12:36:58 +00:00
Hide_D 7a289c22d9 buildMinConstraints 구현 2026-01-15 17:29:26 +00:00
Hide_D 4a0b18954d Refactor command specifications to use availabilityArgs instead of args
- Updated multiple command specifications across various files to replace 'args' with 'availabilityArgs' for better clarity and consistency in argument handling.
- Removed empty 'args' objects in several command specifications to streamline the code.
- Ensured that all relevant commands in both general and nation action directories reflect these changes.
2026-01-15 16:43:24 +00:00
Hide_D a7b22f0502 커맨드의 arg 타입에 zod 강제. 2026-01-15 16:34:18 +00:00
Hide_D 39e7eddcf7 미구현 커맨드 추가 2026-01-15 15:56:24 +00:00
Hide_D 237e7e73cc feat: add Zod schema validation for command arguments in various action modules
- Introduced `argsSchema` property in `TurnCommandSpecBase` to enforce argument validation using Zod.
- Refactored argument parsing in multiple action modules (e.g., `che_NPC능동`, `che_강행`, `che_건국`, etc.) to utilize Zod schemas for improved type safety and validation.
- Removed redundant manual checks for argument types and replaced them with Zod's validation mechanisms.
- Enhanced code maintainability and readability by centralizing argument validation logic.
2026-01-15 15:27:20 +00:00
Hide_D d1b2076a32 추가 유닛 테스트 2026-01-15 15:02:09 +00:00
Hide_D f12d3cf4fe zod arg parse 작업 진행 2026-01-15 15:01:58 +00:00
Hide_D 24fbace987 lint 로직 변경 2026-01-15 14:58:44 +00:00