Fixed some small mistakes with skill tree (#6409)
This commit is contained in:
parent
3c49843ba5
commit
745731b8e8
@ -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
|
||||
###########################################################################
|
||||
#
|
||||
|
@ -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
|
||||
###########################################################################
|
||||
#
|
||||
|
@ -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
|
||||
###########################################################################
|
||||
#
|
||||
|
@ -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
|
||||
###########################################################################
|
||||
#
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user