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.



386
387
388
389
390
391
# File 'lib/wowr/character.rb', line 386

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.



385
386
387
# File 'lib/wowr/character.rb', line 385

def health_regen
  @health_regen
end

#mana_regenObject (readonly)

Returns the value of attribute mana_regen.



385
386
387
# File 'lib/wowr/character.rb', line 385

def mana_regen
  @mana_regen
end