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
|
|
@ -185,7 +185,7 @@ namespace Server.Engines.Events
|
|||
return;
|
||||
}
|
||||
|
||||
if (Utility.RandomDouble() > .10)
|
||||
if (Utility.RandomDouble() < 0.90)
|
||||
{
|
||||
begged.Say(
|
||||
Utility.Random(3) switch
|
||||
|
|
@ -196,7 +196,7 @@ namespace Server.Engines.Events
|
|||
}
|
||||
);
|
||||
|
||||
if (Utility.RandomDouble() <= .01 && from.Skills.Begging.Value >= 100)
|
||||
if (Utility.RandomDouble() < 0.01 && from.Skills.Begging.Value >= 100)
|
||||
{
|
||||
from.AddToBackpack(HolidaySettings.RandomGMBeggerItem);
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace Server.Items
|
|||
public HalloweenPumpkin()
|
||||
{
|
||||
Weight = Utility.RandomMinMax(3, 20);
|
||||
ItemID = Utility.RandomDouble() <= .02
|
||||
ItemID = Utility.RandomDouble() < 0.02
|
||||
? Utility.RandomList(0x4694, 0x4698)
|
||||
: Utility.RandomList(0xc6a, 0xc6b, 0xc6c);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue