증여 추가

This commit is contained in:
2018-10-20 02:11:23 +09:00
parent b178ecd494
commit 7e5c19f507
9 changed files with 272 additions and 104 deletions
+2 -2
View File
@@ -107,10 +107,10 @@ class che_헌납 extends Command\GeneralCommand{
$logger = $general->getLogger();
$db->update('nation', [
$resourceKey=>$db->sqleval('%b + %i', $reKey, $amount)
$resKey=>$db->sqleval('%b + %i', $resKey, $amount)
], 'nation=%i', $general->getNationID());
$general->increaseVarWithLimit($resourceKey, -$amount, 0);
$general->increaseVarWithLimit($resKey, -$amount, 0);
$logger->pushGeneralActionLog("{$resName} <C>$amountText</>을 헌납했습니다. <1>$date</>");