From b2896d09ecc005a83f6df0647cbeb8e80e032763 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 28 Mar 2018 05:32:31 +0900 Subject: [PATCH] =?UTF-8?q?ChangeCity=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95.=20RaiseInvader=EB=A5=BC=20=ED=95=98=EB=82=98?= =?UTF-8?q?=EB=A1=9C=20=ED=86=B5=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/sammo/Event/Action/ChangeCity.php | 2 + twe/sammo/Event/Action/RaiseInvader.php | 45 +++++++++++++++++++ twe/sammo/Event/Action/RaiseInvaderStrong.php | 13 ------ twe/sammo/Event/Action/RaiseInvaderWeak.php | 13 ------ 4 files changed, 47 insertions(+), 26 deletions(-) create mode 100644 twe/sammo/Event/Action/RaiseInvader.php delete mode 100644 twe/sammo/Event/Action/RaiseInvaderStrong.php delete mode 100644 twe/sammo/Event/Action/RaiseInvaderWeak.php diff --git a/twe/sammo/Event/Action/ChangeCity.php b/twe/sammo/Event/Action/ChangeCity.php index 24063e6b..74a46f76 100644 --- a/twe/sammo/Event/Action/ChangeCity.php +++ b/twe/sammo/Event/Action/ChangeCity.php @@ -1,5 +1,7 @@ npcEachCount = $npcEachCount; + $this->specAvg = $specAvg; + $this->specDist = $specDist; + $this->tech = $tech; + $this->dex = $dex; + } + + private function calcNpcEachCount(){ + + } + + public function run($env=null){ + $db = DB::db(); + $npcEachCount = $this->npcEachCount; + + if($npcEachCount < 0){ + $npcEachCount = $db->queryFirstField('SELECT count(no) from general where npc<5'); + $npcEachCount /= -1 * $this->npcEachCount; + } + return [__CLASS__, 'NYI']; + } +} \ No newline at end of file diff --git a/twe/sammo/Event/Action/RaiseInvaderStrong.php b/twe/sammo/Event/Action/RaiseInvaderStrong.php deleted file mode 100644 index 24eef512..00000000 --- a/twe/sammo/Event/Action/RaiseInvaderStrong.php +++ /dev/null @@ -1,13 +0,0 @@ -