건국 코드 준비

This commit is contained in:
2018-10-22 02:30:44 +09:00
parent 45e579f0ef
commit f56f201bad
4 changed files with 200 additions and 5 deletions
+3 -3
View File
@@ -20,8 +20,8 @@ use sammo\CityConst;
class che_임관 extends Command\GeneralCommand{
static protected $actionName = '임관';
class che_하야 extends Command\GeneralCommand{
static protected $actionName = '하야';
protected function argTest():bool{
$this->arg = null;
@@ -108,7 +108,7 @@ class che_임관 extends Command\GeneralCommand{
$db->update('nation', [
'gold'=>$db->sqleval('gold + %i', $lostGold),
'gold'=>$db->sqleval('gold + %i', $lostRice),
'rice'=>$db->sqleval('rice + %i', $lostRice),
'gennum'=>$db->sqleval('gennum - 1')
], 'nation=%i', $nationID);