Converts the Skill Tree Tables file into YAML (#6070)

* Converts the Skill Tree Tables file into YAML.
* Includes CSV2YAML converter.
* Corrected the tree according to the client (SkillInfoList)
* Removed 3rd jobs tree from pre-renewal, some required stats not being loaded by default

Co-authored-by: Aleos <aleos89@users.noreply.github.com>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
Atemo
2021-12-14 00:00:33 +01:00
committed by GitHub
parent 8eef9f9d36
commit b644bcfe69
17 changed files with 11035 additions and 12560 deletions

View File

@@ -311,14 +311,10 @@ bool skill_get_unit_flag_(uint16 skill_id, std::vector<e_skill_unit_flag> unit)
return false;
}
int skill_tree_get_max(uint16 skill_id, int b_class)
{
int i;
b_class = pc_class2idx(b_class);
ARR_FIND( 0, MAX_SKILL_TREE, i, skill_tree[b_class][i].skill_id == 0 || skill_tree[b_class][i].skill_id == skill_id );
if( i < MAX_SKILL_TREE && skill_tree[b_class][i].skill_id == skill_id )
return skill_tree[b_class][i].skill_lv;
int skill_tree_get_max(uint16 skill_id, int b_class) {
auto skill = skill_tree_db.get_skill_data(b_class, skill_id);
if (skill != nullptr)
return skill->max_lv;
else
return skill_get_max(skill_id);
}