Class: Wowr::Classes::Spirit
Instance Attribute Summary collapse
-
#health_regen ⇒ Object
readonly
Returns the value of attribute health_regen.
-
#mana_regen ⇒ Object
readonly
Returns the value of attribute mana_regen.
Attributes inherited from BaseStat
Instance Method Summary collapse
-
#initialize(elem) ⇒ Spirit
constructor
A new instance of Spirit.
Constructor Details
#initialize(elem) ⇒ Spirit
Returns a new instance of Spirit.
374 375 376 377 378 379 |
# File 'lib/wowr/character.rb', line 374 def initialize(elem) @base = elem[:base].to_i @effective = elem[:effective].to_i @health_regen = elem[:healthRegen].to_i @mana_regen = elem[:manaRegen].to_i end |
Instance Attribute Details
#health_regen ⇒ Object (readonly)
Returns the value of attribute health_regen.
373 374 375 |
# File 'lib/wowr/character.rb', line 373 def health_regen @health_regen end |
#mana_regen ⇒ Object (readonly)
Returns the value of attribute mana_regen.
373 374 375 |
# File 'lib/wowr/character.rb', line 373 def mana_regen @mana_regen end |