|
|
|
@ -23,10 +23,157 @@ namespace ESM
|
|
|
|
|
0x1188, 0x5048, 0x5048, 0x5048, 0x5048, 0x5048, 0x1048, 0x104c, 0x1048, 0x40, 0x11c8, 0x1048, 0x1048,
|
|
|
|
|
0x1048, 0x1048, 0x1048, 0x1048 };
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
|
{
|
|
|
|
|
const std::string_view MagicEffect::sIndexNames[MagicEffect::Length] = {
|
|
|
|
|
"WaterBreathing",
|
|
|
|
|
"SwiftSwim",
|
|
|
|
|
"WaterWalking",
|
|
|
|
|
"Shield",
|
|
|
|
|
"FireShield",
|
|
|
|
|
"LightningShield",
|
|
|
|
|
"FrostShield",
|
|
|
|
|
"Burden",
|
|
|
|
|
"Feather",
|
|
|
|
|
"Jump",
|
|
|
|
|
"Levitate",
|
|
|
|
|
"SlowFall",
|
|
|
|
|
"Lock",
|
|
|
|
|
"Open",
|
|
|
|
|
"FireDamage",
|
|
|
|
|
"ShockDamage",
|
|
|
|
|
"FrostDamage",
|
|
|
|
|
"DrainAttribute",
|
|
|
|
|
"DrainHealth",
|
|
|
|
|
"DrainMagicka",
|
|
|
|
|
"DrainFatigue",
|
|
|
|
|
"DrainSkill",
|
|
|
|
|
"DamageAttribute",
|
|
|
|
|
"DamageHealth",
|
|
|
|
|
"DamageMagicka",
|
|
|
|
|
"DamageFatigue",
|
|
|
|
|
"DamageSkill",
|
|
|
|
|
"Poison",
|
|
|
|
|
"WeaknessToFire",
|
|
|
|
|
"WeaknessToFrost",
|
|
|
|
|
"WeaknessToShock",
|
|
|
|
|
"WeaknessToMagicka",
|
|
|
|
|
"WeaknessToCommonDisease",
|
|
|
|
|
"WeaknessToBlightDisease",
|
|
|
|
|
"WeaknessToCorprusDisease",
|
|
|
|
|
"WeaknessToPoison",
|
|
|
|
|
"WeaknessToNormalWeapons",
|
|
|
|
|
"DisintegrateWeapon",
|
|
|
|
|
"DisintegrateArmor",
|
|
|
|
|
"Invisibility",
|
|
|
|
|
"Chameleon",
|
|
|
|
|
"Light",
|
|
|
|
|
"Sanctuary",
|
|
|
|
|
"NightEye",
|
|
|
|
|
"Charm",
|
|
|
|
|
"Paralyze",
|
|
|
|
|
"Silence",
|
|
|
|
|
"Blind",
|
|
|
|
|
"Sound",
|
|
|
|
|
"CalmHumanoid",
|
|
|
|
|
"CalmCreature",
|
|
|
|
|
"FrenzyHumanoid",
|
|
|
|
|
"FrenzyCreature",
|
|
|
|
|
"DemoralizeHumanoid",
|
|
|
|
|
"DemoralizeCreature",
|
|
|
|
|
"RallyHumanoid",
|
|
|
|
|
"RallyCreature",
|
|
|
|
|
"Dispel",
|
|
|
|
|
"Soultrap",
|
|
|
|
|
"Telekinesis",
|
|
|
|
|
"Mark",
|
|
|
|
|
"Recall",
|
|
|
|
|
"DivineIntervention",
|
|
|
|
|
"AlmsiviIntervention",
|
|
|
|
|
"DetectAnimal",
|
|
|
|
|
"DetectEnchantment",
|
|
|
|
|
"DetectKey",
|
|
|
|
|
"SpellAbsorption",
|
|
|
|
|
"Reflect",
|
|
|
|
|
"CureCommonDisease",
|
|
|
|
|
"CureBlightDisease",
|
|
|
|
|
"CureCorprusDisease",
|
|
|
|
|
"CurePoison",
|
|
|
|
|
"CureParalyzation",
|
|
|
|
|
"RestoreAttribute",
|
|
|
|
|
"RestoreHealth",
|
|
|
|
|
"RestoreMagicka",
|
|
|
|
|
"RestoreFatigue",
|
|
|
|
|
"RestoreSkill",
|
|
|
|
|
"FortifyAttribute",
|
|
|
|
|
"FortifyHealth",
|
|
|
|
|
"FortifyMagicka",
|
|
|
|
|
"FortifyFatigue",
|
|
|
|
|
"FortifySkill",
|
|
|
|
|
"FortifyMaximumMagicka",
|
|
|
|
|
"AbsorbAttribute",
|
|
|
|
|
"AbsorbHealth",
|
|
|
|
|
"AbsorbMagicka",
|
|
|
|
|
"AbsorbFatigue",
|
|
|
|
|
"AbsorbSkill",
|
|
|
|
|
"ResistFire",
|
|
|
|
|
"ResistFrost",
|
|
|
|
|
"ResistShock",
|
|
|
|
|
"ResistMagicka",
|
|
|
|
|
"ResistCommonDisease",
|
|
|
|
|
"ResistBlightDisease",
|
|
|
|
|
"ResistCorprusDisease",
|
|
|
|
|
"ResistPoison",
|
|
|
|
|
"ResistNormalWeapons",
|
|
|
|
|
"ResistParalysis",
|
|
|
|
|
"RemoveCurse",
|
|
|
|
|
"TurnUndead",
|
|
|
|
|
"SummonScamp",
|
|
|
|
|
"SummonClannfear",
|
|
|
|
|
"SummonDaedroth",
|
|
|
|
|
"SummonDremora",
|
|
|
|
|
"SummonAncestralGhost",
|
|
|
|
|
"SummonSkeletalMinion",
|
|
|
|
|
"SummonBonewalker",
|
|
|
|
|
"SummonGreaterBonewalker",
|
|
|
|
|
"SummonBonelord",
|
|
|
|
|
"SummonWingedTwilight",
|
|
|
|
|
"SummonHunger",
|
|
|
|
|
"SummonGoldenSaint",
|
|
|
|
|
"SummonFlameAtronach",
|
|
|
|
|
"SummonFrostAtronach",
|
|
|
|
|
"SummonStormAtronach",
|
|
|
|
|
"FortifyAttack",
|
|
|
|
|
"CommandCreature",
|
|
|
|
|
"CommandHumanoid",
|
|
|
|
|
"BoundDagger",
|
|
|
|
|
"BoundLongsword",
|
|
|
|
|
"BoundMace",
|
|
|
|
|
"BoundBattleAxe",
|
|
|
|
|
"BoundSpear",
|
|
|
|
|
"BoundLongbow",
|
|
|
|
|
"ExtraSpell",
|
|
|
|
|
"BoundCuirass",
|
|
|
|
|
"BoundHelm",
|
|
|
|
|
"BoundBoots",
|
|
|
|
|
"BoundShield",
|
|
|
|
|
"BoundGloves",
|
|
|
|
|
"Corprus",
|
|
|
|
|
"Vampirism",
|
|
|
|
|
"SummonCenturionSphere",
|
|
|
|
|
"SunDamage",
|
|
|
|
|
"StuntedMagicka",
|
|
|
|
|
|
|
|
|
|
// Tribunal only
|
|
|
|
|
"SummonFabricant",
|
|
|
|
|
|
|
|
|
|
// Bloodmoon only
|
|
|
|
|
"SummonWolf",
|
|
|
|
|
"SummonBear",
|
|
|
|
|
"SummonBonewolf",
|
|
|
|
|
"SummonCreature04",
|
|
|
|
|
"SummonCreature05",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void MagicEffect::load(ESMReader& esm, bool& isDeleted)
|
|
|
|
|
{
|
|
|
|
|
isDeleted = false; // MagicEffect record can't be deleted now (may be changed in the future)
|
|
|
|
|