Module: Lich::Gemstone::Experience
- Defined in:
- documented/gemstone/experience.rb
Overview
Provides methods to access experience-related data This module includes methods to retrieve various experience metrics.
Class Method Summary collapse
-
.axp ⇒ Integer
Retrieves the ascension experience.
-
.deaths_sting ⇒ Integer
Retrieves the deaths sting value.
-
.deeds ⇒ Integer
Retrieves the deeds value.
-
.exp ⇒ Integer
Retrieves the current experience.
-
.fame ⇒ Integer
Retrieves the fame value.
-
.fxp_current ⇒ Integer
Retrieves the current field experience.
-
.fxp_max ⇒ Integer
Retrieves the maximum field experience.
-
.lte ⇒ Integer
Retrieves the long-term experience.
-
.percent_axp ⇒ Float
Calculates the percentage of ascension experience.
-
.percent_exp ⇒ Float
Calculates the percentage of current experience.
-
.percent_fxp ⇒ Float
Calculates the percentage of current field experience.
-
.txp ⇒ Integer
Retrieves the total experience.
Class Method Details
.axp ⇒ Integer
Retrieves the ascension experience
50 51 52 |
# File 'documented/gemstone/experience.rb', line 50 def self.axp Infomon.get("experience.ascension_experience") end |
.deaths_sting ⇒ Integer
Retrieves the deaths sting value
106 107 108 |
# File 'documented/gemstone/experience.rb', line 106 def self.deaths_sting Infomon.get("experience.deaths_sting") end |
.deeds ⇒ Integer
Retrieves the deeds value
98 99 100 |
# File 'documented/gemstone/experience.rb', line 98 def self.deeds Infomon.get("experience.deeds") end |
.exp ⇒ Integer
Retrieves the current experience
42 43 44 |
# File 'documented/gemstone/experience.rb', line 42 def self.exp Stats.exp end |
.fame ⇒ Integer
Retrieves the fame value
18 19 20 |
# File 'documented/gemstone/experience.rb', line 18 def self.fame Infomon.get("experience.fame") end |
.fxp_current ⇒ Integer
Retrieves the current field experience
26 27 28 |
# File 'documented/gemstone/experience.rb', line 26 def self.fxp_current Infomon.get("experience.field_experience_current") end |
.fxp_max ⇒ Integer
Retrieves the maximum field experience
34 35 36 |
# File 'documented/gemstone/experience.rb', line 34 def self.fxp_max Infomon.get("experience.field_experience_max") end |
.lte ⇒ Integer
Retrieves the long-term experience
90 91 92 |
# File 'documented/gemstone/experience.rb', line 90 def self.lte Infomon.get("experience.long_term_experience") end |
.percent_axp ⇒ Float
Calculates the percentage of ascension experience
74 75 76 |
# File 'documented/gemstone/experience.rb', line 74 def self.percent_axp (axp.to_f / txp.to_f) * 100 end |
.percent_exp ⇒ Float
Calculates the percentage of current experience
82 83 84 |
# File 'documented/gemstone/experience.rb', line 82 def self.percent_exp (exp.to_f / txp.to_f) * 100 end |
.percent_fxp ⇒ Float
Calculates the percentage of current field experience
66 67 68 |
# File 'documented/gemstone/experience.rb', line 66 def self.percent_fxp (fxp_current.to_f / fxp_max.to_f) * 100 end |