mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-06 03:19:43 +00:00
corrected chance
This commit is contained in:
parent
d76522e7a4
commit
8d7514e341
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ MWMechanics::Alchemy::Result MWMechanics::Alchemy::create (const std::string& na
|
|||
if (beginEffects()==endEffects())
|
||||
return Result_NoEffects;
|
||||
|
||||
if (getChance()<std::rand()/static_cast<double> (RAND_MAX))
|
||||
if (getChance()<std::rand()/static_cast<double> (RAND_MAX)*100)
|
||||
{
|
||||
removeIngredients();
|
||||
return Result_RandomFailure;
|
||||
|
|
Loading…
Reference in a new issue