Implement semi-annual monthly processing
This commit is contained in:
@@ -48,6 +48,7 @@ import {
|
||||
import { createRaiseDisasterHandler } from './monthlyDisasterAction.js';
|
||||
import { createUpdateCitySupplyHandler } from './monthlyCitySupplyAction.js';
|
||||
import { createUpdateNationLevelHandler } from './monthlyNationLevelAction.js';
|
||||
import { createProcessSemiAnnualHandler } from './monthlySemiAnnualAction.js';
|
||||
import { DatabaseTurnDaemonLease, TurnDaemonLeaseUnavailableError } from '../lifecycle/databaseTurnDaemonLease.js';
|
||||
|
||||
export interface TurnDaemonRuntimeOptions {
|
||||
@@ -201,6 +202,13 @@ const createTurnDaemonRuntimeWithLease = async (
|
||||
map: snapshot.map,
|
||||
})
|
||||
);
|
||||
eventActions.set(
|
||||
'ProcessSemiAnnual',
|
||||
createProcessSemiAnnualHandler({
|
||||
getWorld: () => worldRef,
|
||||
nationTraits: nationTraitMap,
|
||||
})
|
||||
);
|
||||
if (reservedTurnStoreHandle) {
|
||||
eventActions.set(
|
||||
'UpdateNationLevel',
|
||||
|
||||
Reference in New Issue
Block a user