Chest Random Good
Generates a randomized selection of high-value loot items for a chest, applying special initialization to certain items with finite uses or fuel.
Generates a randomized selection of high-value loot items for a chest, applying special initialization to certain items with finite uses or fuel.
Provides utility functions for spawning loot in containers and managing chest trap behaviors with randomization and event handling.
Assigns loot items to a chest entity when it is created, selecting from a fixed base set and one of two randomized chance-based sets.
Implements a weighted random selection data structure for choosing items based on assigned weights.