버그 수정2
This commit is contained in:
@@ -10,8 +10,6 @@ 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{
|
||||||
|
|
||||||
@@ -134,12 +132,12 @@ class GeneralBuilder{
|
|||||||
$this->specialWar = GameConst::$defaultSpecialWar;
|
$this->specialWar = GameConst::$defaultSpecialWar;
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
$this->specialDomestic = buildGeneralSpecialDomesticClass($special);
|
$this->specialDomestic = SpecialityHelper::getDomesticClassByName($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 = buildGeneralSpecialWarClass($special);
|
$this->specialWar = SpecialityHelper::getWarClassByName($special);
|
||||||
}
|
}
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user