1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +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);