Skip to content
ct

Class

DropsGenerator

Generated GDScript class reference for ItemVault.DropsGenerator.

Status
Current
Version
v1.0
Updated
2026-07-31

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 RefCounted

Members

NameKindSummary
drops_tablePropertyWhere the drops are being generated from. Defines scenes to spawn and odds
odds_multiplierPropertyMultiplier times the base odds to modify how often items drop from the table
DEFAULT_MAX_GUARANTEED_ROLL_ATTEMPTSField
max_guaranteed_roll_attemptsPropertyHard 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_dropsMethod
roll_dropsMethod