From f5c9219fbe56e55c222dd743e3ffd7e49f3ee301 Mon Sep 17 00:00:00 2001 From: "truong, thomas" Date: Tue, 20 Jun 2023 13:50:15 -0700 Subject: [PATCH] Fixed randomly generated IVs. --- .../veryscuffedcobblemonbreeding/commands/PokeBreed.java | 4 ++-- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/dev/thomasqtruong/veryscuffedcobblemonbreeding/commands/PokeBreed.java b/common/src/main/java/dev/thomasqtruong/veryscuffedcobblemonbreeding/commands/PokeBreed.java index eea9bb2..7002ce7 100644 --- a/common/src/main/java/dev/thomasqtruong/veryscuffedcobblemonbreeding/commands/PokeBreed.java +++ b/common/src/main/java/dev/thomasqtruong/veryscuffedcobblemonbreeding/commands/PokeBreed.java @@ -601,9 +601,9 @@ public IVs getIVs() { toSet.remove(statIndex); } - // Get the rest of the stats. + // Get the rest of the stats (0-31). for (Stats stat : toSet) { - newIVs.set(stat, RNG.nextInt(31)); + newIVs.set(stat, RNG.nextInt(32)); } return newIVs; diff --git a/gradle.properties b/gradle.properties index 3f9c319..bc7c0f9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,5 +11,5 @@ luckperms_version=5.4 mod_id=veryscuffedcobblemonbreeding -mod_version=1.0.4 +mod_version=1.0.5 snapshot=false \ No newline at end of file