Skip to content

Commit

Permalink
[experience.rb] percent experience options
Browse files Browse the repository at this point in the history
Add experience percent options (separating from PR #483 to allow for merging methods sooner
  • Loading branch information
mrhoribu committed Dec 1, 2023
1 parent e878acf commit 40d6b01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/experience.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40d6b01

Please sign in to comment.