Class: Wowr::Classes::TalentSpec

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

Overview

Note the list of talent trees starts at 1. This is quirky, but that’s what’s used in the XML

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ TalentSpec

Returns a new instance of TalentSpec.



682
683
684
685
686
687
# File 'lib/wowr/character.rb', line 682

def initialize(elem)
	@trees = []
	@trees[1] = elem[:treeOne].to_i
	@trees[2] = elem[:treeTwo].to_i
	@trees[3] = elem[:treeThree].to_i
end

Instance Attribute Details

#treesObject (readonly)

Returns the value of attribute trees.



680
681
682
# File 'lib/wowr/character.rb', line 680

def trees
  @trees
end