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:
commit
82e0bac297
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue