lua
lua
Rules
DebugAttackBonus(cre)
Generates a string with attack bonus related information.
- param cre
Creature instance.
- type cre
Creature
- rtype
string
GetAttackBonusVs(cre, atype[, target])
- param cre
Creature instance.
- type cre
Creature
- param int atype
- param target
Object instance.
- type target
Object
- rtype
Total attack bonus.
GetBaseAttackBonus(cre, [pre_epic=false])
Determines base attack bonus.
- param cre
Creature instance.
- type cre
Creature
- param boolean pre_epic
If
true
only calculate pre-epic BAB.
GetEffectAttackModifier(cre[, atype[, target]])
Determines the attack bonus from effects.
- param cre
Creature instance.
- type cre
Creature
- param int atype
- param target
Object instance.
- type target
Object
- rtype
If
atype
is passed to the function the unclamped attack bonus is returned, if not anint32_t
array of all ATTACK_TYPE* bonuses is returned.
GetEffectAttackLimits(cre)
Determines the minimum and maximum attack bonus can be modified by effects.
- param cre
Creature instance.
- type cre
Creature
- rtype
-20, 20
GetRangedAttackMod(cre, target, distance)
- param cre
Creature instance.
- type cre
Creature
- param target
Object instance.
- type target
Object
- param float distance
Distance to
target
- rtype
int