View Single Post
  #15  
Unread 11-19-2010, 06:21 PM
Chiran Chiran is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 27
Quote:
Originally Posted by Temil2006
if there was 10 recipes per crafting tier, and there is a total of 2 tiers, would the recipies numbers still be 0-18 going by the TypeOfCrafting, or would it be better to go with TierDependent, being 0-9 for tier1, 0-9 for tier2 ? (did that make any since, because i just gave myself a headack typing it.. lol)
You could also discard the Tier as a table key and put it as a property of each recipe. It all depends on how you plan to use it.


Quote:
If it's seting up variables, i assumes that's easier for coding, but when happens when there is a newer LAU code with newer recipes that comes out.
Yep, would be nice to have a unique id for each recipe that does not change when new ones are added. Actually, you could even use the recipe name as the key, though it is rather long.

P.S. It's Lua, not Lau or LAU (or LUA for that matter), sorry nitpicking but I was schooled about that once by a dev :P.

-Chiran

Last edited by Chiran : 11-19-2010 at 06:23 PM.
Reply With Quote