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
|
|
@ -361,7 +361,7 @@ public partial class TreasureMapChest : LockableContainer
|
|||
|
||||
public override void OnItemLifted(Mobile from, Item item)
|
||||
{
|
||||
var notYetLifted = _lifted?.Contains(item) != true;
|
||||
var notYetLifted = _lifted?.Contains(item) != true;
|
||||
from.RevealingAction();
|
||||
|
||||
if (notYetLifted)
|
||||
|
|
@ -369,7 +369,7 @@ public partial class TreasureMapChest : LockableContainer
|
|||
_lifted ??= new HashSet<Item>();
|
||||
_lifted.Add(item);
|
||||
|
||||
if (Utility.RandomDouble() <= 0.1) // 10% chance to spawn a new monster
|
||||
if (Utility.RandomDouble() < 0.1) // 10% chance to spawn a new monster
|
||||
{
|
||||
TreasureMap.Spawn(_level, GetWorldLocation(), Map, from, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue