Module: Lich::Gemstone::Experience
- Defined in:
- lib/gemstone/experience.rb
Class Method Summary collapse
-
.axp ⇒ Integer
Retrieves the current ascension experience value.
-
.deaths_sting ⇒ Integer
Retrieves the deaths sting value.
-
.deeds ⇒ Integer
Retrieves the deeds value.
-
.exp ⇒ Integer
Retrieves the current experience value.
-
.fame ⇒ Integer
Retrieves the current fame value.
-
.fxp_current ⇒ Integer
Retrieves the current field experience value.
-
.fxp_max ⇒ Integer
Retrieves the maximum field experience value.
-
.lte ⇒ Integer
Retrieves the long-term experience value.
-
.percent_axp ⇒ Float
Calculates the percentage of ascension experience relative to total experience.
-
.percent_exp ⇒ Float
Calculates the percentage of current experience relative to total experience.
-
.percent_fxp ⇒ Float
Calculates the percentage of current field experience relative to the maximum field experience.
-
.txp ⇒ Integer
Retrieves the total experience value.
Class Method Details
.axp ⇒ Integer
Retrieves the current ascension experience value.
52 53 54 |
# File 'lib/gemstone/experience.rb', line 52 def self.axp Infomon.get("experience.ascension_experience") end |
.deaths_sting ⇒ Integer
Retrieves the deaths sting value.
122 123 124 |
# File 'lib/gemstone/experience.rb', line 122 def self.deaths_sting Infomon.get("experience.deaths_sting") end |
.deeds ⇒ Integer
Retrieves the deeds value.
112 113 114 |
# File 'lib/gemstone/experience.rb', line 112 def self.deeds Infomon.get("experience.deeds") end |
.exp ⇒ Integer
Retrieves the current experience value.
42 43 44 |
# File 'lib/gemstone/experience.rb', line 42 def self.exp Stats.exp end |
.fame ⇒ Integer
Retrieves the current fame value.
12 13 14 |
# File 'lib/gemstone/experience.rb', line 12 def self.fame Infomon.get("experience.fame") end |
.fxp_current ⇒ Integer
Retrieves the current field experience value.
22 23 24 |
# File 'lib/gemstone/experience.rb', line 22 def self.fxp_current Infomon.get("experience.field_experience_current") end |
.fxp_max ⇒ Integer
Retrieves the maximum field experience value.
32 33 34 |
# File 'lib/gemstone/experience.rb', line 32 def self.fxp_max Infomon.get("experience.field_experience_max") end |
.lte ⇒ Integer
Retrieves the long-term experience value.
102 103 104 |
# File 'lib/gemstone/experience.rb', line 102 def self.lte Infomon.get("experience.long_term_experience") end |
.percent_axp ⇒ Float
Calculates the percentage of ascension experience relative to total experience.
82 83 84 |
# File 'lib/gemstone/experience.rb', line 82 def self.percent_axp (axp.to_f / txp.to_f) * 100 end |
.percent_exp ⇒ Float
Calculates the percentage of current experience relative to total experience.
92 93 94 |
# File 'lib/gemstone/experience.rb', line 92 def self.percent_exp (exp.to_f / txp.to_f) * 100 end |
.percent_fxp ⇒ Float
Calculates the percentage of current field experience relative to the maximum field experience.
72 73 74 |
# File 'lib/gemstone/experience.rb', line 72 def self.percent_fxp (fxp_current.to_f / fxp_max.to_f) * 100 end |