Class: Wowr::Classes::ItemPlansFor

Inherits:
ItemCreation show all
Defined in:
lib/wowr/item.rb

Overview

(fold) <plansFor>

<spell name="Shadowprowler's Chestguard" icon="trade_leatherworking" id="42731">
  <item name="Shadowprowler's Chestguard" icon="inv_chest_plate11" type="Leather" level="105" id="33204" quality="4"></item>
  <reagent name="Heavy Knothide Leather" icon="inv_misc_leatherscrap_11" id="23793" count="10"></reagent>
</spell>

</plansFor> (end)

Instance Attribute Summary

Attributes inherited from ItemCreation

#item, #reagents

Attributes inherited from Item

#icon_base, #id, #name

Instance Method Summary collapse

Methods inherited from Item

#icon

Constructor Details

#initialize(elem, api = nil) ⇒ ItemPlansFor

Returns a new instance of ItemPlansFor.



558
559
560
561
562
# File 'lib/wowr/item.rb', line 558

def initialize(elem, api = nil)
	super(elem, api)
	# TODO: Multiple items?
	@item = CreatedItem.new(elem%'item')  if (elem%'item')
end