feat: InstantAction 개념 추가

This commit is contained in:
2023-08-05 07:54:55 +00:00
parent 7258573e4d
commit 895b134cd0
2 changed files with 15 additions and 0 deletions
+10
View File
@@ -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,
+5
View File
@@ -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');