rename specilizationIndexToLuaId

macos_ci_fix
Zackhasacat 1 year ago
parent cb705ff02a
commit ec81bd7f1b

@ -72,7 +72,7 @@ namespace MWLua
});
classT["specialization"] = sol::readonly_property([](const ESM::Class& rec) -> std::string_view {
return ESM::Class::indexToLuaId.at(rec.mData.mSpecialization);
return ESM::Class::specilizationIndexToLuaId.at(rec.mData.mSpecialization);
});
classT["isPlayable"]
= sol::readonly_property([](const ESM::Class& rec) -> bool { return rec.mData.mIsPlayable; });

@ -447,7 +447,7 @@ namespace MWLua
skillT["description"]
= sol::readonly_property([](const ESM::Skill& rec) -> std::string_view { return rec.mDescription; });
skillT["specialization"] = sol::readonly_property([](const ESM::Skill& rec) -> std::string_view {
return ESM::Class::indexToLuaId.at(rec.mData.mSpecialization);
return ESM::Class::specilizationIndexToLuaId.at(rec.mData.mSpecialization);
});
skillT["icon"] = sol::readonly_property([vfs](const ESM::Skill& rec) -> std::string {
return Misc::ResourceHelpers::correctIconPath(rec.mIcon, vfs);

@ -10,7 +10,7 @@ namespace ESM
{
const std::string_view Class::sGmstSpecializationIds[3]
= { "sSpecializationCombat", "sSpecializationMagic", "sSpecializationStealth" };
const std::array<std::string_view, 3> Class::indexToLuaId = { "combat", "magic", "stealth" };
const std::array<std::string_view, 3> Class::specilizationIndexToLuaId = { "combat", "magic", "stealth" };
int32_t& Class::CLDTstruct::getSkill(int index, bool major)
{

@ -32,7 +32,7 @@ namespace ESM
};
static const std::string_view sGmstSpecializationIds[3];
static const std::array<std::string_view, 3> indexToLuaId;
static const std::array<std::string_view, 3> specilizationIndexToLuaId;
struct CLDTstruct
{

Loading…
Cancel
Save