QcTradeOffer Struct
One offer of a profession (decision E-414): from level on, a villager may offer result for costs (one or two stacks, paid by the player), maxUses times until it restocks at its workstation. More...
| Header: | #include <common/content/villages/QcTradeDefinitions.h> |
Public Variables
| QList<QcTradeStack> | costs |
| int | demand |
| QString | id |
| int | level |
| int | maxUses |
| int | playerExperience |
| QcTradeStack | result |
| int | villagerExperience |
Static Public Members
| const int | maxCosts |
| const int | maxExperience |
| const int | maxUsesLimit |
Detailed Description
Each trade gives the villager villagerExperience and the player playerExperience points as orbs. demand raises the price of the first cost by that many items for each restock after the offer sold out (falling again by one step for each restock it did not), at most to twice its base count.
Member Variable Documentation
QList<QcTradeStack> QcTradeOffer::costs
What the player pays ("costs", 1 to maxCosts stacks).
int QcTradeOffer::demand
Items added to the first cost per restock after the offer sold out ("demand", 0..64).
QString QcTradeOffer::id
Unique within the profession: the saved uses and demand of a villager belong to it ("id"; default: first cost and result, as in "wheat>emerald").
int QcTradeOffer::level
Villager level from which it may be offered ("level", 1..5).
const int QcTradeOffer::maxCosts
Most cost stacks of an offer.
const int QcTradeOffer::maxExperience
Highest villager or player experience of one trade the data may set.
int QcTradeOffer::maxUses
Trades until it sells out and waits for a restock ("maxUses").
const int QcTradeOffer::maxUsesLimit
Highest maxUses the data may set.
int QcTradeOffer::playerExperience
Experience points the player gets as orbs per trade ("playerExperience").
QcTradeStack QcTradeOffer::result
What the player gets ("result").
int QcTradeOffer::villagerExperience
Experience the villager gains per trade ("villagerExperience").