1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-24 00:39:49 +00:00

Fix typos in invalid spell effect warnings, clarify them

This commit is contained in:
Alexei Dobrohotov 2019-10-17 23:45:27 +03:00 committed by GitHub
parent e8037473ca
commit dec64a7fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ void ESMStore::validate()
const ESM::MagicEffect* mgef = mMagicEffects.search(iter->mEffectID); const ESM::MagicEffect* mgef = mMagicEffects.search(iter->mEffectID);
if (!mgef) if (!mgef)
{ {
Log(Debug::Verbose) << "Spell '" << spell.mId << "' has an an invalid effect (index " << iter->mEffectID << ") present, dropping it."; Log(Debug::Verbose) << "Spell '" << spell.mId << "' has an invalid effect (index " << iter->mEffectID << ") present. Dropping the effect.";
iter = spell.mEffects.mList.erase(iter); iter = spell.mEffects.mList.erase(iter);
changed = true; changed = true;
continue; continue;
@ -223,7 +223,7 @@ void ESMStore::validate()
{ {
iter->mAttribute = -1; iter->mAttribute = -1;
Log(Debug::Verbose) << ESM::MagicEffect::effectIdToString(iter->mEffectID) << Log(Debug::Verbose) << ESM::MagicEffect::effectIdToString(iter->mEffectID) <<
" effect of spell '" << spell.mId << "' has an attribute argument present, dropping it."; " effect of spell '" << spell.mId << "' has an attribute argument present. Dropping the argument.";
changed = true; changed = true;
} }
} }
@ -233,7 +233,7 @@ void ESMStore::validate()
{ {
iter->mSkill = -1; iter->mSkill = -1;
Log(Debug::Verbose) << ESM::MagicEffect::effectIdToString(iter->mEffectID) << Log(Debug::Verbose) << ESM::MagicEffect::effectIdToString(iter->mEffectID) <<
" effect of spell '" << spell.mId << "' has a skill argument present, dropping it."; " effect of spell '" << spell.mId << "' has a skill argument present. Dropping the argument.";
changed = true; changed = true;
} }
} }
@ -242,7 +242,7 @@ void ESMStore::validate()
iter->mSkill = -1; iter->mSkill = -1;
iter->mAttribute = -1; iter->mAttribute = -1;
Log(Debug::Verbose) << ESM::MagicEffect::effectIdToString(iter->mEffectID) << Log(Debug::Verbose) << ESM::MagicEffect::effectIdToString(iter->mEffectID) <<
" effect of spell '" << spell.mId << "' has argument(s) present, dropping them."; " effect of spell '" << spell.mId << "' has argument(s) present. Dropping the argument(s).";
changed = true; changed = true;
} }