diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index ea528042..1efc3341 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -228,6 +228,16 @@ class GameConstBase /** @var ?string */ public static $scenarioEffect = null; + public static $defaultInstantAction = [ + 'dieOnPrestart' => true, + 'buildNationCandidate' => true, + ]; + + public static $availableInstantAction = [ + 'dieOnPrestart' => true, + 'buildNationCandidate' => true, + ]; + public static $allItems = [ 'horse' => [ 'che_명마_01_노기' => 0, 'che_명마_02_조랑' => 0, 'che_명마_03_노새' => 0, diff --git a/hwe/sammo/Scenario.php b/hwe/sammo/Scenario.php index d2bc9ddb..2b86cba1 100644 --- a/hwe/sammo/Scenario.php +++ b/hwe/sammo/Scenario.php @@ -515,6 +515,11 @@ class Scenario{ } } + $this->gameConf['availableInstantAction'] = array_merge( + GameConstBase::$defaultInstantAction, + $this->gameConf['availableInstantAction']??[] + ); + Util::generatePHPClassFile($path.'/GameConst.php', $this->gameConf, 'GameConstBase', 'sammo'); copy("$mapPath/$mapName.php", $path.'/CityConst.php');