버그 수정
This commit is contained in:
@@ -10,6 +10,8 @@ use \sammo\GameConst;
|
|||||||
use \sammo\SpecialityHelper;
|
use \sammo\SpecialityHelper;
|
||||||
|
|
||||||
use function sammo\buildGeneralSpecialClass;
|
use function sammo\buildGeneralSpecialClass;
|
||||||
|
use function sammo\buildGeneralSpecialDomesticClass;
|
||||||
|
use function sammo\buildGeneralSpecialWarClass;
|
||||||
|
|
||||||
class GeneralBuilder{
|
class GeneralBuilder{
|
||||||
|
|
||||||
@@ -132,12 +134,12 @@ class GeneralBuilder{
|
|||||||
$this->specialWar = GameConst::$defaultSpecialWar;
|
$this->specialWar = GameConst::$defaultSpecialWar;
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
$this->specialDomestic = SpecialityHelper::getDomesticClassByName($special);
|
$this->specialDomestic = buildGeneralSpecialDomesticClass($special);
|
||||||
$this->specialWar = GameConst::$defaultSpecialWar;
|
$this->specialWar = GameConst::$defaultSpecialWar;
|
||||||
}
|
}
|
||||||
catch (\Exception $e){
|
catch (\Exception $e){
|
||||||
$this->specialDomestic = GameConst::$defaultSpecialDomestic;
|
$this->specialDomestic = GameConst::$defaultSpecialDomestic;
|
||||||
$this->specialWar = SpecialityHelper::getWarClassByName($special);
|
$this->specialWar = buildGeneralSpecialWarClass($special);
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user