lib/hive_stalker/player_data.rb
# Skill tier assignment based on skill estimate and level.
Skill tier assignment based on skill estimate and level.
Skill tier assignment based on skill estimate and level .
def skill_tier(skill_estimate, level)
      if level < 20
        SkillTier.new('Rookie', 0)
      elsif skill_estimate < 301
        SkillTier.new('Recruit', 1)
      elsif skill_estimate < 751
        SkillTier.new('Frontiersman', 2)
      elsif skill_estimate < 1401
        SkillTier.new('Squad Leader', 3)
      elsif skill_estimate < 2101
        SkillTier.new('Veteran', 4)
      elsif skill_estimate < 2901
        SkillTier.new('Commandant', 5)
      elsif skill_estimate < 4101
        SkillTier.new('Special Ops', 6)
      else
        SkillTier.new('Sanji Survivor', 7)
      end
    end
def skill_tier ( skill_estimate , level ) if level < 20 SkillTier . new ( 'Rookie' , 0 ) elsif skill_estimate < 301 SkillTier . new ( 'Recruit' , 1 ) elsif skill_estimate < 751 SkillTier . new ( 'Frontiersman' , 2 ) elsif skill_estimate < 1401 SkillTier . new ( 'Squad Leader' , 3 ) elsif skill_estimate < 2101 SkillTier . new ( 'Veteran' , 4 ) elsif skill_estimate < 2901 SkillTier . new ( 'Commandant' , 5 ) elsif skill_estimate < 4101 SkillTier . new ( 'Special Ops' , 6 ) else SkillTier . new ( 'Sanji Survivor' , 7 ) end end
Skill tier assignment based on skill estimate and level.
Skill tier assignment based on skill estimate and level .
skill_estimate
level