Closed fredi-68 closed 5 years ago
Got a better idea: Extract loot table lookups into its own module and provide a class that handles all loot randomization and exposes useful methods for getting a certain amount of randomized loot from a specific table, altering the loot table of an object and rolling loot from a specific RNG seed
Done. Not sure about loot table alterations but it should be theoretically possible. I haven't implemented a test script yet but that will surely happen soon.
Move loot table lookup into components and perform on object creation to allow scripts to alter loot tables.