Add Leppa Berry

This commit is contained in:
Flashfyre committed 2024-03-19 23:18:48 -04:00
1 parent 255177857f
commit 921851c1b6
6 files changed
+2399 -2361

No files matched your search

+4 -2
View File
@@ -788,13 +788,15 @@ export const modifierTypes = {
return new BerryModifierType(pregenArgs[0] as BerryType);
const berryTypes = Utils.getEnumValues(BerryType);
let randBerryType: BerryType;
let rand = Utils.randSeedInt(10);
let rand = Utils.randSeedInt(12);
if (rand < 2)
randBerryType = BerryType.SITRUS;
else if (rand < 4)
randBerryType = BerryType.LUM;
else if (rand < 6)
randBerryType = BerryType.LEPPA;
else
randBerryType = berryTypes[Utils.randSeedInt(berryTypes.length - 2) + 2];
randBerryType = berryTypes[Utils.randSeedInt(berryTypes.length - 3) + 2];
return new BerryModifierType(randBerryType);
}),