mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
Don't mark gold as stolen, adjust stolen tooltip (Fixes #2465)
This commit is contained in:
parent
7bc0d41bb0
commit
5cb61fa01c
2 changed files with 7 additions and 2 deletions
|
@ -593,7 +593,10 @@ namespace MWGui
|
||||||
|
|
||||||
for (std::vector<std::pair<std::string, int> >::const_iterator it = itemOwners.begin(); it != itemOwners.end(); ++it)
|
for (std::vector<std::pair<std::string, int> >::const_iterator it = itemOwners.begin(); it != itemOwners.end(); ++it)
|
||||||
{
|
{
|
||||||
ret += std::string("\nStolen from ") + it->first;
|
if (it->second == std::numeric_limits<int>::max())
|
||||||
|
ret += std::string("\nStolen from ") + it->first; // for legacy (ESS) savegames
|
||||||
|
else
|
||||||
|
ret += std::string("\nStolen ") + MyGUI::utility::toString(it->second) + " from " + it->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret += getMiscString(cellref.getGlobalVariable(), "Global");
|
ret += getMiscString(cellref.getGlobalVariable(), "Global");
|
||||||
|
|
|
@ -1030,6 +1030,8 @@ namespace MWMechanics
|
||||||
owner.second = true;
|
owner.second = true;
|
||||||
}
|
}
|
||||||
Misc::StringUtils::toLower(owner.first);
|
Misc::StringUtils::toLower(owner.first);
|
||||||
|
|
||||||
|
if (!Misc::StringUtils::ciEqual(item.getCellRef().getRefId(), MWWorld::ContainerStore::sGoldId))
|
||||||
mStolenItems[Misc::StringUtils::lowerCase(item.getClass().getId(item))][owner] += count;
|
mStolenItems[Misc::StringUtils::lowerCase(item.getClass().getId(item))][owner] += count;
|
||||||
|
|
||||||
commitCrime(ptr, victim, OT_Theft, item.getClass().getValue(item) * count);
|
commitCrime(ptr, victim, OT_Theft, item.getClass().getValue(item) * count);
|
||||||
|
|
Loading…
Reference in a new issue