Commit Graph
17 Commits
Author SHA1 Message Date
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 ea2ef91b31 feat: enhance war action handling with new configurations and context management 2026-01-02 19:35:36 +00:00
Hide_D 97439f64a9 feat: add aftermath module with war aftermath logic and related types 2025-12-30 10:40:30 +00:00
Hide_D b0c4f84656 feat: implement war engine with unit types, battle mechanics, and logging
- Added types for war engine configuration, battle input, and outcomes.
- Implemented core war unit classes for generals and cities, including combat logic.
- Introduced utility functions for managing meta data and conflict resolution.
- Developed tests for war triggers and battle resolution scenarios.
2025-12-30 10:25:48 +00:00
Hide_D d599d94a7b feat: add atmos property to General entity and update related logic
- Added `atmos` property to the `General` interface in `entities.ts`.
- Initialized `atmos` to 0 in the `buildGeneralSeeds` function in `bootstrap.ts`.
- Updated exports in `index.ts` to include `unitSet.js`.
- Introduced new types for crew types and their requirements in `types.ts`.
- Implemented `unitSetLoader.ts` for loading unit set definitions from JSON files.
- Created `che_징병.ts` action for recruiting crew types with cost and training calculations.
- Developed `unitSet.ts` for handling crew type availability and requirements.
- Added tests for crew type availability and unit set parsing in `crewType.test.ts`.
2025-12-30 09:45:51 +00:00
Hide_D c5cba31418 feat: add siegetank unit set and implement messaging system
- Created a new unit set for "siegetank" with various crew types and their attributes.
- Implemented a messaging system with types, payloads, and storage functionality.
- Added tests for the messaging system to ensure correct behavior for different message types (private, national, public, diplomacy).
2025-12-30 08:19:10 +00:00
Hide_D 8a2fc4fec5 feat: 일반 역할 및 슬롯 인터페이스 추가, 시나리오 파싱 및 부트스트랩 로직 개선 2025-12-28 17:11:05 +00:00
Hide_D 45c238ab38 feat: crewTypeId 및 defaultCrewTypeId 추가로 시나리오 부트스트랩 개선 2025-12-28 16:40:28 +00:00
Hide_D 54252dc6b4 feat: 월드 스냅샷 및 시나리오 부트스트랩 관련 타입 및 로더 구현 2025-12-28 15:26:25 +00:00
Hide_D afe5cadd9f feat(wip): 시나리오 로더 및 파서 구현, 관련 타입 추가 2025-12-28 14:42:23 +00:00
Hide_D 4dbbcca9d9 feat: RNG 테스트 파일 추가 및 기존 테스트 파일 삭제 2025-12-28 12:51:57 +00:00
Hide_D fa22562bb1 refactor: migrate RNG and utility functions to common package
- Removed RNG interface and related utility classes from logic package.
- Added RNG interface and utility classes in common package.
- Implemented various RNG classes (ConstantRNG, MidpointRNG, SineRNG, SequenceRNG) in common package.
- Updated conversion utilities for BytesLike to ArrayBuffer and Uint8Array in common package.
- Adjusted tests to import RNG utilities from the new common package.
- Updated vitest configuration to resolve common package imports.
2025-12-28 12:27:47 +00:00
Hide_D 50ef39be4e feat: TestRNG 클래스 추가 및 관련 테스트 케이스 작성 2025-12-28 11:02:45 +00:00
Hide_D 5e1e6c51ed fix: 수정된 타입 정의 및 불필요한 제네릭 제거 2025-12-27 05:15:31 +00:00
Hide_D 8b95824cb6 Refactor code structure for improved readability and maintainability 2025-12-27 05:09:15 +00:00
Hide_D 2d80d53b70 feat: Update module exports and enhance TypeScript configuration 2025-12-27 04:55:54 +00:00
Hide_D b3875a111f feat: Implement LiteHashDRBG and RNG utilities
- Added BytesLike type for handling various byte representations.
- Implemented LiteHashDRBG class for SHA-512 based deterministic random bit generator.
- Created RNG interface defining methods for random number generation.
- Developed RandUtil class providing utility functions for RNG operations.
- Added conversion functions for BytesLike to ArrayBuffer and Uint8Array.
- Implemented comprehensive tests for RNG functionality and expected behaviors.
- Configured Vitest for testing environment setup.
2025-12-27 04:45:59 +00:00