From 9bcd18c42e86fbb59291e09a23d37c16fa664c40 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 18 Apr 2018 21:42:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8,=EC=A7=95=EB=B3=91=EC=8B=9C=20?= =?UTF-8?q?=ED=8A=B9=EC=84=B1=20=EB=B3=91=EC=A2=85=EC=9D=B4=202000=20?= =?UTF-8?q?=EB=A7=8C=20=EB=84=98=EC=96=B4=EB=8F=84=20=EB=9C=A8=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_converter.php | 3 --- hwe/sammo/GameUnitDetail.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/hwe/func_converter.php b/hwe/func_converter.php index 83e25176..83d45e69 100644 --- a/hwe/func_converter.php +++ b/hwe/func_converter.php @@ -397,9 +397,6 @@ function getBill(int $dedication) : int{ } function getCost(int $armtype) : int { - //FIXME: 정말로 side effect가 없으려면 query는 밖으로 이동해야함. - //TODO: 병종 값이 column으로 들어있는건 전혀 옳지 않음. key->value 형태로 바꿔야함 - return GameUnitConst::byID($armtype)->cost; } diff --git a/hwe/sammo/GameUnitDetail.php b/hwe/sammo/GameUnitDetail.php index 25ca54f6..c43e65df 100644 --- a/hwe/sammo/GameUnitDetail.php +++ b/hwe/sammo/GameUnitDetail.php @@ -68,7 +68,7 @@ class GameUnitDetail{ if(!key_exists($this->recruitCondition, $ownCities)){ return false; } - if($cityLevel == '특'){ + if($cityLevel == CityConst::$levelMap['특']){ if ($tech < 3000) { return false; }