From 71c4a84833d4f829ba030ee2c3dd9068fe736d63 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 12 Mar 2020 15:59:36 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=EA=B0=80=EC=B9=A8=20=EB=A9=94?= =?UTF-8?q?=EC=8B=9C=EC=A7=80=EB=A5=BC=20=EC=A2=80=EB=8D=94=20=EB=AA=85?= =?UTF-8?q?=ED=99=95=ED=9E=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/Nation/che_불가침수락.php | 82 +-------------------- hwe/sammo/Command/Nation/che_불가침제의.php | 6 +- 2 files changed, 6 insertions(+), 82 deletions(-) diff --git a/hwe/sammo/Command/Nation/che_불가침수락.php b/hwe/sammo/Command/Nation/che_불가침수락.php index 91a9b36c..a0db4b4f 100644 --- a/hwe/sammo/Command/Nation/che_불가침수락.php +++ b/hwe/sammo/Command/Nation/che_불가침수락.php @@ -155,7 +155,7 @@ class che_불가침수락 extends Command\NationCommand{ $destNationName = getNationStaticInfo($this->arg['destNationID'])['name']; $year = $this->arg['year']; $month = $this->arg['month']; - return "{$year}년 {$month}월까지 "; + return "{$year}년 {$month}월 전까지 "; } public function run():bool{ @@ -195,92 +195,16 @@ class che_불가침수락 extends Command\NationCommand{ $josaWa = JosaUtil::pick($destNationName, '와'); $logger->pushGeneralActionLog("{$destNationName}{$josaWa} $year년 불가침에 성공했습니다.", ActionLogger::PLAIN); - $logger->pushGeneralHistoryLog("{$destNationName}{$josaWa} {$year}년 {$month}월까지 불가침 성공"); + $logger->pushGeneralHistoryLog("{$destNationName}{$josaWa} {$year}년 {$month}월 전까지 불가침 성공"); $josaWa = JosaUtil::pick($nationName, '와'); $destLogger->pushGeneralActionLog("{$nationName}{$josaWa} $year년 불가침에 성공했습니다.", ActionLogger::PLAIN); - $destLogger->pushGeneralHistoryLog("{$nationName}{$josaWa} {$year}년 {$month}월까지 불가침 성공"); + $destLogger->pushGeneralHistoryLog("{$nationName}{$josaWa} {$year}년 {$month}월 전까지 불가침 성공"); $general->applyDB($db); $destLogger->flush(); return true; } - - public function getJSFiles(): array - { - return [ - 'js/defaultSelectNationByMap.js' - ]; - } - - public function getForm(): string - { - $generalObj = $this->generalObj; - $nationID = $generalObj->getNationID(); - - $db = DB::db(); - - $currYear = $this->env['year']; - - $diplomacyStatus = Util::convertArrayToDict( - $db->query('SELECT * FROM diplomacy WHERE me = %i', $nationID), - 'you' - ); - - $nationList = []; - foreach(getAllNationStaticInfo() as $destNation){ - if($destNation['nation'] == $nationID){ - continue; - } - - $testCommand = new static($generalObj, $this->env, $this->getLastTurn(), [ - 'destNationID'=>$destNation['nation'], - 'year'=>$currYear+1, - 'month'=>12 - ]); - if(!$testCommand->isRunnable()){ - $destNation['cssBgColor'] = 'background-color:red;'; - } - else if($diplomacyStatus[$destNation['nation']]['state'] == 7){ - $destNation['cssBgColor'] = 'background-color:blue;'; - } - else{ - $destNation['cssBgColor'] = ''; - } - - $nationList[] = $destNation; - } - - ob_start(); -?> -
-타국에게 불가침을 제의합니다.
-제의할 국가를 목록에서 선택하세요.
-불가침 기한 다음 달부터 선포 가능합니다.
-배경색은 현재 제의가 불가능한 국가는 붉은색, 현재 불가침중인 국가는 푸른색으로 표시됩니다.
-
-에게 -년 -월까지 - -arg['destNationID'])['name']; $year = $this->arg['year']; $month = $this->arg['month']; - return "【{$destNationName}】에게 {$year}년 {$month}월까지 {$commandName}"; + return "【{$destNationName}】에게 {$year}년 {$month}월 전까지 {$commandName}"; } @@ -195,7 +195,7 @@ class che_불가침제의 extends Command\NationCommand{ Message::MSGTYPE_DIPLOMACY, $src, $dest, - "{$nationName}와 {$year}년 {$month}월까지 불가침 제의 서신", + "{$nationName}와 {$year}년 {$month}월 전까지 불가침 제의 서신", $now, $validUntil, [ @@ -283,7 +283,7 @@ class che_불가침제의 extends Command\NationCommand{ -월까지 +월 전까지