fn resource_wait(
state: &CombatState,
buf: &DenseBuffer,
now: SimTime,
target_cost: Option<f64>,
) -> SimTimefn resource_wait(
state: &CombatState,
buf: &DenseBuffer,
now: SimTime,
target_cost: Option<f64>,
) -> SimTime