#W# Fixed unlootable/unlockable lootchests.
This commit is contained in:
parent
a26dd24493
commit
4e25a9c612
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue