feat: InstantAction 개념 추가
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user