Exemple #1
0
        public static void AddMod(Mobile m, string name, ResistanceMod[] mods, TimeSpan duration)
        {
            string fullname = name + ":" + m.Serial.ToString();

            if (m_Table.ContainsKey(fullname))
            {
                ResistanceModTimer timer = m_Table[fullname];
                timer.Stop();
                m_Table.Remove(fullname);
            }

            ResistanceModTimer timertostart = new ResistanceModTimer(m, name, mods, duration);

            timertostart.Start();
            m_Table.Add(fullname, timertostart);
        }