fix(teleport): enforce visitor warm-up
This commit is contained in:
@@ -22,6 +22,17 @@ final class TeleportPolicyTest {
|
||||
assertEquals(Duration.ZERO, policy.warmup(player.withTeleportLevels(3, 0)));
|
||||
}
|
||||
|
||||
@Test
|
||||
void visitorWarmupHasOneSecondMinimum() {
|
||||
PlayerState player = baseThreePlayer();
|
||||
|
||||
assertEquals(Duration.ofSeconds(30), policy.visitorWarmup(player));
|
||||
assertEquals(
|
||||
Duration.ofSeconds(1),
|
||||
policy.visitorWarmup(player.withTeleportLevels(3, 0))
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
void cooldownLevelsUseApprovedDurations() {
|
||||
PlayerState player = baseThreePlayer();
|
||||
|
||||
Reference in New Issue
Block a user