None 처리

This commit is contained in:
2020-05-01 03:27:43 +09:00
parent 7f35dda305
commit a00b5a71fc
+3 -3
View File
@@ -27,8 +27,8 @@ class SpecialityHelper{
} }
public static function getDomesticClassByName(?string $type):string{ public static function getDomesticClassByName(?string $type):string{
if($type === null || $type === ''){ if($type === null || $type === '' || $type === 'None'){
$type = GameConst::$defaultSpecialDomestic; $type = GameConst::$defaultSpecialWar;
} }
if(static::$domesticInv){ if(static::$domesticInv){
@@ -50,7 +50,7 @@ class SpecialityHelper{
} }
public static function getWarClassByName(?string $type):string{ public static function getWarClassByName(?string $type):string{
if($type === null || $type === ''){ if($type === null || $type === '' || $type === 'None'){
$type = GameConst::$defaultSpecialWar; $type = GameConst::$defaultSpecialWar;
} }