\n";
}
}
std::string attribute_name = attribute;
Strings::FindReplace(attribute_name, "_min_max", std::string(""));
/**
* Translate attribute names with underscores
* "total_to_hit" = "Total To Hit"
*/
if (attribute_name.find('_') != std::string::npos) {
auto split_string = Strings::Split(attribute_name, '_');
std::string new_attribute_name;
for (const std::string &string_value : split_string) {
new_attribute_name += Strings::UcFirst(string_value) + " ";
}
attribute_name = new_attribute_name;
}
/**
* Attribute names less than 4 characters get capitalized
* "hp" = "HP"
*/
if (attribute_name.length() <= 3) {
attribute_name = Strings::ToUpper(attribute_name);
}
/**
* Attribute names larger than 3 characters get capitalized first letter
* "avoidance" = "Avoidance"
*/
if (attribute_name.length() > 3) {
attribute_name = Strings::UcFirst(attribute_name);
}
Strings::FindReplace(attribute_name, "Proximity", std::string(""));
Strings::FindReplace(attribute_name, "Roambox", std::string(""));
std::string attribute_value = GetMobAttributeByString(mob, attribute);
if (attribute_value.length() <= 0) {
continue;
}
text += "| " + attribute_name + " | " + GetMobAttributeByString(mob, attribute) + " | ";
if (index == column_count) {
index = 0;
continue;
}
index++;
}
text += "