급하게 도기 코드 수정, 냐섭에서 테스트할 예정

This commit is contained in:
2022-02-25 20:09:03 -08:00
parent 124c27cf17
commit 87c055563d
+7 -3
View File
@@ -44,9 +44,13 @@ class che_보물_도기 extends \sammo\BaseItem
['쌀', 'rice']
]);
//$db->update('nation', [
// $resKey => $db->sqleval('%b + %i', $resKey, $score)
//]);
$nationId = general['nation'];
if ($nationId != 0) {
$db->update('nation', [
$resKey => $db->sqleval('%b + %i', $resKey, $score)
], 'nation=%i', $nationId);
}
$score = Util::round($score);
$scoreText = number_format($score, 0);