From 40d6b0133d14660d2362ffa216372dd4b25adc38 Mon Sep 17 00:00:00 2001 From: "Ryan P. McKinnon" <15917743+mrhoribu@users.noreply.github.com> Date: Fri, 1 Dec 2023 12:00:46 -0500 Subject: [PATCH] [experience.rb] percent experience options Add experience percent options (separating from PR #483 to allow for merging methods sooner --- lib/experience.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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