Module: Lich::Resources
- Defined in:
- documented/attributes/resources.rb
Overview
The Resources module handles resource-related information.
Class Method Summary collapse
-
.check(quiet = false) ⇒ Array<Object>
Checks the current resources and returns weekly, total, and suffused resources.
-
.covert_arts_charges ⇒ Object
Retrieves the covert arts charges.
-
.suffused ⇒ Object
Retrieves the suffused resources.
-
.total ⇒ Object
Retrieves the total resources.
-
.type ⇒ Object
Retrieves the type of resources.
-
.voln_favor ⇒ Object
Retrieves the Voln favor resources.
-
.weekly ⇒ Object
Retrieves the weekly resources.
Class Method Details
.check(quiet = false) ⇒ Array<Object>
Note:
This method issues a command and may take time to respond.
Checks the current resources and returns weekly, total, and suffused resources.
63 64 65 66 |
# File 'documented/attributes/resources.rb', line 63 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.
53 54 55 |
# File 'documented/attributes/resources.rb', line 53 def self.covert_arts_charges Lich::Gemstone::Infomon.get('resources.covert_arts_charges') end |
.suffused ⇒ Object
Retrieves the suffused resources.
29 30 31 |
# File 'documented/attributes/resources.rb', line 29 def self.suffused Lich::Gemstone::Infomon.get('resources.suffused') end |
.total ⇒ Object
Retrieves the total resources.
21 22 23 |
# File 'documented/attributes/resources.rb', line 21 def self.total Lich::Gemstone::Infomon.get('resources.total') end |
.type ⇒ Object
Retrieves the type of resources.
37 38 39 |
# File 'documented/attributes/resources.rb', line 37 def self.type Lich::Gemstone::Infomon.get('resources.type') end |