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
|
|
@ -61,7 +61,7 @@ namespace Server.Engines.MLQuests.Items
|
|||
{
|
||||
AddBaseLoot(Loot.MLArmorTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomDouble() < 0.50)
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefTailoring.CraftSystem);
|
||||
}
|
||||
|
|
@ -94,7 +94,7 @@ namespace Server.Engines.MLQuests.Items
|
|||
{
|
||||
AddBaseLoot(Loot.MLWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomDouble() < 0.50)
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefBlacksmithy.CraftSystem);
|
||||
}
|
||||
|
|
@ -127,7 +127,7 @@ namespace Server.Engines.MLQuests.Items
|
|||
{
|
||||
AddBaseLoot(Loot.MLArmorTypes, Loot.MLWeaponTypes, Loot.MLRangedWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomDouble() < 0.50)
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
switch (Utility.Random(6))
|
||||
{
|
||||
|
|
@ -173,7 +173,7 @@ namespace Server.Engines.MLQuests.Items
|
|||
{
|
||||
AddBaseLoot(Loot.MLRangedWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomDouble() < 0.50)
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefBowFletching.CraftSystem);
|
||||
}
|
||||
|
|
@ -208,7 +208,7 @@ namespace Server.Engines.MLQuests.Items
|
|||
{
|
||||
AddBaseLoot(Loot.MLArmorTypes, Loot.MLWeaponTypes, Loot.MLRangedWeaponTypes, Loot.JewelryTypes, m_TalismanType);
|
||||
|
||||
if (Utility.RandomDouble() < 0.50)
|
||||
if (Utility.RandomBool())
|
||||
{
|
||||
AddRecipe(DefCarpentry.CraftSystem);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue