Quantcast

Added recipe methods SetCraftedItemID() and CraftedItemID()

James D. Callahan III [03-11-11 - 08:18]
Added recipe methods SetCraftedItemID() and CraftedItemID()
Filename
Recipe.lua
diff --git a/Recipe.lua b/Recipe.lua
index f07ca75..42f579e 100644
--- a/Recipe.lua
+++ b/Recipe.lua
@@ -117,6 +117,14 @@ function recipe_prototype:RecipeItemID()
 	return self.recipe_item_id
 end

+function recipe_prototype:SetCraftedItemID(item_id)
+	self.crafted_item_id = item_id
+end
+
+function recipe_prototype:CraftedItemID()
+	return self.crafted_item_id
+end
+
 function recipe_prototype:HasState(state_name)
 	return self.state and (bit.band(self.state, SF[state_name]) == SF[state_name]) or false
 end