mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Fix punishment for stealing 0 value items (Fixes #1435)
This commit is contained in:
parent
5488fe1ab3
commit
1bab74a98d
@ -929,7 +929,10 @@ namespace MWMechanics
|
||||
else if (type == OT_Murder)
|
||||
arg = store.find("iCrimeKilling")->getInt();
|
||||
else if (type == OT_Theft)
|
||||
{
|
||||
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}");
|
||||
ptr.getClass().getNpcStats(ptr).setBounty(ptr.getClass().getNpcStats(ptr).getBounty()
|
||||
|
Loading…
x
Reference in New Issue
Block a user