Attack Bonus¶
-
DebugAttackBonus
(cre)¶ Generates a string with attack bonus related information.
Parameters: - cre (
Creature
) – Creature instance.
Return type: string
- cre (
-
GetAttackBonusVs
(cre, atype[, target])¶ Parameters: Return type: Total attack bonus.
-
GetBaseAttackBonus
(cre[, pre_epic=false])¶ Determines base attack bonus.
Parameters: - cre (
Creature
) – Creature instance. - pre_epic (boolean) – If
true
only calculate pre-epic BAB.
- cre (
-
GetEffectAttackModifier
(cre[, atype[, target]])¶ Determines the attack bonus from effects.
Parameters: Return type: 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.