몰수, 포상 구현, 증여 헌납 버그 수정

This commit is contained in:
2018-11-17 15:40:34 +09:00
parent ca6755d8b5
commit 99142fdde3
8 changed files with 383 additions and 218 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ class che_증여 extends Command\GeneralCommand{
$resName = $isGold?'금':'쌀';
$destGeneral = $this->destGeneralObj;
$amount = Util::valueFit($amount, $general->getVar($resKey));
$amount = Util::valueFit($amount, 0, $general->getVar($resKey));
$amountText = number_format($amount, 0);
$logger = $general->getLogger();
@@ -125,7 +125,7 @@ class che_증여 extends Command\GeneralCommand{
$destGeneral->increaseVarWithLimit($resKey, $amount);
$general->increaseVarWithLimit($resKey, -$amount, 0);
$destGeneral->getLogger()->pushGeneralActionLog("{$general->getName()}</>에게서 {$resName} <C>{$amountText}</>을 증여 받았습니다.");
$destGeneral->getLogger()->pushGeneralActionLog("{$general->getName()}</>에게서 {$resName} <C>{$amountText}</>을 증여 받았습니다.", ActionLogger::PLAIN);
$logger->pushGeneralActionLog("{$destGeneral->getName()}에게 {$resName} <C>$amountText</>을 증여했습니다. <1>$date</>");
$exp = 70;
+1 -1
View File
@@ -96,7 +96,7 @@ class che_헌납 extends Command\GeneralCommand{
$resKey = $isGold?'gold':'rice';
$resName = $isGold?'금':'쌀';
$amount = Util::valueFit($amount, $general->getVar($resKey));
$amount = Util::valueFit($amount, 0, $general->getVar($resKey));
$amountText = number_format($amount, 0);
$logger = $general->getLogger();