QcLayingDefinition Struct
What a creature lays now and then (a chicken's eggs, decision E-452): an awake adult drops item at its feet after a time chosen evenly between minSeconds and maxSeconds, anew after each one, and sound plays there. More...
| Header: | #include <common/content/recipes/QcFarmingDefinitions.h> |
Public Functions
| bool | lays() const |
Public Variables
| QString | item |
| double | maxSeconds |
| double | minSeconds |
| QString | sound |
Detailed Description
Server side only.
Member Function Documentation
bool QcLayingDefinition::lays() const
Returns whether the creature lays anything (item is set).
Member Variable Documentation
QString QcLayingDefinition::item
Qualified item it lays ("item", required); empty for creatures that lay nothing.
double QcLayingDefinition::maxSeconds
Longest time between two items, in seconds ("maxSeconds", at least minSeconds).
double QcLayingDefinition::minSeconds
Shortest time between two items, in seconds ("minSeconds", 1 to 86400).
QString QcLayingDefinition::sound
Sound key played where it lays ("sound"); empty for none.