コード例 #1
0
 static void ApplyResults(PlayerMobile from, ICollection <int> skillpicks)
 {
     if (skillpicks.Count < 4)
     {
         EnsureClosed(from);
     }
     else if (!from.HasStartingSkillBoost)
     {
         foreach (int SkillIndex in skillpicks)
         {
             if (from.Skills[SkillIndex - 1].Base < m_pointstoboost[SkillIndex - 1])
             {
                 from.Skills[SkillIndex - 1].Base = m_pointstoboost[SkillIndex - 1];
                 CharacterCreation.AddSkillItems(from.Skills[SkillIndex - 1].SkillName, from);
             }
         }
         from.HasStartingSkillBoost = true;
     }
     else
     {
         from.SendAsciiMessage("You have already selected your skill bonuses!");
     }
 }