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; }