QcBreedingDefinition Struct
How a peaceful creature breeds (decision E-293): fed with one of food, an adult falls in love for loveSeconds; two of a kind in love within partnerDistance metres get a young one, which grows up after growUpSeconds. More...
| Header: | #include <common/content/recipes/QcFarmingDefinitions.h> |
Public Functions
| bool | breeds() const |
Public Variables
| double | cooldownSeconds |
| QcExperienceDrop | experience |
| QStringList | food |
| double | growUpSeconds |
| double | loveSeconds |
| double | partnerDistance |
Detailed Description
Parents may breed again after cooldownSeconds. Server side only.
Member Function Documentation
bool QcBreedingDefinition::breeds() const
Returns whether the creature breeds (food is set).
Member Variable Documentation
double QcBreedingDefinition::cooldownSeconds
Seconds before parents may breed again ("cooldownSeconds", 0 to 86400).
QcExperienceDrop QcBreedingDefinition::experience
Experience points a pair gives as orbs when a young one is born (the reference's 1 to 7, decision E-398). Server side only.
QStringList QcBreedingDefinition::food
Items that make an adult fall in love ("food", required); empty for creatures that do not breed.
double QcBreedingDefinition::growUpSeconds
Seconds until a young one grows up ("growUpSeconds", 1 to 86400).
double QcBreedingDefinition::loveSeconds
Seconds an adult stays in love ("loveSeconds", 1 to 3600).
double QcBreedingDefinition::partnerDistance
Greatest distance between two partners, in metres ("partnerDistance", 0.5 to 32).