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
trueonly calculate pre-epic BAB.
- cre (
-
GetEffectAttackModifier(cre[, atype[, target]])¶ Determines the attack bonus from effects.
Parameters: Return type: If
atypeis passed to the function the unclamped attack bonus is returned, if not anint32_tarray of all ATTACK_TYPE_* bonuses is returned.