국가 정보 반환시 0인 경우에 한해 재야도 반환.

- 재야의 색을 #000000 으로 설정
This commit is contained in:
2018-04-15 23:41:36 +09:00
parent 5a6cd7fb46
commit 6a100ed2c1
7 changed files with 35 additions and 28 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ class Scenario{
$data = $this->data;
$this->nations = [];
$this->nations[0] = new Scenario\Nation(0, '재야', '#ffffff', 0, 0);
$this->nations[0] = new Scenario\Nation(0, '재야', '#000000', 0, 0);
foreach (Util::array_get($data['nation'],[]) as $idx=>$rawNation) {
list($name, $color, $gold, $rice, $infoText, $tech, $type, $nationLevel, $cities) = $rawNation;
$nationID = $idx+1;