Uses odds to generate which items from a table should be created in the game world
Source: addons/item_vault/drops/drops_generator.gd
Syntax
class DropsGenerator extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
drops_table | Property | Where the drops are being generated from. Defines scenes to spawn and odds |
odds_multiplier | Property | Multiplier times the base odds to modify how often items drop from the table |
DEFAULT_MAX_GUARANTEED_ROLL_ATTEMPTS | Field | |
max_guaranteed_roll_attempts | Property | Hard ceiling for extra non-combined rolls while satisfying `guaranteed_drops`. Keeps invalid or very-low-odds tables from hanging the game/editor/test run. |
generate_drops | Method | |
roll_drops | Method |