Implement some star tower npc events

This commit is contained in:
Melledy
2025-12-04 23:40:24 -08:00
parent 3710f0a697
commit 86c607c0b3
10 changed files with 440 additions and 8 deletions

View File

@@ -173,6 +173,10 @@ public class Utils {
public static int randomRange(int min, int max) {
return ThreadLocalRandom.current().nextInt(min, max + 1);
}
public static boolean randomChance(double chance) {
return ThreadLocalRandom.current().nextDouble() < chance;
}
public static int randomElement(int[] array) {
return array[ThreadLocalRandom.current().nextInt(0, array.length)];