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
|
|
@ -94,7 +94,7 @@ namespace Server.Items
|
|||
public override void OnHit(Mobile attacker, Mobile defender, double damageBonus = 1)
|
||||
{
|
||||
if (attacker.Player && !defender.Player && (defender.Body.IsAnimal || defender.Body.IsMonster) &&
|
||||
Utility.RandomDouble() <= 0.4)
|
||||
Utility.RandomDouble() < 0.4)
|
||||
{
|
||||
defender.AddToBackpack(Ammo);
|
||||
}
|
||||
|
|
@ -124,7 +124,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnMiss(Mobile attacker, Mobile defender)
|
||||
{
|
||||
if (attacker.Player && Utility.RandomDouble() <= 0.4)
|
||||
if (attacker.Player && Utility.RandomDouble() < 0.4)
|
||||
{
|
||||
if (Core.SE)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue