Class: Wowr::Classes::SpellDamage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bonusDamage_elem, critChance_elem) ⇒ SpellDamage

Returns a new instance of SpellDamage.



562
563
564
565
# File 'lib/wowr/character.rb', line 562

def initialize(bonusDamage_elem, critChance_elem)
	@value 		= bonusDamage_elem[:value].to_i
	@crit_chance_percent	= critChance_elem[:percent].to_f
end

Instance Attribute Details

#crit_chance_percentObject (readonly) Also known as: percent

Returns the value of attribute crit_chance_percent.



559
560
561
# File 'lib/wowr/character.rb', line 559

def crit_chance_percent
  @crit_chance_percent
end

#valueObject (readonly)

Returns the value of attribute value.



559
560
561
# File 'lib/wowr/character.rb', line 559

def value
  @value
end