Counting default form in caughtAttr for mons that don't have alternative forms
This commit is contained in:
parent
f68a833fcf
commit
8f498f1197
|
@ -1053,9 +1053,9 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
|
||||||
}
|
}
|
||||||
|
|
||||||
// Summing successive bigints for each obtainable form
|
// Summing successive bigints for each obtainable form
|
||||||
caughtAttr += this.forms
|
caughtAttr += this?.forms?.length > 1 ?
|
||||||
.map((f, index) => f.isUnobtainable ? 0n : 128n * 2n ** BigInt(index))
|
this.forms.map((f, index) => f.isUnobtainable ? 0n : 128n * 2n ** BigInt(index)).reduce((acc, val) => acc + val, 0n) :
|
||||||
.reduce((acc, val) => acc + val, 0n);
|
DexAttr.DEFAULT_FORM;
|
||||||
|
|
||||||
return caughtAttr;
|
return caughtAttr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue