Class: Partyhat::Stat

Inherits:
Object
  • Object
show all
Defined in:
lib/partyhat/stat.rb

Direct Known Subclasses

Activity, Skill

Constant Summary collapse

SkillsList =

List of skills that appear in the highscores

[
  :attack,
  :defence,
  :strength,
  :constitution,
  :ranged,
  :prayer,
  :magic,
  :cooking,
  :woodcutting,
  :fletching,
  :fishing,
  :firemaking,
  :crafting,
  :smithing,
  :mining,
  :herblore,
  :agility,
  :thieving,
  :slayer,
  :farming,
  :runecrafting,
  :hunter,
  :construction,
  :summoning,
  :dungeoneering
]
ActivitiesList =

List of activities that appear in the highscores

[
  :duel_tournament,
  :bounty_hunters,
  :bounty_hunter_rogues,
  :fist_of_guthix,
  :mobilising_armies,
  :ba_attackers,
  :ba_defenders,
  :ba_collectors,
  :ba_healers,
  :castle_wars_games,
  :conquest,
  :dominion_tower
]
CombatSkillsList =

List of skills that count in your combat level

[
  :attack,
  :defence,
  :strength,
  :constitution,
  :ranged,
  :prayer,
  :magic,
  :summoning
]
List =

List of all stats that can belong to a player

[:overall] + SkillsList + ActivitiesList
HumanNames =

Human readable names for all skills and activities

{
  :overall              => 'Overall',
  :attack               => 'Attack',
  :defence              => 'Defence',
  :strength             => 'Strength',
  :constitution         => 'Constitution',
  :ranged               => 'Ranged',
  :prayer               => 'Prayer',
  :magic                => 'Magic',
  :cooking              => 'Cooking',
  :woodcutting          => 'Woodcutting',
  :fletching            => 'Fletching',
  :fishing              => 'Fishing',
  :firemaking           => 'Firemaking',
  :crafting             => 'Crafting',
  :smithing             => 'Smithing',
  :mining               => 'Mining',
  :herblore             => 'Herblore',
  :agility              => 'Agility',
  :thieving             => 'Thieving',
  :slayer               => 'Slayer',
  :farming              => 'Farming',
  :runecrafting         => 'Runecrafting',
  :hunter               => 'Hunter',
  :construction         => 'Construction',
  :summoning            => 'Summoning',
  :dungeoneering        => 'Dungeoneering',
  :duel_tournament      => 'Duel Tournament',
  :bounty_hunters       => 'Bounty Hunters',
  :bounty_hunter_rogues => 'Bounty Hunter Rogues',
  :fist_of_guthix       => 'Fist of Guthix',
  :mobilising_armies    => 'Mobilising Armies',
  :ba_attackers         => 'B.A Attackers',
  :ba_defenders         => 'B.A Defenders',
  :ba_collectors        => 'B.A Collectors',
  :ba_healers           => 'B.A Healers',
  :castle_wars_games    => 'Castle Wars Games',
  :conquest             => 'Conquest',
  :dominion_tower       => 'Dominion Tower'
}

Class Method Summary collapse

Class Method Details

.human_name_for(stat) ⇒ Object

Get the human readable name for a stat name

  • returns ‘Undefined’ if not found



108
109
110
# File 'lib/partyhat/stat.rb', line 108

def self.human_name_for stat
  HumanNames[stat] || 'Undefined'
end