Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.
Source: addons/item_vault/drops/drops_generator.gd
Syntax
class DropsGenerator extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
drops_table | Property | Uses odds to generate which items from a table should be created in the game world 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 | |
combined_drop | Property | |
drops | Property | |
attempts | Property | Generates drops until the guaranteed number has been matched or the deterministic attempt ceiling is reached. This prevents impossible or statistically-unlikely configurations from hanging the game/editor. |
attempt_limit | Property | |
extra_generation | Property | |
roll_drops | Method | |
new_drops | Property | |
gen_result | Property | |
random_val | Property | |
odds_start | Property | |
odds_end | Property | |
max_range | Property | |
drop_random | Property | |
get_total_odds | Method | |
total_odds | Property |
Source
addons/item_vault/drops/drops_generator.gd
Plugin docs root:gdscript/plugins/item_vault_dev/addons/item_vault/guides