From ab48082bb8bae7c2cfc336653560094f1404e5b4 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 28 Jan 2020 02:15:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=95=EB=B3=91=20=EB=B6=88=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=9C=20=EB=B3=91=EC=A2=85=EB=8F=84=20=ED=91=9C?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/processing.php | 10 +++++++--- hwe/templates/recruitCrewForm.php | 15 ++++++++++++++- 2 files changed, 21 insertions(+), 4 deletions(-) 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 @@ - + \ No newline at end of file
모병은 가격 2배의 자금이 소요됩니다.
불가능한 병종 표시
모병은 가격 2배의 자금이 소요됩니다.
+
@@ -43,6 +44,7 @@