Files
purpur-tyrant/src/test/java/games/dmg/spigottyrant/VigilantePowerTest.java
T
dmg 0371337a3e
Release / release (push) Successful in 3m7s
CI / build (push) Successful in 1m15s
feat(vigilante): add followers and combat scaling
2026-08-14 23:01:10 -04:00

15 lines
515 B
Java

package games.dmg.spigottyrant;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
final class VigilantePowerTest {
@Test
void oneLevelPerNearbyFollowerIsCappedSafely() {
assertEquals(new VigilantePower.Levels(3, 3), VigilantePower.forFollowers(3, 5, 4));
assertEquals(new VigilantePower.Levels(5, 4), VigilantePower.forFollowers(10, 5, 4));
assertEquals(new VigilantePower.Levels(0, 0), VigilantePower.forFollowers(0, 5, 4));
}
}