marpis
2010-06-30 06:29:29
http://villavu.com/forum/showthread.php?t=57656
If we had TItems, TMSObjects, ActionExperiences etc. all in their own global arrays, we wouldn't need to have 432x10^4 consts for a tree.
Current: (assuming we will make objects a global array)
Object: Objects[OBJ_TREE_NORMAL]
Item: Items[ITEM_LOGS_NORMAL]
Exp: ???? I have no idea
My idea:
Object: Objects[C_TREE]
Item: Items[C_TREE] (Common sense says it's logs)
Exp: Experiences[C_TREE] (Exp from cutting it)
This would ease calculating experiences for progressreports and cut down number of constants.
EDIT: Oh, I just came across a problem. We have different experiences for cutting a normal tree and burning the logs, but we want to have just 1 const… Dang. Ok, the experiences can't be in a global array all at once. :-\
EDIT 2: Solution :) ActionExperiences[skill_WoodCutting][C_TREE] and ActionExperiences[skill_FireMaking][C_TREE]
If we had TItems, TMSObjects, ActionExperiences etc. all in their own global arrays, we wouldn't need to have 432x10^4 consts for a tree.
Current: (assuming we will make objects a global array)
Object: Objects[OBJ_TREE_NORMAL]
Item: Items[ITEM_LOGS_NORMAL]
Exp: ???? I have no idea
My idea:
Object: Objects[C_TREE]
Item: Items[C_TREE] (Common sense says it's logs)
Exp: Experiences[C_TREE] (Exp from cutting it)
This would ease calculating experiences for progressreports and cut down number of constants.
EDIT: Oh, I just came across a problem. We have different experiences for cutting a normal tree and burning the logs, but we want to have just 1 const… Dang. Ok, the experiences can't be in a global array all at once. :-\
EDIT 2: Solution :) ActionExperiences[skill_WoodCutting][C_TREE] and ActionExperiences[skill_FireMaking][C_TREE]