getFullUnlockedData now properly accounts for forms
This commit is contained in:
parent
1b16825a50
commit
5ad8f18950
|
@ -1051,7 +1051,11 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
|
|||
caughtAttr += DexAttr.VARIANT_2;
|
||||
caughtAttr += DexAttr.VARIANT_3;
|
||||
}
|
||||
caughtAttr += DexAttr.DEFAULT_FORM;
|
||||
|
||||
// Summing successive bigints for each obtainable form
|
||||
caughtAttr += this.forms
|
||||
.map((f, index) => f.isUnobtainable ? 0n : 128n * 2n ** BigInt(index))
|
||||
.reduce((acc, val) => acc + val, 0n);
|
||||
|
||||
return caughtAttr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue