Browse Source

Fixed some small mistakes with skill tree (#6409)

Lemongrass3110 3 years ago
parent
commit
745731b8e8
5 changed files with 11 additions and 5 deletions
  1. 2 1
      db/import-tmpl/skill_tree.yml
  2. 2 1
      db/pre-re/skill_tree.yml
  3. 2 1
      db/re/skill_tree.yml
  4. 2 1
      db/skill_tree.yml
  5. 3 1
      src/tool/csv2yaml.cpp

+ 2 - 1
db/import-tmpl/skill_tree.yml

@@ -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
 ###########################################################################
 #

+ 2 - 1
db/pre-re/skill_tree.yml

@@ -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
 ###########################################################################
 #

+ 2 - 1
db/re/skill_tree.yml

@@ -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
 ###########################################################################
 #

+ 2 - 1
db/skill_tree.yml

@@ -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
 ###########################################################################
 #

+ 3 - 1
src/tool/csv2yaml.cpp

@@ -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) {