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!
This commit is contained in:
parent
c279c009ad
commit
abc027b47f
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1665,7 +1665,7 @@ static bool skill_parse_row_skilldb(char* split[], int columns, int current) {
|
|||||||
else if (arr[i] == -3)
|
else if (arr[i] == -3)
|
||||||
body << YAML::Key << "Element" << YAML::Value << "Random";
|
body << YAML::Key << "Element" << YAML::Value << "Random";
|
||||||
else {
|
else {
|
||||||
constant = constant_lookup(atoi(split[2]), "ELE_");
|
constant = constant_lookup(arr[i], "ELE_");
|
||||||
constant.erase(0, 4);
|
constant.erase(0, 4);
|
||||||
body << YAML::Key << "Element" << YAML::Value << name2Upper(constant);
|
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));
|
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";
|
body << YAML::Key << "Knockback";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user