Commit Graph
102 Commits
Author SHA1 Message Date
Hide_D 35935c9eca Refactor equipped items into persistent instances 2026-07-25 06:46:56 +00:00
Hide_D 85f134fd12 feat: preserve legacy nation turn execution 2026-07-25 06:17:32 +00:00
Hide_D 5040691d7c feat: implement input event system with durable command handling
- Introduced InputEvent model with status tracking (PENDING, PROCESSING, SUCCEEDED, FAILED) and unique request IDs.
- Added DatabaseTurnDaemonTransport for sending commands and handling idempotency.
- Implemented executeInputEvent function to manage input event lifecycle and error handling.
- Created DatabaseTurnDaemonCommandQueue for managing command processing and lease recovery.
- Enhanced turn daemon lifecycle to support atomic command execution and error recovery.
- Added tests for input event atomicity, command queuing, and error handling scenarios.
2026-07-25 05:36:34 +00:00
Hide_D c5da507df9 Implement crew type execution model 2026-07-25 05:16:11 +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 ded90dfb08 feat: 환경 제약 조건 개선 및 테스트 케이스 수정 2026-02-07 05:31:06 +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 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 d3277f204a feat: add dynasty management features including list and detail views
- Implemented `OldNation`, `OldGeneral`, and `Emperor` models in Prisma schema.
- Created API routes for fetching dynasty lists and details.
- Developed frontend views for displaying dynasty list and detail information.
- Enhanced in-memory world to track deleted nation snapshots during unification.
- Added functionality to settle dynasty information after unification events.
2026-01-29 19:09:17 +00:00
Hide_D c4a5361fc6 feat: 토너먼트 메타 조정 및 결과 처리 기능 추가 2026-01-29 18:33:56 +00:00
Hide_D 9fff671c2f feat: add ranking and hall of fame features
- Implemented new routes for Best General and Hall of Fame views in the frontend.
- Created BestGeneralView and HallOfFameView components to display rankings based on game data.
- Added new database models for RankData and HallOfFame to store ranking information.
- Introduced ranking types and hall of fame types in common types for better type safety.
- Developed ranking router to handle fetching of best general and hall of fame data.
- Updated database schema with migrations to include new tables for rank data and hall of fame.
- Enhanced the main view with links to the new ranking features.
2026-01-29 18:18:35 +00:00
Hide_D 19c359d0b2 feat: 시즌 번호 필드 추가 및 메타 데이터 처리 로직 개선 2026-01-29 17:53:36 +00:00
Hide_D 8c5ab5074d feat: 연감 기능 추가 및 데이터베이스 모델 생성 2026-01-28 16:18:14 +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 340cadb8ce feat: 메타 데이터에서 필수 killturn 값을 읽어오는 로직 추가 및 관련 함수 수정 2026-01-25 05:26:40 +00:00
Hide_D cc797c185d feat: 국가 멸망 처리 로직 추가 및 관련 테스트 케이스 작성 2026-01-24 18:47:25 +00:00
Hide_D e3b1fb0812 feat: update NPC 건국/통일 및 선전포고 테스트 로직 개선 2026-01-24 18:01:25 +00:00
Hide_D c9bdbac4c6 feat: normalize turn time for generals during initialization and updates 2026-01-24 15:32:23 +00:00
Hide_D 815b457354 feat: add default values for various game constants in reservedTurnCommands 2026-01-24 15:26:37 +00:00
Hide_D 293f3e3980 feat: enhance AI nation behavior and diplomacy handling, improve test assertions for war readiness 2026-01-24 15:12:09 +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 8735d350fa Refactor AI nation actions: consolidate functions into a single export module for improved organization and maintainability. 2026-01-24 13:38:54 +00:00
Hide_D 65194750e9 feat: 국가 선택 로직에서 랜덤 임관 기능으로 변경 2026-01-24 12:19:13 +00:00
Hide_D 2ea8e11f50 feat: createNoopDaemonTransport 함수 추가 및 토너먼트 상태 처리 개선, 캘린더 핸들러 반환 타입 수정 2026-01-24 11:36:01 +00:00
Hide_D 01f26edbeb feat: 프론트 상태 핸들러 추가 및 예약 턴 핸들러와 통합 2026-01-24 11:05:12 +00:00
Hide_D 9c8f901f7b feat: GeneralAI 디버그 상태 추가 및 예약 턴 핸들러에 AI 상태 전달 기능 구현 2026-01-24 10:57:30 +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 cb04c930b8 feat: afterExecuteGeneral 핸들러 추가 및 실행 결과 처리 로직 구현 2026-01-24 09:57:13 +00:00
Hide_D f280ed0c23 feat: 명령어 정규화 및 핸들러 매핑 개선 2026-01-24 05:40:58 +00:00
Hide_D 52be3b40ef feat: implement auction bidding and resource adjustment commands
- Added `adjustGeneralResources` command to handle resource adjustments for generals.
- Introduced `patchGeneral` command for updating general attributes.
- Created `auctionBid` command to facilitate bidding in auctions with validation.
- Refactored database interactions to use transactions for auction bids and resource adjustments.
- Enhanced error handling for auction and resource operations.
- Updated command handling in the turn daemon to support new commands.
- Introduced `AuctionBidder` interface and implementation for managing auction bids.
- Improved overall structure and readability of auction-related code.
2026-01-24 04:25:04 +00:00
Hide_D cbee0d4c20 feat: 국가 메타 업데이트 기능 추가 및 관련 로직 구현 2026-01-24 03:16:05 +00:00
Hide_D 6e439f074d feat: 토너먼트 자동 시작 핸들러 개선 및 관련 기능 추가 2026-01-23 18:58:05 +00:00
Hide_D 5846146ff3 feat: 토너먼트 자동 시작 핸들러 추가 및 관련 로직 구현 2026-01-23 18:34:50 +00:00
Hide_D 144b8d5705 feat: 토너먼트 상태 취소 기능 추가 및 관리자 메시지 수정 2026-01-23 18:19:48 +00:00
Hide_D 4997ef9a1c feat: 토너먼트 보상 처리 기능 추가 및 관련 타입 정의 2026-01-23 17:22:54 +00:00
Hide_D 293a5035c6 feat: 토너먼트 관련 기능 추가 및 베팅 처리 로직 구현 2026-01-23 16:58:59 +00:00
Hide_D 2d87cf881e 토너먼트 준비 2026-01-23 16:45:36 +00:00
Hide_D 2106f03dc3 feat: 경매 최종화 로직 및 통합 테스트 추가 2026-01-23 11:58:40 +00:00
Hide_D 1ed9953c67 경매 구현 2026-01-22 18:23:43 +00:00
Hide_D b5b761984e 경매 관련 진행 준비 2026-01-22 17:25:39 +00:00
Hide_D 9ac59893c4 feat: add schema validation and event table checks in scenario seeder 2026-01-18 18:13:55 +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 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 e3f7758187 feat: RedisTurnDaemonTransport에서 lastId 초기값을 '0-0'으로 변경 및 RedisCommandStream에서 블록 시간 제한 추가 2026-01-18 07:38:00 +00:00
Hide_D a9ddffa97c feat: add integration tests for initialization flow
- Implemented end-to-end integration tests covering database reset, bootstrap admin creation, demo user provisioning, scenario installation, and general creation.
- Added support for deterministic seeding and auto admin general creation.
- Created a new package for integration tests with necessary configurations and scripts.
- Updated various modules to support new features, including admin user handling and scenario seeding.
- Enhanced error handling and validation in the join and orchestrator modules.
2026-01-18 06:32:19 +00:00
Hide_D 70c7c0b039 feat: add git reference support for scenario previews; implement git ref handling in admin router and frontend 2026-01-17 14:27:11 +00:00