This commit is contained in:
parent
e41632fe95
commit
9c5abc3b0d
48 changed files with 261 additions and 70 deletions
|
|
@ -371,7 +371,7 @@ namespace Server.Items
|
|||
m_PostedHue = m_Poster.Hue;
|
||||
m_Lines = lines;
|
||||
|
||||
ArrayList list = new ArrayList();
|
||||
List<BulletinEquip> list = new List<BulletinEquip>();
|
||||
|
||||
for ( int i = 0; i < poster.Items.Count; ++i )
|
||||
{
|
||||
|
|
@ -381,7 +381,7 @@ namespace Server.Items
|
|||
list.Add( new BulletinEquip( item.ItemID, item.Hue ) );
|
||||
}
|
||||
|
||||
m_PostedEquip = (BulletinEquip[])list.ToArray( typeof( BulletinEquip ) );
|
||||
m_PostedEquip = list.ToArray();
|
||||
}
|
||||
|
||||
public Mobile Poster{ get{ return m_Poster; } }
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ namespace Server.Items
|
|||
Mobile from = e.Mobile;
|
||||
string speech = e.Speech;
|
||||
|
||||
foreach ( ReceiverCrystal receiver in new ArrayList( Receivers ) )
|
||||
foreach ( ReceiverCrystal receiver in new List<ReceiverCrystal>( Receivers ) )
|
||||
{
|
||||
if ( receiver.Deleted )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public class EffectItem : Item
|
||||
{
|
||||
private static ArrayList m_Free = new ArrayList(); // List of available EffectItems
|
||||
private static List<EffectItem> m_Free = new List<EffectItem>(); // List of available EffectItems
|
||||
|
||||
public static readonly TimeSpan DefaultDuration = TimeSpan.FromSeconds( 5.0 );
|
||||
|
||||
|
|
@ -16,7 +17,7 @@ namespace Server.Items
|
|||
|
||||
for ( int i = m_Free.Count - 1; item == null && i >= 0; --i ) // We reuse new entries first so decay works better
|
||||
{
|
||||
EffectItem free = (EffectItem)m_Free[i];
|
||||
EffectItem free = m_Free[i];
|
||||
|
||||
m_Free.RemoveAt( i );
|
||||
|
||||
|
|
@ -75,9 +76,9 @@ namespace Server.Items
|
|||
|
||||
private class FreeTimer : Timer
|
||||
{
|
||||
private Item m_Item;
|
||||
private EffectItem m_Item;
|
||||
|
||||
public FreeTimer( Item item, TimeSpan delay ) : base( delay )
|
||||
public FreeTimer( EffectItem item, TimeSpan delay ) : base( delay )
|
||||
{
|
||||
m_Item = item;
|
||||
Priority = TimerPriority.OneSecond;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using Server;
|
|||
using Server.Mobiles;
|
||||
using Server.Spells;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
|
@ -115,7 +116,7 @@ namespace Server.Items
|
|||
if( !Drying && age > (m_Duration - age) )
|
||||
Drying = true;
|
||||
|
||||
ArrayList toDamage = new ArrayList();
|
||||
List<Mobile> toDamage = new List<Mobile>();
|
||||
|
||||
foreach( Mobile m in GetMobilesInRange( 0 ) )
|
||||
{
|
||||
|
|
@ -128,7 +129,7 @@ namespace Server.Items
|
|||
}
|
||||
|
||||
for( int i = 0; i < toDamage.Count; i++ )
|
||||
Damage( (Mobile)toDamage[i] );
|
||||
Damage( toDamage[i] );
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue