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
|
|
@ -2995,7 +2995,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
PackItem(new ParagonChest(Name, treasureLevel));
|
||||
}
|
||||
else if ((Map == Map.Felucca || Map == Map.Trammel) && Utility.RandomDouble() <= TreasureMap.LootChance)
|
||||
else if ((Map == Map.Felucca || Map == Map.Trammel) && Utility.RandomDouble() < TreasureMap.LootChance)
|
||||
{
|
||||
PackItem(new TreasureMap(treasureLevel, Map));
|
||||
}
|
||||
|
|
@ -4222,7 +4222,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
for (var i = 0; i < amount; ++i)
|
||||
{
|
||||
if (m_Loyalty < MaxLoyalty && Utility.RandomDouble() <= 0.5)
|
||||
if (m_Loyalty < MaxLoyalty && Utility.RandomBool())
|
||||
{
|
||||
m_Loyalty += 10;
|
||||
}
|
||||
|
|
@ -4799,7 +4799,7 @@ namespace Server.Mobiles
|
|||
|
||||
public void PackNecroScroll(int index)
|
||||
{
|
||||
if (!Core.AOS || Utility.RandomDouble() >= 0.05)
|
||||
if (!Core.AOS || Utility.RandomDouble() < 0.95)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue