증축, 천도, 감축

This commit is contained in:
2020-04-14 02:36:20 +09:00
parent a4595a6592
commit cbe341ff2c
10 changed files with 721 additions and 15 deletions
+7 -2
View File
@@ -120,7 +120,13 @@ class che_천도 extends Command\NationCommand{
public function addTermStack():bool{
$lastTurn = $this->getLastTurn();
$commandName = $this->getName();
if($lastTurn->getCommand() != $commandName){
$nationStor = \sammo\KVStorage::getStorage(DB::db(), 'nation_env');
$general = $this->getGeneral();
$nationID = $general->getNationID();
$nationStor->setValue("last천도Trial_{$nationID}", [$general->getVar('level'), $general->getTurnTime()]);
if($lastTurn->getCommand() != $commandName && $lastTurn->getArg() !== $this->arg){
$this->setResultTurn(new LastTurn(
$commandName,
$this->arg,
@@ -215,7 +221,6 @@ class che_천도 extends Command\NationCommand{
$general->setResultTurn(new LastTurn($this->getName(), $this->arg, 0));
$general->applyDB($db);
return true;
}