public static void AteCandy( Mobile from ) { CandyTimer timer; m_ToothPains.TryGetValue( from, out timer ); if ( timer == null ) { from.SendLocalizedMessage( 1077387 ); // You feel as if you could eat as much as you wanted! timer = new CandyTimer( from ); m_ToothPains.Add( from, timer ); timer.Start(); } else timer.ToothacheLevel++; }
public static void AteCandy(Mobile from) { CandyTimer timer; m_ToothPains.TryGetValue(from, out timer); if (timer == null) { from.SendLocalizedMessage(1077387); // You feel as if you could eat as much as you wanted! timer = new CandyTimer(from); m_ToothPains.Add(from, timer); timer.Start(); } else { timer.ToothacheLevel++; } }