Add monthly war income comparison fixture

This commit is contained in:
2026-07-25 17:45:38 +00:00
parent 2a9029470f
commit d796eda13c
2 changed files with 103 additions and 1 deletions
+7 -1
View File
@@ -179,7 +179,13 @@ function comparisonMonthlyEventTraceMain(): void
throw new \InvalidArgumentException('request must be an object');
}
$actionName = $request['action'] ?? null;
if (!in_array($actionName, ['UpdateCitySupply', 'UpdateNationLevel', 'ProcessSemiAnnual'], true)) {
$supportedActions = [
'UpdateCitySupply',
'UpdateNationLevel',
'ProcessSemiAnnual',
'ProcessWarIncome',
];
if (!in_array($actionName, $supportedActions, true)) {
throw new \InvalidArgumentException('unsupported monthly action');
}
$setup = $request['setup'] ?? [];