Example #1
0
 public void DeductSkillLevelCost(SpellDescription xDesc)
 {
     int iLevel = (int)this.GetSkillLevel(xDesc.enSpellType);
     int iTier = 0;
     int i = 0;
     while (i < xDesc.abyTierSpans.Length && iLevel >= (int)xDesc.abyTierSpans[i])
     {
         iTier++;
         i++;
     }
     if (xDesc.bEquippable)
     {
         if (iTier == 0)
         {
             this.iSkillPointsSilver -= 1;
             return;
         }
         if (iTier == 1)
         {
             this.iSkillPointsGold -= 1;
             return;
         }
     }
     else
     {
         this.iTalentPoints -= 1;
     }
 }
Example #2
0
 public bool CanLevelSkill(SpellDescription xDesc)
 {
     int iLevel = (int)this.GetSkillLevel(xDesc.enSpellType);
     if (!xDesc.bEquippable)
     {
         return this.iTalentPoints > 0;
     }
     int iTier = 0;
     int i = 0;
     while (i < xDesc.abyTierSpans.Length && iLevel >= (int)xDesc.abyTierSpans[i])
     {
         iTier++;
         i++;
     }
     if (iTier == 0)
     {
         return this.iSkillPointsSilver > 0;
     }
     return iTier == 1 && this.iSkillPointsGold > 0;
 }
Example #3
0
 public TierDescription(SpellDescription.TierDescription.Icon enIcon, string sDescription)
 {
     this.sDescription = sDescription;
     this.enIcon = enIcon;
 }