install.php에 1차적으로 ChangeCity를 물림
This commit is contained in:
@@ -4,7 +4,7 @@ use sammo\Util;
|
||||
use sammo\DB;
|
||||
|
||||
//기존 시나리오에서 개시 1월에 내정을 깎는 것을 모사.
|
||||
class ChangeCity extends sammo\Event\Action{
|
||||
class ChangeCity extends \sammo\Event\Action{
|
||||
const AVAILABLE_KEY = [
|
||||
'pop'=>true,
|
||||
'agri'=>true,
|
||||
@@ -20,7 +20,7 @@ class ChangeCity extends sammo\Event\Action{
|
||||
private $queries;
|
||||
private $targetType = 'all';
|
||||
private $targetArgs = [];
|
||||
public function __construct(array $target = null, array $actions){
|
||||
public function __construct($target = null, array $actions){
|
||||
|
||||
//values 포맷은 key, value로
|
||||
|
||||
@@ -54,7 +54,7 @@ class ChangeCity extends sammo\Event\Action{
|
||||
continue;
|
||||
}
|
||||
|
||||
$queries[$key] = $this->genSQLGeneric($value);
|
||||
$queries[$key] = $this->genSQLGeneric($key, $value);
|
||||
}
|
||||
|
||||
$this->queries = $queries;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
namespace sammo\Event\Action;
|
||||
|
||||
//기존 event_4.php
|
||||
class CreateAdminNPC extends sammo\Event\Action{
|
||||
class CreateAdminNPC extends \sammo\Event\Action{
|
||||
public function __construct(){
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
namespace sammo\Event\Action;
|
||||
|
||||
//기존 event_3.php
|
||||
class CreateManyNPC extends sammo\Event\Action{
|
||||
class CreateManyNPC extends \sammo\Event\Action{
|
||||
public function __construct($npcCount = 200){
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ use sammo\DB;
|
||||
* event_2.php, 약한 이민족 : npcEachCount = -0.5, specAvg = 150, specDist = 20, tech = -1, dex = 0
|
||||
* event_3.php, 엄청 약한 이민족 : npcEachCount = 100, specAvg = 50, specDist = 5, tech = 0, dex = 0
|
||||
*/
|
||||
class RaiseInvader extends sammo\Event\Action{
|
||||
class RaiseInvader extends \sammo\Event\Action{
|
||||
private $npcEachCount;
|
||||
private $specAvg;
|
||||
private $specDist;
|
||||
|
||||
Reference in New Issue
Block a user