diff --git a/hwe/sammo/GameUnitConstraint/ReqHighLevelCities.php b/hwe/sammo/GameUnitConstraint/ReqHighLevelCities.php new file mode 100644 index 00000000..fa02f019 --- /dev/null +++ b/hwe/sammo/GameUnitConstraint/ReqHighLevelCities.php @@ -0,0 +1,39 @@ += $this->reqCityLevel) { + $cnt++; + } + } + + if($cnt >= $this->reqCityCount) { + return true; + } + + return false; + } + + public function getInfo(): string + { + $cityLevelText = getCityLevelList()[$this->reqCityLevel]; + return "{$cityLevelText}성 {$this->reqCityCount}개 이상 소유시 가능"; + } +}