* generalID, generalName 동작 안하는 문제 해결

* Event 관련 클래스 표기 실수 해결
This commit is contained in:
2018-04-02 01:50:21 +09:00
parent 0cac139f65
commit c0e2ed7013
7 changed files with 26 additions and 22 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class DeleteEvent extends \sammo\Event\Action{
public function __construct(){
}
public function run($env){
public function run($env=null){
$eventID = \sammo\Util::array_get($env['currentEventID']);
if(!$eventID){
+1 -1
View File
@@ -11,7 +11,7 @@ class RegNPC extends \sammo\Event\Action{
string $name,
int $pictureID,
int $nationID,
string $locatedCity,
$locatedCity,
int $leadership,
int $power,
int $intel,
+2 -2
View File
@@ -33,7 +33,7 @@ class Date extends \sammo\Event\Condition{
$this->month = $month;
}
public function eval(array $env=null){
public function eval($env=null){
if($env === null){
return [
'value'=>false,
@@ -50,7 +50,7 @@ class Date extends \sammo\Event\Condition{
}
$lhs = [
$this->$year,
$this->year,
$this->month
];
$rhs = [