징병 불가능한 병종도 표기
This commit is contained in:
+7
-3
@@ -244,9 +244,8 @@ function command_11($turn, $command, bool $is모병 = false) {
|
||||
|
||||
foreach(GameUnitConst::byType($armType) as $unit){
|
||||
$crewObj = new \stdClass;
|
||||
if(!$unit->isValid($ownCities, $ownRegions, $relativeYear, $tech)){
|
||||
continue; //TODO: 불가능한 병종도 보여줄 필요가 있음.
|
||||
}
|
||||
$crewObj->showDefault = 'true';
|
||||
|
||||
|
||||
$crewObj->id = $unit->id;
|
||||
|
||||
@@ -256,6 +255,11 @@ function command_11($turn, $command, bool $is모병 = false) {
|
||||
else{
|
||||
$crewObj->bgcolor = 'limegreen';
|
||||
}
|
||||
|
||||
if(!$unit->isValid($ownCities, $ownRegions, $relativeYear, $tech)){
|
||||
$crewObj->showDefault = 'false';
|
||||
$crewObj->bgcolor = 'red';
|
||||
}
|
||||
|
||||
$crewObj->baseRice = $unit->rice * getTechCost($tech);
|
||||
$crewObj->baseCost = CharCost($unit->costWithTech($tech), $me['personal']);
|
||||
|
||||
Reference in New Issue
Block a user