Class: Wowr::Classes::Spirit

Inherits:
BaseStat show all
Defined in:
lib/wowr/character.rb

Instance Attribute Summary collapse

Attributes inherited from BaseStat

#base, #effective

Instance Method Summary collapse

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_regenObject (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_regenObject (readonly)

Returns the value of attribute mana_regen.



373
374
375
# File 'lib/wowr/character.rb', line 373

def mana_regen
  @mana_regen
end