diff --git a/hwe/processing.php b/hwe/processing.php index 4977e036..56908e67 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -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']); diff --git a/hwe/templates/recruitCrewForm.php b/hwe/templates/recruitCrewForm.php index 5224e8d7..0c2845b8 100644 --- a/hwe/templates/recruitCrewForm.php +++ b/hwe/templates/recruitCrewForm.php @@ -12,7 +12,8 @@
| 모병은 가격 2배의 자금이 소요됩니다. | ||||||||||
불가능한 병종 표시 모병은 가격 2배의 자금이 소요됩니다.
+ | ||||||||||
| @@ -43,6 +44,7 @@ | ||||||||||