Module: Lich::Resources
- Defined in:
- documented/attributes/resources.rb
Overview
Provides methods to access various resource information.
Class Method Summary collapse
-
.check(quiet = false) ⇒ Array<Object>
Checks the current resource status.
-
.covert_arts_charges ⇒ Object
Retrieves the covert arts charges resource information.
-
.shadow_essence ⇒ Object
Retrieves the shadow essence resource information.
-
.suffused ⇒ Object
Retrieves the suffused resource information.
-
.total ⇒ Object
Retrieves the total resource information.
-
.type ⇒ Object
Retrieves the type of resources.
-
.voln_favor ⇒ Object
Retrieves the Voln favor resource information.
-
.weekly ⇒ Object
Retrieves the weekly resource information.
Class Method Details
.check(quiet = false) ⇒ Array<Object>
Checks the current resource status.
67 68 69 70 |
# File 'documented/attributes/resources.rb', line 67 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 ⇒ Object
Retrieves the covert arts charges resource information.
50 51 52 |
# File 'documented/attributes/resources.rb', line 50 def self.covert_arts_charges Lich::Gemstone::Infomon.get('resources.covert_arts_charges') end |
.shadow_essence ⇒ Object
Retrieves the shadow essence resource information.
58 59 60 |
# File 'documented/attributes/resources.rb', line 58 def self.shadow_essence Lich::Gemstone::Infomon.get('resources.shadow_essence') end |
.suffused ⇒ Object
Retrieves the suffused resource information.
26 27 28 |
# File 'documented/attributes/resources.rb', line 26 def self.suffused Lich::Gemstone::Infomon.get('resources.suffused') end |
.total ⇒ Object
Retrieves the total resource information.
18 19 20 |
# File 'documented/attributes/resources.rb', line 18 def self.total Lich::Gemstone::Infomon.get('resources.total') end |
.type ⇒ Object
Retrieves the type of resources.
34 35 36 |
# File 'documented/attributes/resources.rb', line 34 def self.type Lich::Gemstone::Infomon.get('resources.type') end |