버그 수정

This commit is contained in:
2019-04-24 02:36:50 +09:00
parent 5d1b39ca49
commit 5de5a77902
13 changed files with 160 additions and 232 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ abstract class BaseCommand{
protected $alternative = null;
static protected $isInitStatic = false;
static protected $isInitStatic = true;
protected static function initStatic(){
}
@@ -255,9 +255,9 @@ class che_랜덤임관 extends Command\GeneralCommand{
$relYear = $env['year'] - $env['startyear'];
if($general->getVar('npc') == 1 || $relYear >= 3){
$joinedNations = Join::decode($general->getVar('nations'));
$joinedNations = Json::decode($general->getVar('nations'));
$joinedNations[] = $destNationID;
$general->setVar('nations', Join::encode($joinedNations));
$general->setVar('nations', Json::encode($joinedNations));
}
$general->increaseVar('experience', $exp);
+1
View File
@@ -15,6 +15,7 @@ class che_모병 extends che_징병{
static protected $actionName = '모병';
static protected $costOffset = 2;
static protected $isInitStatic = false;
protected static function initStatic()
{
static::$defaultTrain = GameConst::$defaultTrainHigh;
+2 -2
View File
@@ -162,9 +162,9 @@ class che_임관 extends Command\GeneralCommand{
$relYear = $env['year'] - $env['startyear'];
if($general->getVar('npc') == 1 || $relYear >= 3){
$joinedNations = Join::decode($general->getVar('nations'));
$joinedNations = Json::decode($general->getVar('nations'));
$joinedNations[] = $destNationID;
$general->setVar('nations', Join::encode($joinedNations));
$general->setVar('nations', Json::encode($joinedNations));
}
$general->increaseVar('experience', $exp);
+1
View File
@@ -35,6 +35,7 @@ class che_징병 extends Command\GeneralCommand{
protected $reqCrewType;
protected $currCrewType;
static protected $isInitStatic = false;
protected static function initStatic()
{
static::$defaultTrain = GameConst::$defaultTrainLow;