mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 12:39:43 +00:00
Added check for non-positive quality of alchemical apparatus
This commit is contained in:
parent
1811f0a71b
commit
955fe3e8cf
1 changed files with 6 additions and 1 deletions
|
@ -29,7 +29,6 @@ void CSMTools::ReferenceableCheckStage::setSizeVariables()
|
|||
void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::string >& messages)
|
||||
{
|
||||
//Checks for books, than, when stage is above mBooksSize goes to other checks, with (stage - PrevSum) as stage.
|
||||
|
||||
if (stage < mBooksSize)
|
||||
{
|
||||
bookCheck(stage, mReferencables.getBooks(), messages);
|
||||
|
@ -222,4 +221,10 @@ void CSMTools::ReferenceableCheckStage::apparatusCheck(int stage, const CSMWorld
|
|||
{
|
||||
messages.push_back(id.toString() + "|" + Apparatus.mId + " has no icon");
|
||||
}
|
||||
|
||||
//checking for quality, 0 → apparatus is basicly useless, any negative → apparatus is harmfull instead of helpfull
|
||||
if (Apparatus.mData.mQuality <= 0)
|
||||
{
|
||||
messages.push_back(id.toString() + "|" + Apparatus.mId + " has non-positive quality");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue