Source: addons/item_vault/drops/drop_entry.gd
Syntax
class DropEntry extends ResourceMembers
| Name | Kind | Summary |
|---|---|---|
item | Property | Represents a single possible drop / loot entry. References an ItemDefinition directly; the world scene comes from the item itself (or a fallback scene_override for decorative drops). The same entry type backs both world-drop tables (RandomDrops) and pickup loot tables (Pickup2D/3D), so the project has a single "drop table" abstraction. The item this entry represents. Its world_scene is used for spawning. |
quantity | Property | How many of the item to produce per successful roll. |
odds | Property | Chance of this entry firing per roll, stored as a 0.0–1.0 probability. Authored as a percentage via the editor slider, but kept as a float so odds multipliers (e.g. DropsGenerator.odds_multiplier) can apply sub-percent precision that an integer 1–100 range cannot represent. |
scene_override | Property | Optional override scene for decorative / non-item drops. When set, takes precedence over item.world_scene. |
resolve_scene | Method |