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.
This commit is contained in:
2026-02-07 06:10:28 +00:00
parent ded90dfb08
commit 952c0d28c6
20 changed files with 2552 additions and 0 deletions
@@ -136,6 +136,20 @@ export const buildReservedTurnDefinitions = async (options: {
nation: Map<string, GeneralActionDefinition>;
}> => {
const itemModules = await loadItemModules([...ITEM_KEYS]);
options.env.itemCatalog = Object.fromEntries(
itemModules.map((item) => [
item.key,
{
slot: item.slot,
name: item.name,
rawName: item.rawName,
cost: item.cost,
reqSecu: item.reqSecu,
buyable: item.buyable,
unique: item.unique,
},
])
);
const itemRegistry = createItemModuleRegistry(itemModules);
const itemActionModules = createItemActionModules(itemRegistry);
const inheritBuffModules = createInheritBuffModules();