QtCraft API C++ classes QML types Handbook

QcLootTableDefinition::Entry Struct

struct QcLootTableDefinition::Entry

One entry of a pool: an item and how many of it, drawn by weight. More...

Public Variables

QString item
int maxCount
int minCount
int weight

Detailed Description

Member Variable Documentation

QString Entry::item

Content name of the item; empty: the draw gives nothing.

int Entry::maxCount

Most items a draw gives ("count", the number or the second of [min, max]).

int Entry::minCount

Fewest items a draw gives ("count", a number or the first of [min, max]).

int Entry::weight

Relative chance against the other entries of the pool ("weight", 0 to maxWeight, default 1).