pub(crate) fn spend_health_cost( state: &mut CombatState, actor: ActorId, flat: f64, percent_of_maximum: f64, ) -> f64