mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Ensure monsterplants don't get rarity 0
This commit is contained in:
parent
47825978cb
commit
1c5e180447
@ -33,7 +33,7 @@ public class InteractionMonsterPlantSeed extends HabboItem {
|
||||
public static int randomRarityLevel() {
|
||||
int number = Emulator.getRandom().nextInt(66);
|
||||
int count = 0;
|
||||
for (int i = 1; i <= 11; i++) {
|
||||
for (int i = 1; i < 11; i++) {
|
||||
count += 11 - i;
|
||||
if (number <= count) {
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user