Cleaned up CSV2YAML skill database label (#4585)

* Strips the "_Skill" from TargetType.
* Cleaned up documentation header to match.
This commit is contained in:
Aleos 2020-02-01 09:53:27 -05:00 committed by GitHub
parent ecd2a9af87
commit 1b8c2e517d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@
# Description Skill description.
# MaxLevel Max skill level.
# Type Skill type. (Default: None)
# TargetType Skill target type. (Default: Passive_Skill)
# TargetType Skill target type. (Default: Passive)
# DamageFlags: Skill damage properties.
# Flags: Skill information flags.
# Range: Skill range. (Default: 0)

View File

@ -1461,6 +1461,7 @@ static bool skill_parse_row_skilldb(char* split[], int columns, int current) {
if (atoi(split[3]) != 0) {
constant = constant_lookup(atoi(split[3]), "INF_");
constant.erase(0, 4);
constant.erase(constant.size() - 6);
body << YAML::Key << "TargetType" << YAML::Value << name2Upper(constant);
}