Module combat

Source

Structsยง

Attack
AttackDamage
AttackEffect
AttackOptions
AttackerInfo
CombatBuff
Damage
DeathEffects
Permanent entity death effects (unlike Stats::effects_on_death which is only active as long as ie. it has a certain buff)
FlankMults
Knockback
TargetInfo

Enumsยง

AttackSource
CombatBuffStrength
CombatEffect
CombatRequirement
DamageContributor
DamageKind
DamageKind for the purpose of differentiating damage reduction
DamageSource
DamagedEffect
DeathEffect
GroupTarget
KnockbackDir

Constantsยง

BASE_PARRIED_POISE_PUNISHMENT
BEAM_DURATION_PRECISION
BEHIND_TARGET_ANGLE
CRUSHING_POISE_FRACTION ๐Ÿ”’
FALLBACK_BLOCK_STRENGTH
FULL_FLANK_ANGLE
MAX_BACK_FLANK_PRECISION
MAX_BEAM_DUR_PRECISION
MAX_BLOCK_POISE_COST
MAX_HEADSHOT_PRECISION
MAX_MELEE_POISE_PRECISION
MAX_SIDE_FLANK_PRECISION
MAX_TOP_HEADSHOT_PRECISION
PARRY_BONUS_MULTIPLIER
PARTIAL_FLANK_ANGLE
PIERCING_PENETRATION_FRACTION ๐Ÿ”’
PROJECTILE_HEADSHOT_PROPORTION
SLASHING_ENERGY_FRACTION ๐Ÿ”’

Functionsยง

allow_friendly_fire
block_strength
combat_rating
compute_energy_reward_mod
Computes the energy reward modifier from worn armor
compute_max_energy_mod
Computes the additive modifier that should be applied to max energy from the currently equipped items
compute_poise_resilience
Computes the total resilience provided from armor. Is used to determine the reduction applied to poise damage received by an entity. None indicates that the armor equipped makes the entity invulnerable to poise damage.
compute_precision_mult
compute_protection
Computes the total protection provided from armor. Is used to determine the damage reduction applied to damage received by an entity None indicates that the armor equipped makes the entity invulnerable
get_equip_slot_by_block_priority
get_weapon_kinds
get_weapon_rating ๐Ÿ”’
perception_dist_multiplier_from_stealth
Returns a value to be included as a multiplicative factor in perception distance checks.
permit_pvp
Function that checks for unintentional PvP between players.
precision_mult_from_flank
Used to compute the precision multiplier achieved by flanking a target
stealth_multiplier_from_items
weapon_rating ๐Ÿ”’
weapon_skills ๐Ÿ”’