From 89c45421d87ec4d134311b139b2cc9a5f764dafc Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 28 Mar 2018 06:07:32 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/sammo/Event/Action/RaiseInvader.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/twe/sammo/Event/Action/RaiseInvader.php b/twe/sammo/Event/Action/RaiseInvader.php index 9395ecc0..07cff25b 100644 --- a/twe/sammo/Event/Action/RaiseInvader.php +++ b/twe/sammo/Event/Action/RaiseInvader.php @@ -31,11 +31,11 @@ class RaiseInvader extends sammo\Event\Action{ ]; public function __construct( - $npcEachCount = -0.5, - int $specAvg = 150, - int $specDist = 20, - int $tech = -1, - int $dex = 0 + $npcEachCount = -0.5, + int $specAvg = 150, + int $specDist = 20, + int $tech = -1, + int $dex = 0 ){ $this->npcEachCount = $npcEachCount; $this->specAvg = $specAvg; @@ -62,7 +62,7 @@ class RaiseInvader extends sammo\Event\Action{ order by rand() limit 1', $nation, $oldCapital); $db->update('nation', ['capital'=>$newCapital], 'nation=%i', $nation); - $db->update('generals', ['city'=>$newCapital], 'nation=%i and city=%i', $nation, $city); + $db->update('general', ['city'=>$newCapital], 'nation=%i and city=%i', $nation, $city); } $generals = [];