pub(crate) fn spend_secondary_resource( state: &mut CombatState, buf: &mut DenseBuffer, amount: f64, ) -> bool