- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.