fix: Fixes random bias & Adds back champion arties for UOML (#1235)
* Fixes RNG bias, we should never do `Utility.RandomDouble() <=` * Adds back champion artifacts behind UOML flag.
This commit is contained in:
parent
810061db8c
commit
8e01db8555
60 changed files with 289 additions and 335 deletions
|
|
@ -8,7 +8,7 @@ namespace Server.Mobiles
|
|||
Body = Utility.RandomList(0xE8, 0xE9);
|
||||
BaseSoundID = 0x64;
|
||||
|
||||
if (Utility.RandomDouble() <= 0.5)
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
Hue = 0x901;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ public class LesserHiryu : BaseMount
|
|||
{
|
||||
var tamingChance = base.GetControlChance(m, useBaseSkill);
|
||||
|
||||
if (tamingChance >= 0.95)
|
||||
if (tamingChance < 0.05)
|
||||
{
|
||||
return tamingChance;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ namespace Server.Mobiles
|
|||
public override string DefaultName => "a giant snake";
|
||||
|
||||
public override Poison PoisonImmune => Poison.Greater;
|
||||
public override Poison HitPoison => Utility.RandomDouble() <= 0.8 ? Poison.Greater : Poison.Deadly;
|
||||
public override Poison HitPoison => Utility.RandomDouble() < 0.8 ? Poison.Greater : Poison.Deadly;
|
||||
|
||||
public override bool DeathAdderCharmable => true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue