국가 성향 converter를 TriggerNationType으로 통합
This commit is contained in:
@@ -96,7 +96,9 @@ class GameConstBase
|
||||
|
||||
/** @var array 선택 가능한 국가 성향 */
|
||||
public static $availableNationType = [
|
||||
'che_명가', 'che_음양가', 'che_종횡가', 'che_불가', 'che_도적', 'che_오두미도', 'che_태평도', 'che_도가',
|
||||
'che_도적', 'che_명가', 'che_음양가', 'che_종횡가', 'che_불가', 'che_오두미도', 'che_태평도', 'che_도가',
|
||||
'che_묵가', 'che_덕가', 'che_병가', 'che_유가', 'che_법가'
|
||||
];
|
||||
|
||||
public static $neutralNationType = 'che_중립';
|
||||
}
|
||||
|
||||
@@ -71,8 +71,12 @@ class Nation{
|
||||
$capital = 0;
|
||||
}
|
||||
|
||||
|
||||
$type = \sammo\NationCharCall($this->type);
|
||||
if(strpos($this->type, '_') === FALSE){
|
||||
$type = 'che_'.$this->type;
|
||||
}
|
||||
else{
|
||||
$type = $this->type;
|
||||
}
|
||||
|
||||
$db = DB::db();
|
||||
$otherNations = $db->queryFirstColumn('SELECT nation FROM nation');
|
||||
|
||||
Reference in New Issue
Block a user