병종에 정보 텍스트 포함.

징병, 모병 페이지 내용을 GameUnitConst, GameUnitDetail에 기반하도록 변경
- 추가로 금,쌀을 소수점을  포함하도록 변경
This commit is contained in:
2018-03-31 05:21:47 +09:00
parent c976e55d72
commit 6775c06d3e
3 changed files with 236 additions and 679 deletions
+3 -1
View File
@@ -25,7 +25,8 @@ class GameUnitDetail{
int $rice,
int $recruitType,
int $recruitCondition,
bool $recruitFirst
bool $recruitFirst,
array $info
){
$this->name = $name;
$this->attack = $attack;
@@ -37,6 +38,7 @@ class GameUnitDetail{
$this->recruitType = $recruitType;
$this->recruitCondition = $recruitCondition;
$this->recruitFirst = $recruitFirst;
$this->info = $info;
}
public function isValid($ownCities, $ownRegions, $relativeYear, $tech){