QcDrinkHealDefinition Struct
A creature that drinks to heal (the witch, decision E-623), from its data (drinks): once its health lies heal or more below its most and cooldownSeconds have passed since its last drink, it holds item for seconds without shooting, then heals by heal with sound. More...
| Header: | #include <common/content/mobs/QcMobTraits.h> |
Public Variables
| double | cooldownSeconds |
| double | heal |
| QcItemId | itemId |
| double | seconds |
| QString | sound |
Detailed Description
Server side only.
Member Variable Documentation
double QcDrinkHealDefinition::cooldownSeconds
Seconds after a drink before the next one.
double QcDrinkHealDefinition::heal
Health it heals by a drink, and how far below its most its health must lie.
QcItemId QcDrinkHealDefinition::itemId
The id of item, resolved when the content is finished (QcMobTraitsContent::resolve).
double QcDrinkHealDefinition::seconds
Seconds it holds the drink before it heals.
QString QcDrinkHealDefinition::sound
Played when it heals; empty for none.