특기 획득 구조 변경

This commit is contained in:
2020-04-26 22:31:49 +09:00
parent 73aa2bd158
commit 5aea034a17
50 changed files with 545 additions and 543 deletions
+8 -9
View File
@@ -37,16 +37,15 @@ $nationList = $db->query('SELECT nation,`name`,color,scout,scoutmsg FROM nation
var specialInfo =
<?php
$specialAll = [];
foreach (GameConst::$availableSpecialDomestic as $id) {
$domesticClass = buildGeneralSpecialDomesticClass($id);
$name = $domesticClass->getName();
$info = $domesticClass->getInfo();
foreach(SpecialityHelper::getSpecialDomesticList() as $specialID=>$specialObj){
$name = $specialObj->getName();
$info = $specialObj->getInfo();
$specialAll[$name] = $info;
}
foreach (SpecialityConst::WAR as $id=>$values) {
$name = $values[0];
$text = getSpecialInfo($id);
$specialAll[$name] = $text;
foreach(SpecialityHelper::getSpecialWarList() as $specialID=>$specialObj){
$name = $specialObj->getName();
$info = $specialObj->getInfo();
$specialAll[$name] = $info;
}
$specialAll['-'] = '없음';
echo Json::encode($specialAll);
@@ -55,7 +54,7 @@ echo Json::encode($specialAll);
var characterInfo =
<?php
$characterAll = [];
foreach(getCharacterList() as $id=>[$name, $info]){
foreach(getCharacterList(false) as $id=>[$name, $info]){
$characterAll[$name] = $info;
}
echo Json::encode($characterAll);