Skip to content

Commit

Permalink
Merge pull request #515 from elanthia-online/experience-percents
Browse files Browse the repository at this point in the history
[experience.rb] percent experience options
  • Loading branch information
mrhoribu committed Dec 19, 2023
2 parents e878acf + 40d6b01 commit 95774dd
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 95774dd

Please sign in to comment.