From 1f3569aefc447de1b7c140883c8f3fdb675350f2 Mon Sep 17 00:00:00 2001 From: Mark Sturgill Date: Thu, 24 Oct 2013 15:22:56 -0700 Subject: [PATCH] generic explosion potion user list whitespace --- .../Potions/Explosion Potions/BaseExplosionPotion.cs | 9 ++++++--- .../Items/Special/Solen Items/PowderOfTranslocation.cs | 2 -- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs b/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs index d59c69ba7..5d3074cbf 100644 --- a/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs +++ b/Scripts/Items/Skill Items/Magical/Potions/Explosion Potions/BaseExplosionPotion.cs @@ -1,5 +1,6 @@ using System; using System.Collections; +using System.Collections.Generic; using Server; using Server.Network; using Server.Targeting; @@ -61,7 +62,9 @@ namespace Server.Items private Timer m_Timer; - private ArrayList m_Users; + public List Users { get { return m_Users; } } + + private List m_Users; public override void Drink( Mobile from ) { @@ -80,7 +83,7 @@ namespace Server.Items from.RevealingAction(); if ( m_Users == null ) - m_Users = new ArrayList(); + m_Users = new List(); if ( !m_Users.Contains( from ) ) m_Users.Add( from ); @@ -231,7 +234,7 @@ namespace Server.Items for ( int i = 0; m_Users != null && i < m_Users.Count; ++i ) { - Mobile m = (Mobile)m_Users[i]; + Mobile m = m_Users[i]; ThrowTarget targ = m.Target as ThrowTarget; if ( targ != null && targ.Potion == this ) diff --git a/Scripts/Items/Special/Solen Items/PowderOfTranslocation.cs b/Scripts/Items/Special/Solen Items/PowderOfTranslocation.cs index 965e99e26..453daff00 100644 --- a/Scripts/Items/Special/Solen Items/PowderOfTranslocation.cs +++ b/Scripts/Items/Special/Solen Items/PowderOfTranslocation.cs @@ -29,8 +29,6 @@ namespace Server.Items Amount = amount; } - - public override void OnDoubleClick( Mobile from ) { if ( from.InRange( this.GetWorldLocation(), 2 ) )