소스 검색

Skill YAML fixes
* Fixes an issue with knockback converting the wrong column.
* Fixes an issue with skills containing multiple elements converting the wrong column.
Thanks to @mazvi and @Lemongrass3110!

aleos 5 년 전
부모
커밋
abc027b47f
3개의 변경된 파일354개의 추가작업 그리고 128개의 파일을 삭제
  1. 186 63
      db/pre-re/skill_db.yml
  2. 165 62
      db/re/skill_db.yml
  3. 3 3
      src/tool/csv2yaml.cpp

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 186 - 63
db/pre-re/skill_db.yml


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 165 - 62
db/re/skill_db.yml


+ 3 - 3
src/tool/csv2yaml.cpp

@@ -1665,7 +1665,7 @@ static bool skill_parse_row_skilldb(char* split[], int columns, int current) {
 				else if (arr[i] == -3)
 					body << YAML::Key << "Element" << YAML::Value << "Random";
 				else {
-					constant = constant_lookup(atoi(split[2]), "ELE_");
+					constant = constant_lookup(arr[i], "ELE_");
 					constant.erase(0, 4);
 					body << YAML::Key << "Element" << YAML::Value << name2Upper(constant);
 				}
@@ -1720,9 +1720,9 @@ static bool skill_parse_row_skilldb(char* split[], int columns, int current) {
 		}
 	}
 
-	if (atoi(split[12]) != 0) {
+	if (atoi(split[14]) != 0) {
 		memset(arr, 0, sizeof(arr));
-		arr_size = skill_split_atoi(split[12], arr);
+		arr_size = skill_split_atoi(split[14], arr);
 
 		body << YAML::Key << "Knockback";
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.