Module: Lich::Gemstone::Status Private
- Defined in:
- documented/gemstone/infomon/status.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Provides methods to check various character status effects.
Class Method Summary collapse
-
.bound? ⇒ Boolean
private
Checks if the character is bound.
-
.calmed? ⇒ Boolean
private
Checks if the character is calmed.
-
.cutthroat? ⇒ Boolean
private
Checks if the character is in a cutthroat state.
-
.dead? ⇒ Boolean
private
Checks if the character is dead.
-
.muckled? ⇒ Boolean
private
Checks if the character is muckled (webbed, dead, stunned, bound, or sleeping).
-
.serialize ⇒ Array<Boolean>
private
Serializes the current status of the character.
-
.silenced? ⇒ Boolean
private
Checks if the character is silenced.
-
.sleeping? ⇒ Boolean
private
Checks if the character is sleeping.
-
.stunned? ⇒ Boolean
private
Checks if the character is stunned.
-
.thorned? ⇒ Boolean
private
Checks if the character is thorned.
-
.webbed? ⇒ Boolean
private
Checks if the character is webbed.
Class Method Details
.bound? ⇒ 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 the character is bound.
24 25 26 |
# File 'documented/gemstone/infomon/status.rb', line 24 def self.bound? Infomon.get_bool("status.bound") && (Effects::Debuffs.active?('Bind') || Effects::Debuffs.active?(214)) end |
.calmed? ⇒ 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 the character is calmed.
32 33 34 |
# File 'documented/gemstone/infomon/status.rb', line 32 def self.calmed? Infomon.get_bool("status.calmed") && (Effects::Debuffs.active?('Calm') || Effects::Debuffs.active?(201)) end |
.cutthroat? ⇒ 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 the character is in a cutthroat state.
40 41 42 |
# File 'documented/gemstone/infomon/status.rb', line 40 def self.cutthroat? Infomon.get_bool("status.cutthroat") && (Effects::Debuffs.active?('Major Bleed') || Effects::Debuffs.active?('Silenced')) end |
.dead? ⇒ 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 the character is dead.
72 73 74 |
# File 'documented/gemstone/infomon/status.rb', line 72 def self.dead? XMLData.indicator['IconDEAD'] == 'y' end |
.muckled? ⇒ 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 the character is muckled (webbed, dead, stunned, bound, or sleeping).
88 89 90 |
# File 'documented/gemstone/infomon/status.rb', line 88 def self.muckled? return Status.webbed? || Status.dead? || Status.stunned? || Status.bound? || Status.sleeping? end |
.serialize ⇒ Array<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.
Serializes the current status of the character.
96 97 98 |
# File 'documented/gemstone/infomon/status.rb', line 96 def self.serialize [self.bound?, self.calmed?, self.cutthroat?, self.silenced?, self.sleeping?] end |
.silenced? ⇒ 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 the character is silenced.
48 49 50 |
# File 'documented/gemstone/infomon/status.rb', line 48 def self.silenced? Infomon.get_bool("status.silenced") && Effects::Debuffs.active?('Silenced') end |
.sleeping? ⇒ 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 the character is sleeping.
56 57 58 |
# File 'documented/gemstone/infomon/status.rb', line 56 def self.sleeping? Infomon.get_bool("status.sleeping") && (Effects::Debuffs.active?('Sleep') || Effects::Debuffs.active?(501)) end |
.stunned? ⇒ 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 the character is stunned.
80 81 82 |
# File 'documented/gemstone/infomon/status.rb', line 80 def self.stunned? XMLData.indicator['IconSTUNNED'] == 'y' end |
.thorned? ⇒ 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 the character is thorned.
16 17 18 |
# File 'documented/gemstone/infomon/status.rb', line 16 def self.thorned? # added 2024-09-08 (Infomon.get_bool("status.thorned") && Effects::Debuffs.active?(/Wall of Thorns Poison [1-5]/)) end |
.webbed? ⇒ 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 the character is webbed.
64 65 66 |
# File 'documented/gemstone/infomon/status.rb', line 64 def self.webbed? XMLData.indicator['IconWEBBED'] == 'y' end |