feat: scenarioEffect 추가

- 모든 General에 iAction으로 작동
This commit is contained in:
Hide_D committed 2023-08-05 06:53:19 +00:00
1 parent e54a0a6668
commit 16cfa46864
5 files changed
+66 -14

No files matched your search

+7
View File
@@ -508,6 +508,13 @@ class Scenario{
throw new \RuntimeException('유닛 파일이 올바르게 지정되지 않음! : '.$unitSet);
}
if(key_exists('scenarioEffect', $this->gameConf)){
$className = getScenarioEffectClass($this->gameConf['scenarioEffect']);
if($className === 'None'){
$this->gameConf['scenarioEffect'] = null;
}
}
Util::generatePHPClassFile($path.'/GameConst.php', $this->gameConf, 'GameConstBase', 'sammo');
copy("$mapPath/$mapName.php", $path.'/CityConst.php');