From 6afc6221d36114d566a94d3056f10e80f13129c4 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 22 Jan 2025 17:48:49 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=8A=B9=EC=A0=95=20=EB=93=B1=EA=B8=89?= =?UTF-8?q?=20=EC=9D=B4=EC=83=81=20=EB=8F=84=EC=8B=9C=20=EB=B3=B4=EC=9C=A0?= =?UTF-8?q?=20=EC=A1=B0=EA=B1=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GameUnitConstraint/ReqHighLevelCities.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 hwe/sammo/GameUnitConstraint/ReqHighLevelCities.php 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}개 이상 소유시 가능"; + } +}