comparison ReagentMaker.lua @ 78:31009ddc7d31

Update localization
author contrebasse
date Sun, 15 May 2011 00:02:18 +0200
parents cd36938d2a48
children 0e2606039c98
comparison
equal deleted inserted replaced
77:cd36938d2a48 78:31009ddc7d31
129 129
130 -- If only one recipe is known for the reagent, use it 130 -- If only one recipe is known for the reagent, use it
131 if #(A.data[reagentID]) == 1 and not A.data[reagentID][1].macro then 131 if #(A.data[reagentID]) == 1 and not A.data[reagentID][1].macro then
132 local numMakable, reagentIndex = A.numMakable(reagentID) 132 local numMakable, reagentIndex = A.numMakable(reagentID)
133 if not numMakable then 133 if not numMakable then
134 A.Error(A.L["The recipe to make the reagent seems to be hidden, it is not makable."]) 134 A.Error(A.L["The recipe to make the reagent seems to be hidden, it is not makable. Try to remove the filters on the recipes."])
135 return 135 return
136 end 136 end
137 if numMakable>0 then 137 if numMakable>0 then
138 A.craft(recipeIndex,reagentRecipeIndex,reagentIndex,numMakable,chooseNumberToCraft) 138 A.craft(recipeIndex,reagentRecipeIndex,reagentIndex,numMakable,chooseNumberToCraft)
139 return 139 return