Fixed some small mistakes with skill tree (#6409)

This commit is contained in:
Lemongrass3110 2021-12-15 22:19:59 +01:00 committed by GitHub
parent 3c49843ba5
commit 745731b8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 5 deletions

View File

@ -14,7 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################
#
###########################################################################
# Skill Tree Database
###########################################################################
#

View File

@ -14,7 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################
#
###########################################################################
# Skill Tree Database
###########################################################################
#

View File

@ -14,7 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################
#
###########################################################################
# Skill Tree Database
###########################################################################
#

View File

@ -14,7 +14,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################
#
###########################################################################
# Skill Tree Database
###########################################################################
#

View File

@ -4752,7 +4752,9 @@ static bool pc_readdb_skilltree(char* fields[], int columns, int current) {
static bool pc_readdb_skilltree_yaml(void) {
for (const auto &it : skill_tree) {
body << YAML::BeginMap;
body << YAML::Key << "Job" << YAML::Value << constant_lookup(it.first, "JOB_");
std::string job = constant_lookup(it.first, "JOB_");
job.erase( 0, 4 );
body << YAML::Key << "Job" << YAML::Value << name2Upper( job );
body << YAML::Key << "Tree";
body << YAML::BeginSeq;
for (const auto &subit : it.second) {