Added recipe methods SetSpecialty() and Specialty()
James D. Callahan III [03-11-11 - 08:19]
Added recipe methods SetSpecialty() and Specialty()
diff --git a/Recipe.lua b/Recipe.lua
index 92dc328..aae55ab 100644
--- a/Recipe.lua
+++ b/Recipe.lua
@@ -137,6 +137,14 @@ function recipe_prototype:SkillLevels()
return self.skill_level, self.optimal_level, self.medium_level, self.easy_level, self.trivial_level
end
+function recipe_prototype:SetSpecialty(spell_id)
+ self.specialty = spell_id
+end
+
+function recipe_prototype:Specialty()
+ return self.specialty
+end
+
function recipe_prototype:HasState(state_name)
return self.state and (bit.band(self.state, SF[state_name]) == SF[state_name]) or false
end