dao::damage
Declared in dao/Damage.h.
Classes
| Class | |
|---|---|
| HandDamage | A creature’s weapon damage per hand. |
Functions
PerHand()
std::optional<HandDamage> PerHand(ObjectId creature)
Works out a creature’s damage per hand with the game’s own script and returns it.
The figure is a steady estimate: an average hit scaled by attack speed, with the creature’s rank, attributes and damage bonus counted, and no dice, armour or resistance. It also rewrites the creature’s properties 50 and 49, which the character record reads and no script reads.
Returns the damage, or nullopt if creature is not a creature, the script commands are not ready, or the call is not on the game thread