1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 21:49:55 +00:00

Merge pull request #1237 from MiroslavR/haggling_fix

Fix selling success chance (Fixes #3802)
This commit is contained in:
scrawl 2017-03-26 20:30:17 +02:00 committed by GitHub
commit 82e0bac297

View file

@ -37,7 +37,7 @@ namespace MWMechanics
int b = std::abs(playerOffer); int b = std::abs(playerOffer);
int d = (buying) int d = (buying)
? int(100 * (a - b) / a) ? int(100 * (a - b) / a)
: int(100 * (b - a) / a); : int(100 * (b - a) / b);
int clampedDisposition = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(merchant); int clampedDisposition = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(merchant);