Module: Lich::Resources
- Defined in:
- lib/attributes/resources.rb
Class Method Summary collapse
-
.check(quiet = false) ⇒ Array<String>
Checks the current resources and returns an array of resource information.
-
.covert_arts_charges ⇒ String
Retrieves the covert arts charges resource information.
-
.suffused ⇒ String
Retrieves the suffused resource information.
-
.total ⇒ String
Retrieves the total resource information.
-
.type ⇒ String
Retrieves the type of resources.
-
.voln_favor ⇒ String
Retrieves the Voln favor resource information.
-
.weekly ⇒ String
Retrieves the weekly resource information.
Class Method Details
.check(quiet = false) ⇒ Array<String>
Checks the current resources and returns an array of resource information.
64 65 66 67 |
# File 'lib/attributes/resources.rb', line 64 def self.check(quiet = false) Lich::Util.issue_command('resource', /^Health: \d+\/(?:<pushBold\/>)?\d+(?:<popBold\/>)?\s+Mana: \d+\/(?:<pushBold\/>)?\d+(?:<popBold\/>)?\s+Stamina: \d+\/(?:<pushBold\/>)?\d+(?:<popBold\/>)?\s+Spirit: \d+\/(?:<pushBold\/>)?\d+/, /<prompt/, silent: true, quiet: quiet) return [self.weekly, self.total, self.suffused] end |
.covert_arts_charges ⇒ String
Retrieves the covert arts charges resource information.
53 54 55 |
# File 'lib/attributes/resources.rb', line 53 def self.covert_arts_charges Lich::Gemstone::Infomon.get('resources.covert_arts_charges') end |
.suffused ⇒ String
Retrieves the suffused resource information.
26 27 28 |
# File 'lib/attributes/resources.rb', line 26 def self.suffused Lich::Gemstone::Infomon.get('resources.suffused') end |
.total ⇒ String
Retrieves the total resource information.
17 18 19 |
# File 'lib/attributes/resources.rb', line 17 def self.total Lich::Gemstone::Infomon.get('resources.total') end |
.type ⇒ String
Retrieves the type of resources.
35 36 37 |
# File 'lib/attributes/resources.rb', line 35 def self.type Lich::Gemstone::Infomon.get('resources.type') end |