mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 03:19:40 +00:00
Revert "Enchanting: fix inverted self-enchant success chance"
It wasn't inverted to begin with. The author of this commit is an idiot.
This commit is contained in:
parent
157438460b
commit
ef1b0a191b
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ namespace MWMechanics
|
|||
|
||||
if(mSelfEnchanting)
|
||||
{
|
||||
if(std::rand()/static_cast<double> (RAND_MAX)*100 < getEnchantChance())
|
||||
if(getEnchantChance()<std::rand()/static_cast<double> (RAND_MAX)*100)
|
||||
return false;
|
||||
|
||||
mEnchanter.getClass().skillUsageSucceeded (mEnchanter, ESM::Skill::Enchant, 2);
|
||||
|
|
Loading…
Reference in a new issue