feat: parseScenarioEnvironment에서 scenarioEffect를 조건부로 추가하도록 수정
This commit is contained in:
@@ -124,7 +124,11 @@ const parseScenarioEnvironment = (
|
||||
? merged.scenarioEffect
|
||||
: undefined;
|
||||
|
||||
return { mapName, unitSet, scenarioEffect };
|
||||
const result: ScenarioEnvironment = { mapName, unitSet };
|
||||
if (scenarioEffect !== undefined) {
|
||||
result.scenarioEffect = scenarioEffect;
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
const parseNationRow = (row: unknown, index: number): ScenarioNation => {
|
||||
|
||||
Reference in New Issue
Block a user