onCalcDomesticTurnScore 변경 TriggerNationType에서 숫자 id 제거

This commit is contained in:
2018-09-02 21:57:44 +09:00
parent 6fc8763895
commit 34204f6183
20 changed files with 47 additions and 57 deletions
+8 -9
View File
@@ -31,14 +31,6 @@ require_once('func_command.php');
function getNationStaticInfo($nationID, $forceRefresh=false)
{
static $nationList = null;
static $freeNation = [
'nation'=>0,
'name'=>'재야',
'color'=>'#000000',
'type'=>0,
'level'=>0,
'capital'=>0
];
if ($forceRefresh) {
$nationList = null;
@@ -48,7 +40,14 @@ function getNationStaticInfo($nationID, $forceRefresh=false)
return null;
}
if($nationID === 0){
return $freeNation;
return [
'nation'=>0,
'name'=>'재야',
'color'=>'#000000',
'type'=>GameConst::$neutralNationType,
'level'=>0,
'capital'=>0
];
}
if($nationList === null){