diff --git a/lib/experience.rb b/lib/experience.rb index 3293dce7..e24d9859 100644 --- a/lib/experience.rb +++ b/lib/experience.rb @@ -25,6 +25,18 @@ def self.txp Infomon.get("experience.total_experience") end + def self.percent_fxp + (fxp_current.to_f / fxp_max.to_f) * 100 + end + + def self.percent_axp + (axp.to_f / txp.to_f) * 100 + end + + def self.percent_exp + (exp.to_f / txp.to_f) * 100 + end + def self.lte Infomon.get("experience.long_term_experience") end