Module: Lich::DragonRealms::DRSpells
- Defined in:
- documented/dragonrealms/drinfomon/drspells.rb
Overview
Module for managing spells in DragonRealms.
This module contains methods to access and manipulate known spells and features.
Constant Summary collapse
- @@known_spells =
{}
- @@known_feats =
{}
- @@spellbook_format =
'column-formatted' or 'non-column'
nil- @@grabbing_known_spells =
false- @@grabbing_known_barbarian_abilities =
false- @@grabbing_known_khri =
false
Class Method Summary collapse
-
.active_spells ⇒ Array<String>
Retrieves the currently active spells.
-
.check_known_barbarian_abilities ⇒ Boolean
private
Checks if known barbarian abilities are being grabbed.
- .check_known_barbarian_abilities=(val) ⇒ Object
-
.grabbing_known_khri ⇒ Boolean
private
Checks if known khri are being grabbed.
- .grabbing_known_khri=(val) ⇒ Object
- .grabbing_known_spells ⇒ Object
- .grabbing_known_spells=(val) ⇒ Object
-
.known_feats ⇒ Hash
Returns a hash of known feats.
-
.known_spells ⇒ Hash
Returns a hash of known spells.
-
.slivers ⇒ Array<String>
Retrieves the slivers of currently active spells.
-
.spellbook_format ⇒ String?
Retrieves the current spellbook format.
- .spellbook_format=(val) ⇒ Object
-
.stellar_percentage ⇒ Integer
Retrieves the stellar percentage of active spells.
Class Method Details
.active_spells ⇒ Array<String>
Retrieves the currently active spells.
21 22 23 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 21 def self.active_spells XMLData.dr_active_spells end |
.check_known_barbarian_abilities ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Checks if known barbarian abilities are being grabbed.
60 61 62 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 60 def self. @@grabbing_known_barbarian_abilities end |
.check_known_barbarian_abilities=(val) ⇒ Object
64 65 66 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 64 def self.(val) @@grabbing_known_barbarian_abilities = val end |
.grabbing_known_khri ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Checks if known khri are being grabbed.
71 72 73 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 71 def self.grabbing_known_khri @@grabbing_known_khri end |
.grabbing_known_khri=(val) ⇒ Object
75 76 77 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 75 def self.grabbing_known_khri=(val) @@grabbing_known_khri = val end |
.grabbing_known_spells ⇒ Object
49 50 51 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 49 def self.grabbing_known_spells @@grabbing_known_spells end |
.grabbing_known_spells=(val) ⇒ Object
53 54 55 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 53 def self.grabbing_known_spells=(val) @@grabbing_known_spells = val end |
.known_feats ⇒ Hash
Returns a hash of known feats.
33 34 35 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 33 def self.known_feats @@known_feats end |
.known_spells ⇒ Hash
Returns a hash of known spells.
27 28 29 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 27 def self.known_spells @@known_spells end |
.slivers ⇒ Array<String>
Retrieves the slivers of currently active spells.
39 40 41 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 39 def self.slivers XMLData.dr_active_spells_slivers end |
.spellbook_format ⇒ String?
Retrieves the current spellbook format.
81 82 83 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 81 def self.spellbook_format @@spellbook_format end |
.spellbook_format=(val) ⇒ Object
85 86 87 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 85 def self.spellbook_format=(val) @@spellbook_format = val end |
.stellar_percentage ⇒ Integer
Retrieves the stellar percentage of active spells.
45 46 47 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 45 def self.stellar_percentage XMLData.dr_active_spells_stellar_percentage end |