QcVillagerBreedingSettings Struct
How villagers breed (villagers/<name>.json "breeding", decision E-415). More...
| Header: | #include <common/content/villages/QcVillagerDefinitions.h> |
Public Variables
| QHash<QString, int> | foods |
| double | youngSpeed |
Static Public Members
| const qsizetype | maxFoods |
Detailed Description
Two adults of a village that are willing (each holds food produce: the crops farmers harvest, shared by farmers holding more than shareAbove with villagers within shareDistance that lack them) and see each other within partnerDistance by day, in dry weather, get a child when their village has a free bed: it claims the bed, has no profession and grows up after growUpSeconds. Parents rest for cooldownSeconds. Distances are in blocks; the JSON keys are the field names.
Member Variable Documentation
QHash<QString, int> QcVillagerBreedingSettings::foods
Items adult villagers pick up as food (decision E-490), by qualified item name: the produce each is worth (a harvest is worth 1). They pick up food while they hold less than shareAbove + food, so players feed them by throwing it.
const qsizetype QcVillagerBreedingSettings::maxFoods
Most entries of foods.
double QcVillagerBreedingSettings::youngSpeed
Children walk this much faster than adults (they run about).