Module: Lich::Resources
- Defined in:
- documented/attributes/resources.rb
Class Method Summary collapse
-
.check(quiet = false) ⇒ Array<String>
Checks the current resources and returns the weekly, total, and suffused resources.
-
.covert_arts_charges ⇒ String
Retrieves the covert arts charges resources.
-
.shadow_essence ⇒ String
Retrieves the shadow essence resources.
-
.suffused ⇒ String
Retrieves the suffused resources.
-
.total ⇒ String
Retrieves the total resources.
-
.type ⇒ String
Retrieves the type of resources.
-
.voln_favor ⇒ String
Retrieves the Voln favor resources.
-
.weekly ⇒ String
Retrieves the weekly resources.
Class Method Details
.check(quiet = false) ⇒ Array<String>
Checks the current resources and returns the weekly, total, and suffused resources.
56 57 58 59 |
# File 'documented/attributes/resources.rb', line 56 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 resources.
41 42 43 |
# File 'documented/attributes/resources.rb', line 41 def self.covert_arts_charges Lich::Gemstone::Infomon.get('resources.covert_arts_charges') end |
.shadow_essence ⇒ String
Retrieves the shadow essence resources.
48 49 50 |
# File 'documented/attributes/resources.rb', line 48 def self.shadow_essence Lich::Gemstone::Infomon.get('resources.shadow_essence') end |
.suffused ⇒ String
Retrieves the suffused resources.
20 21 22 |
# File 'documented/attributes/resources.rb', line 20 def self.suffused Lich::Gemstone::Infomon.get('resources.suffused') end |
.total ⇒ String
Retrieves the total resources.
13 14 15 |
# File 'documented/attributes/resources.rb', line 13 def self.total Lich::Gemstone::Infomon.get('resources.total') end |
.type ⇒ String
Retrieves the type of resources.
27 28 29 |
# File 'documented/attributes/resources.rb', line 27 def self.type Lich::Gemstone::Infomon.get('resources.type') end |