Module: Lich::DragonRealms::DRSpells
- Defined in:
- documented/dragonrealms/drinfomon/drspells.rb
Overview
Provides functionality related to spells in the DragonRealms game. This module manages known spells, feats, and spellbook formats.
Constant Summary collapse
- @@known_spells =
A hash storing known spells.
{}
- @@known_feats =
A hash storing known feats.
{}
- @@spellbook_format =
The format of the spellbook, can be ‘column-formatted’ or ‘non-column’.
nil- @@grabbing_known_spells =
Indicates if the module is currently grabbing known spells.
false- @@grabbing_known_barbarian_abilities =
Indicates if the module is currently grabbing known barbarian abilities.
false- @@grabbing_known_khri =
Indicates if the module is currently grabbing known khri.
false
Class Method Summary collapse
-
.active_spells ⇒ Hash
Retrieves the currently active spells.
-
.check_known_barbarian_abilities ⇒ Boolean
Checks if the module is currently grabbing known barbarian abilities.
-
.check_known_barbarian_abilities=(val) ⇒ Boolean
Sets the state of grabbing known barbarian abilities.
-
.grabbing_known_khri ⇒ Boolean
Checks if the module is currently grabbing known khri.
-
.grabbing_known_khri=(val) ⇒ Boolean
Sets the state of grabbing known khri.
-
.grabbing_known_spells ⇒ Boolean
Checks if the module is currently grabbing known spells.
-
.grabbing_known_spells=(val) ⇒ Boolean
Sets the state of grabbing known spells.
-
.known_feats ⇒ Hash
Returns the known feats.
-
.known_spells ⇒ Hash
Returns the known spells.
-
.slivers ⇒ Array
Retrieves the slivers of currently active spells.
-
.spellbook_format ⇒ String?
Retrieves the current spellbook format.
-
.spellbook_format=(val) ⇒ String
Sets the spellbook format.
-
.stellar_percentage ⇒ Float
Retrieves the stellar percentage of active spells.
Class Method Details
.active_spells ⇒ Hash
Retrieves the currently active spells.
24 25 26 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 24 def self.active_spells XMLData.dr_active_spells end |
.check_known_barbarian_abilities ⇒ Boolean
Checks if the module is currently grabbing known barbarian abilities.
67 68 69 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 67 def self. @@grabbing_known_barbarian_abilities end |
.check_known_barbarian_abilities=(val) ⇒ Boolean
Sets the state of grabbing known barbarian abilities.
74 75 76 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 74 def self.(val) @@grabbing_known_barbarian_abilities = val end |
.grabbing_known_khri ⇒ Boolean
Checks if the module is currently grabbing known khri.
80 81 82 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 80 def self.grabbing_known_khri @@grabbing_known_khri end |
.grabbing_known_khri=(val) ⇒ Boolean
Sets the state of grabbing known khri.
87 88 89 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 87 def self.grabbing_known_khri=(val) @@grabbing_known_khri = val end |
.grabbing_known_spells ⇒ Boolean
Checks if the module is currently grabbing known spells.
54 55 56 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 54 def self.grabbing_known_spells @@grabbing_known_spells end |
.grabbing_known_spells=(val) ⇒ Boolean
Sets the state of grabbing known spells.
61 62 63 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 61 def self.grabbing_known_spells=(val) @@grabbing_known_spells = val end |
.known_feats ⇒ Hash
Returns the known feats.
36 37 38 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 36 def self.known_feats @@known_feats end |
.known_spells ⇒ Hash
Returns the known spells.
30 31 32 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 30 def self.known_spells @@known_spells end |
.slivers ⇒ Array
Retrieves the slivers of currently active spells.
42 43 44 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 42 def self.slivers XMLData.dr_active_spells_slivers end |
.spellbook_format ⇒ String?
Retrieves the current spellbook format.
93 94 95 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 93 def self.spellbook_format @@spellbook_format end |
.spellbook_format=(val) ⇒ String
Sets the spellbook format.
100 101 102 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 100 def self.spellbook_format=(val) @@spellbook_format = val end |
.stellar_percentage ⇒ Float
Retrieves the stellar percentage of active spells.
48 49 50 |
# File 'documented/dragonrealms/drinfomon/drspells.rb', line 48 def self.stellar_percentage XMLData.dr_active_spells_stellar_percentage end |