You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Randomize heartbeat timer for pet stat inheritance.
274
-
env.heartbeatOffset=env.PrepullStartTime(sim) -PetUpdateInterval+DurationFromSeconds(PetUpdateInterval.Seconds()*sim.RandomFloat("Pet Stat Inheritance"))
slices.SortStableFunc(env.prepullActions, func(a1, a2*PrepullAction) int {
298
+
returnint(a1.doAtTime-a2.doAtTime)
299
+
})
300
+
}
301
+
302
+
// Randomize heartbeat timer for pet stat inheritance.
303
+
env.heartbeatOffset=env.PrepullStartTime(sim) -PetUpdateInterval+DurationFromSeconds(PetUpdateInterval.Seconds()*sim.RandomFloat("Pet Stat Inheritance"))
286
304
}
287
305
288
306
// The maximum possible duration for any iteration.
0 commit comments