Add monthly war income comparison fixture
This commit is contained in:
@@ -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'] ?? [];
|
||||
|
||||
Reference in New Issue
Block a user