1
0
Fork 1
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:
scrawl 2015-01-07 03:48:16 +01:00
parent 157438460b
commit ef1b0a191b

View file

@ -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);