forked from mirror/openmw-tes3mp
Fix punishment for stealing 0 value items (Fixes #1435)
This commit is contained in:
parent
5488fe1ab3
commit
1bab74a98d
1 changed files with 3 additions and 0 deletions
|
@ -929,7 +929,10 @@ namespace MWMechanics
|
||||||
else if (type == OT_Murder)
|
else if (type == OT_Murder)
|
||||||
arg = store.find("iCrimeKilling")->getInt();
|
arg = store.find("iCrimeKilling")->getInt();
|
||||||
else if (type == OT_Theft)
|
else if (type == OT_Theft)
|
||||||
|
{
|
||||||
arg *= store.find("fCrimeStealing")->getFloat();
|
arg *= store.find("fCrimeStealing")->getFloat();
|
||||||
|
arg = std::max(1, arg); // Minimum bounty of 1, in case items with zero value are stolen
|
||||||
|
}
|
||||||
|
|
||||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sCrimeMessage}");
|
MWBase::Environment::get().getWindowManager()->messageBox("#{sCrimeMessage}");
|
||||||
ptr.getClass().getNpcStats(ptr).setBounty(ptr.getClass().getNpcStats(ptr).getBounty()
|
ptr.getClass().getNpcStats(ptr).setBounty(ptr.getClass().getNpcStats(ptr).getBounty()
|
||||||
|
|
Loading…
Reference in a new issue