|
|
|
@ -932,35 +932,35 @@ namespace MWWorld
|
|
|
|
|
|
|
|
|
|
void Store<ESM::Skill>::setUp(const MWWorld::Store<ESM::GameSetting>& settings)
|
|
|
|
|
{
|
|
|
|
|
constexpr std::string_view skillValues[ESM::Skill::Length][3] = {
|
|
|
|
|
{ "sSkillBlock", "icons\\k\\combat_block.dds", "fWerewolfBlock" },
|
|
|
|
|
{ "sSkillArmorer", "icons\\k\\combat_armor.dds", "fWerewolfArmorer" },
|
|
|
|
|
{ "sSkillMediumarmor", "icons\\k\\combat_mediumarmor.dds", "fWerewolfMediumarmor" },
|
|
|
|
|
{ "sSkillHeavyarmor", "icons\\k\\combat_heavyarmor.dds", "fWerewolfHeavyarmor" },
|
|
|
|
|
{ "sSkillBluntweapon", "icons\\k\\combat_blunt.dds", "fWerewolfBluntweapon" },
|
|
|
|
|
{ "sSkillLongblade", "icons\\k\\combat_longblade.dds", "fWerewolfLongblade" },
|
|
|
|
|
{ "sSkillAxe", "icons\\k\\combat_axe.dds", "fWerewolfAxe" },
|
|
|
|
|
{ "sSkillSpear", "icons\\k\\combat_spear.dds", "fWerewolfSpear" },
|
|
|
|
|
{ "sSkillAthletics", "icons\\k\\combat_athletics.dds", "fWerewolfAthletics" },
|
|
|
|
|
{ "sSkillEnchant", "icons\\k\\magic_enchant.dds", "fWerewolfEnchant" },
|
|
|
|
|
{ "sSkillDestruction", "icons\\k\\magic_destruction.dds", "fWerewolfDestruction" },
|
|
|
|
|
{ "sSkillAlteration", "icons\\k\\magic_alteration.dds", "fWerewolfAlteration" },
|
|
|
|
|
{ "sSkillIllusion", "icons\\k\\magic_illusion.dds", "fWerewolfIllusion" },
|
|
|
|
|
{ "sSkillConjuration", "icons\\k\\magic_conjuration.dds", "fWerewolfConjuration" },
|
|
|
|
|
{ "sSkillMysticism", "icons\\k\\magic_mysticism.dds", "fWerewolfMysticism" },
|
|
|
|
|
{ "sSkillRestoration", "icons\\k\\magic_restoration.dds", "fWerewolfRestoration" },
|
|
|
|
|
{ "sSkillAlchemy", "icons\\k\\magic_alchemy.dds", "fWerewolfAlchemy" },
|
|
|
|
|
{ "sSkillUnarmored", "icons\\k\\magic_unarmored.dds", "fWerewolfUnarmored" },
|
|
|
|
|
{ "sSkillSecurity", "icons\\k\\stealth_security.dds", "fWerewolfSecurity" },
|
|
|
|
|
{ "sSkillSneak", "icons\\k\\stealth_sneak.dds", "fWerewolfSneak" },
|
|
|
|
|
{ "sSkillAcrobatics", "icons\\k\\stealth_acrobatics.dds", "fWerewolfAcrobatics" },
|
|
|
|
|
{ "sSkillLightarmor", "icons\\k\\stealth_lightarmor.dds", "fWerewolfLightarmor" },
|
|
|
|
|
{ "sSkillShortblade", "icons\\k\\stealth_shortblade.dds", "fWerewolfShortblade" },
|
|
|
|
|
{ "sSkillMarksman", "icons\\k\\stealth_marksman.dds", "fWerewolfMarksman" },
|
|
|
|
|
constexpr std::string_view skillValues[ESM::Skill::Length][4] = {
|
|
|
|
|
{ "sSkillBlock", "icons\\k\\combat_block.dds", "fWerewolfBlock", {} },
|
|
|
|
|
{ "sSkillArmorer", "icons\\k\\combat_armor.dds", "fWerewolfArmorer", {} },
|
|
|
|
|
{ "sSkillMediumarmor", "icons\\k\\combat_mediumarmor.dds", "fWerewolfMediumarmor", {} },
|
|
|
|
|
{ "sSkillHeavyarmor", "icons\\k\\combat_heavyarmor.dds", "fWerewolfHeavyarmor", {} },
|
|
|
|
|
{ "sSkillBluntweapon", "icons\\k\\combat_blunt.dds", "fWerewolfBluntweapon", {} },
|
|
|
|
|
{ "sSkillLongblade", "icons\\k\\combat_longblade.dds", "fWerewolfLongblade", {} },
|
|
|
|
|
{ "sSkillAxe", "icons\\k\\combat_axe.dds", "fWerewolfAxe", {} },
|
|
|
|
|
{ "sSkillSpear", "icons\\k\\combat_spear.dds", "fWerewolfSpear", {} },
|
|
|
|
|
{ "sSkillAthletics", "icons\\k\\combat_athletics.dds", "fWerewolfAthletics", {} },
|
|
|
|
|
{ "sSkillEnchant", "icons\\k\\magic_enchant.dds", "fWerewolfEnchant", {} },
|
|
|
|
|
{ "sSkillDestruction", "icons\\k\\magic_destruction.dds", "fWerewolfDestruction", "destruction" },
|
|
|
|
|
{ "sSkillAlteration", "icons\\k\\magic_alteration.dds", "fWerewolfAlteration", "alteration" },
|
|
|
|
|
{ "sSkillIllusion", "icons\\k\\magic_illusion.dds", "fWerewolfIllusion", "illusion" },
|
|
|
|
|
{ "sSkillConjuration", "icons\\k\\magic_conjuration.dds", "fWerewolfConjuration", "conjuration" },
|
|
|
|
|
{ "sSkillMysticism", "icons\\k\\magic_mysticism.dds", "fWerewolfMysticism", "mysticism" },
|
|
|
|
|
{ "sSkillRestoration", "icons\\k\\magic_restoration.dds", "fWerewolfRestoration", "restoration" },
|
|
|
|
|
{ "sSkillAlchemy", "icons\\k\\magic_alchemy.dds", "fWerewolfAlchemy", {} },
|
|
|
|
|
{ "sSkillUnarmored", "icons\\k\\magic_unarmored.dds", "fWerewolfUnarmored", {} },
|
|
|
|
|
{ "sSkillSecurity", "icons\\k\\stealth_security.dds", "fWerewolfSecurity", {} },
|
|
|
|
|
{ "sSkillSneak", "icons\\k\\stealth_sneak.dds", "fWerewolfSneak", {} },
|
|
|
|
|
{ "sSkillAcrobatics", "icons\\k\\stealth_acrobatics.dds", "fWerewolfAcrobatics", {} },
|
|
|
|
|
{ "sSkillLightarmor", "icons\\k\\stealth_lightarmor.dds", "fWerewolfLightarmor", {} },
|
|
|
|
|
{ "sSkillShortblade", "icons\\k\\stealth_shortblade.dds", "fWerewolfShortblade", {} },
|
|
|
|
|
{ "sSkillMarksman", "icons\\k\\stealth_marksman.dds", "fWerewolfMarksman", {} },
|
|
|
|
|
// "Mercantile"! >_<
|
|
|
|
|
{ "sSkillMercantile", "icons\\k\\stealth_mercantile.dds", "fWerewolfMerchantile" },
|
|
|
|
|
{ "sSkillSpeechcraft", "icons\\k\\stealth_speechcraft.dds", "fWerewolfSpeechcraft" },
|
|
|
|
|
{ "sSkillHandtohand", "icons\\k\\stealth_handtohand.dds", "fWerewolfHandtohand" },
|
|
|
|
|
{ "sSkillMercantile", "icons\\k\\stealth_mercantile.dds", "fWerewolfMerchantile", {} },
|
|
|
|
|
{ "sSkillSpeechcraft", "icons\\k\\stealth_speechcraft.dds", "fWerewolfSpeechcraft", {} },
|
|
|
|
|
{ "sSkillHandtohand", "icons\\k\\stealth_handtohand.dds", "fWerewolfHandtohand", {} },
|
|
|
|
|
};
|
|
|
|
|
for (ESM::Skill* skill : mShared)
|
|
|
|
|
{
|
|
|
|
@ -969,6 +969,21 @@ namespace MWWorld
|
|
|
|
|
skill->mName = getGMSTString(settings, skillValues[skill->mIndex][0]);
|
|
|
|
|
skill->mIcon = skillValues[skill->mIndex][1];
|
|
|
|
|
skill->mWerewolfValue = getGMSTFloat(settings, skillValues[skill->mIndex][2]);
|
|
|
|
|
const auto& school = skillValues[skill->mIndex][3];
|
|
|
|
|
if (!school.empty())
|
|
|
|
|
{
|
|
|
|
|
if (!skill->mSchool)
|
|
|
|
|
skill->mSchool = ESM::MagicSchool{};
|
|
|
|
|
const std::string id{ school };
|
|
|
|
|
skill->mSchool->mAreaSound = ESM::RefId::stringRefId(id + " area");
|
|
|
|
|
skill->mSchool->mBoltSound = ESM::RefId::stringRefId(id + " bolt");
|
|
|
|
|
skill->mSchool->mCastSound = ESM::RefId::stringRefId(id + " cast");
|
|
|
|
|
skill->mSchool->mFailureSound = ESM::RefId::stringRefId("Spell Failure " + id);
|
|
|
|
|
skill->mSchool->mHitSound = ESM::RefId::stringRefId(id + " hit");
|
|
|
|
|
const std::string name = "sSchool" + id;
|
|
|
|
|
skill->mSchool->mName = getGMSTString(settings, name);
|
|
|
|
|
skill->mSchool->mAutoCalcMax = int(getGMSTFloat(settings, "iAutoSpell" + id + "Max"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|