From 3400f5843e22c137da8c482c9bd7a885b756b526 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 27 Mar 2022 03:54:37 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EB=8F=84=EA=B8=B0=20=ED=8C=90=EB=A7=A4?= =?UTF-8?q?=EC=8B=9C=20=EA=B5=AD=EA=B3=A0=EC=99=80=20=EA=B0=9C=EC=9D=B8=20?= =?UTF-8?q?=EC=9E=AC=EC=82=B0=EC=9C=BC=EB=A1=9C=20=EB=B0=98=EB=B0=98?= =?UTF-8?q?=EC=94=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/ActionItem/che_보물_도기.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hwe/sammo/ActionItem/che_보물_도기.php b/hwe/sammo/ActionItem/che_보물_도기.php index 68a7df56..34236d63 100644 --- a/hwe/sammo/ActionItem/che_보물_도기.php +++ b/hwe/sammo/ActionItem/che_보물_도기.php @@ -13,7 +13,7 @@ class che_보물_도기 extends \sammo\BaseItem protected $rawName = '도기'; protected $name = '도기(보물)'; - protected $info = '[개인] 판매 시 국고에 금, 쌀 중 하나를 추가 (+10,000, 5년마다 +10,000)'; + protected $info = '[개인] 판매 시 장수 소지금과 국고에 금, 쌀 중 하나를 추가 (총 +10,000, 5년마다 +10,000)'; protected $cost = 200; protected $consumable = false; @@ -48,15 +48,16 @@ class che_보물_도기 extends \sammo\BaseItem if ($nationId != 0) { $db->update('nation', [ - $resKey => $db->sqleval('%b + %i', $resKey, $score) + $resKey => $db->sqleval('%b + %i', $resKey, Util::toInt($score / 2)) ], 'nation=%i', $nationId); } + $general->increaseVar($resKey, $score - Util::toInt($score / 2)); $score = Util::round($score); $scoreText = number_format($score, 0); $logger = $general->getLogger(); - $logger->pushGeneralActionLog("국고에 {$resName} {$scoreText}을 보충합니다."); + $logger->pushGeneralActionLog("재산과 국고에 총 {$resName} {$scoreText}을 보충합니다."); return $aux; } }