Chris' Tutorials
Docs/Item Vault

Class

DropsGenerator

Generated GDScript class reference for ItemVault.DropsGenerator.

StatusDraft
Versionv1.0
UpdatedDevelopment docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

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 RefCounted

Members

NameKindSummary
drops_tablePropertyUses 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_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
combined_dropProperty
dropsProperty
attemptsPropertyGenerates 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_limitProperty
extra_generationProperty
roll_dropsMethod
new_dropsProperty
gen_resultProperty
random_valProperty
odds_startProperty
odds_endProperty
max_rangeProperty
drop_randomProperty
get_total_oddsMethod
total_oddsProperty

Source

addons/item_vault/drops/drops_generator.gd

Plugin docs root:gdscript/plugins/item_vault_dev/addons/item_vault/guides