Quote:
Originally Posted by Maze_EQ
Then add an array for each 5 augments with a random chance to apply by passing $aug1, $aug2, $aug3, $aug4, $aug5.
Note: This is just an example, but that's totes how i'd do it.
|
Yep, pretty much as explained above. However, when coding, I always try to think of "what can the player do to screw this up?"
And the immediate one I can think of, as mentioned above, is if they do a right click (immediate) loot, making the item land in their inventory. But, this should be an issue if the item itself is LORE. That is likely the route I would go, rather than having Perl handle the traits of a "LORE" like item, as it just makes an already complex way to handle giving items/augments (in my humble opinion) more complex.