This commit is contained in:
parent
7ad00dceac
commit
0b4c3b15d9
41 changed files with 976 additions and 144 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Engines.VeteranRewards
|
||||
{
|
||||
|
|
@ -7,22 +8,22 @@ namespace Server.Engines.VeteranRewards
|
|||
{
|
||||
private int m_Name;
|
||||
private string m_NameString;
|
||||
private ArrayList m_Entries;
|
||||
private List<RewardEntry> m_Entries;
|
||||
|
||||
public int Name{ get{ return m_Name; } }
|
||||
public string NameString{ get{ return m_NameString; } }
|
||||
public ArrayList Entries{ get{ return m_Entries; } }
|
||||
public List<RewardEntry> Entries { get { return m_Entries; } }
|
||||
|
||||
public RewardCategory( int name )
|
||||
{
|
||||
m_Name = name;
|
||||
m_Entries = new ArrayList();
|
||||
m_Entries = new List<RewardEntry>();
|
||||
}
|
||||
|
||||
public RewardCategory( string name )
|
||||
{
|
||||
m_NameString = name;
|
||||
m_Entries = new ArrayList();
|
||||
m_Entries = new List<RewardEntry>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Gumps;
|
||||
using Server.Network;
|
||||
|
|
@ -90,11 +91,11 @@ namespace Server.Engines.VeteranRewards
|
|||
{
|
||||
AddPage( 2 + index );
|
||||
|
||||
ArrayList entries = category.Entries;
|
||||
List<RewardEntry> entries = category.Entries;
|
||||
|
||||
for ( int i = 0; i < entries.Count; ++i )
|
||||
{
|
||||
RewardEntry entry = (RewardEntry)entries[i];
|
||||
RewardEntry entry = entries[i];
|
||||
|
||||
if ( !RewardSystem.HasAccess( m_From, entry ) )
|
||||
break;
|
||||
|
|
@ -146,7 +147,7 @@ namespace Server.Engines.VeteranRewards
|
|||
|
||||
if ( index >= 0 && index < category.Entries.Count )
|
||||
{
|
||||
RewardEntry entry = (RewardEntry)category.Entries[index];
|
||||
RewardEntry entry = category.Entries[index];
|
||||
|
||||
if ( !RewardSystem.HasAccess( m_From, entry ) )
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue