From d0771e3392376e8ef0ed61c850ce48394c31a732 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 4 May 2020 06:25:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B4=88=ED=86=A0=ED=99=94=20=EC=8A=A4?= =?UTF-8?q?=ED=83=9D=20=EB=B2=84=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/Nation/che_초토화.php | 43 ------------------------- 1 file changed, 43 deletions(-) diff --git a/hwe/sammo/Command/Nation/che_초토화.php b/hwe/sammo/Command/Nation/che_초토화.php index eb26b580..aecd75ba 100644 --- a/hwe/sammo/Command/Nation/che_초토화.php +++ b/hwe/sammo/Command/Nation/che_초토화.php @@ -86,49 +86,6 @@ class che_초토화 extends Command\NationCommand{ return 24; } - public function addTermStack():bool{ - $lastTurn = $this->getLastTurn(); - $commandName = $this->getName(); - - $nationStor = \sammo\KVStorage::getStorage(DB::db(), 'nation_env'); - $general = $this->getGeneral(); - $nationID = $general->getNationID(); - $nationStor->setValue("last천도Trial_{$nationID}", [$general->getVar('officer_level'), $general->getTurnTime()]); - - if($lastTurn->getCommand() != $commandName || $lastTurn->getArg() !== $this->arg){ - $this->setResultTurn(new LastTurn( - $commandName, - $this->arg, - 1, - $this->nation['capset'] - )); - return false; - } - - if($lastTurn->getSeq() < $this->nation['capset']){ - //NOTE: 최근에 천도, 증축이 일어났으면 리셋됨 - $this->setResultTurn(new LastTurn( - $commandName, - $this->arg, - 1, - $this->nation['capset'] - )); - return false; - } - - if($lastTurn->getTerm() < $this->getPreReqTurn()){ - $this->setResultTurn(new LastTurn( - $commandName, - $this->arg, - $lastTurn->getTerm() + 1, - $this->nation['capset'] - )); - return false; - } - - return true; - } - public function getBrief():string{ $commandName = $this->getName(); $destCityName = CityConst::byID($this->arg['destCityID'])->name;