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
|
|
@ -191,18 +191,12 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
var luck = LootPack.GetLuckChanceForKiller(boss);
|
||||
int chance;
|
||||
|
||||
if (boss is DemonKnight)
|
||||
return boss switch
|
||||
{
|
||||
chance = 1500 + luck / 5;
|
||||
}
|
||||
else
|
||||
{
|
||||
chance = 750 + luck / 10;
|
||||
}
|
||||
|
||||
return chance;
|
||||
DemonKnight => 1500 + luck / 5,
|
||||
_ => 750 + luck / 10
|
||||
};
|
||||
}
|
||||
|
||||
public static bool CheckArtifactChance(Mobile boss) => GetArtifactChance(boss) > Utility.Random(100000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue