Пример #1
0
 public static bool AwardExp(TeiravonMobile m, int offset, bool epic)
 {
     if (!epic && m.PlayerLevel >= 20)
     {
         return(false);
     }
     else
     {
         m.PlayerExp += offset;
         LevelingFunctions.CheckLevelUp(m);
         if (epic)
         {
             LevelingFunctions.CheckEpicLevelUp(m);
         }
         return(true);
     }
 }
Пример #2
0
        public void RestoreTargetInfo(Mobile target)
        {
            TeiravonMobile m_Restore = target as TeiravonMobile;

            m_Restore.Title     = m_Title;
            m_Restore.PlayerExp = Exp;

            LevelingFunctions.CheckLevelUp(m_Restore);

            m_Restore.RawStr  = Str;
            m_Restore.MaxHits = Hits;
            m_Restore.RawDex  = Dex;
            m_Restore.MaxStam = Stam;
            m_Restore.RawInt  = Int;
            m_Restore.MaxMana = Mana;

            for (int i = 0; i < 51; i++)
            {
                m_Restore.Skills[i].Base = m_Skills[i];
            }
        }