diff --git a/hwe/sammo/ActionItem/che_보물_도기.php b/hwe/sammo/ActionItem/che_보물_도기.php index fbe0ad87..476ab082 100644 --- a/hwe/sammo/ActionItem/che_보물_도기.php +++ b/hwe/sammo/ActionItem/che_보물_도기.php @@ -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);