pub fn enemy_power_scalar(
base_power: f64,
current_chapter: i64,
fight_type: &str,
is_dungeon: bool,
) -> f64Expand description
Enemy “power” scalar for a fight — the value spawn_wave feeds into the
HP/attack curve, and the apples-to-apples counterpart of the player’s
character.power (both normalized to BASE_POWER). For campaign fights:
at/below HAND_AUTHORED_CHAPTER_MAX (the whole first stage) it is the
hand-authored FightTemplate.power (base_power) with NO mid-boss gate;
above it the rebalanced geometric curve
(enemy_power_for_chapter, which carries the sweepable anchor/step + the
early-chapter bump), with a boss bump. For DUNGEON fights it is always the
authored per-difficulty base_power (see below). Shared so the battle-end
analytics report exactly the value the fight spawned.