#W# Fixed unlootable/unlockable lootchests.

This commit is contained in:
WarrentyExpired 2026-08-03 16:46:55 -04:00
parent a26dd24493
commit 4e25a9c612

View file

@ -28,6 +28,8 @@ namespace Server.Items
[CommandProperty( AccessLevel.GameMaster )]
public DateTime ResetTime{ get{ return m_ResetTime; } }
public override bool IsDecoContainer { get { return false; } }
[Constructable]
public LootChest() : base( 0xE40 )
{
@ -138,6 +140,9 @@ namespace Server.Items
int i_Difficulty = ( m_Level * 18 ) + ( m_Category * 10 );
if ( i_Difficulty > 100 )
i_Difficulty = 100;
if ( Utility.RandomMinMax(1,100) < i_Difficulty && !NeverLock() )
{
Locked = true;