Module attributes

Source

Structs§

EntityStats

Functions§

calculate_entity_stats
calculate_entity_stats_with_mods
Same as calculate_entity_stats, plus .mod multipliers addressed by attribute code rather than by config id.
calculate_player_entity_stats_with_zeroes
calculate_player_entity_stats_without_zeroes
compose_max_hp
Compose the fight max_hp from an aggregated attribute map the same way combat composes every other stat (fight::get_entity_stat): raw hp, plus additive hp.bonus, times the hp.mod multiplier (+10000 == +1.0, floored at MIN_STAT_MOD_MULT). This keeps hp.mod/hp.bonus grants (class levels, the Endurance talent) real in combat and consistent with the power scalar’s get_attr_from_attrs composition.

Type Aliases§

AttributeDeltas