Add Leppa Berry
This commit is contained in:
1 parent
255177857f
commit
921851c1b6
6 files changed
+2399
-2361
No files matched your search
@@ -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);
|
||||
}),
|
||||
|
||||
|
||||
Reference in new issue
Block a user