mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-20 03:06:49 +00:00
[Bug][Hotfix] Show caught pokemon correctly #5320
Merge pull request #5320 from Wlowscha/hotfix-show-caught-pokemon-correctly
This commit is contained in:
commit
727bf0d74d
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pokemon-rogue-battle",
|
||||
"version": "1.6.1",
|
||||
"version": "1.6.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "pokemon-rogue-battle",
|
||||
"private": true,
|
||||
"version": "1.6.1",
|
||||
"version": "1.6.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
|
@ -1053,9 +1053,9 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
|
||||
}
|
||||
|
||||
// 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);
|
||||
caughtAttr += this?.forms?.length > 1 ?
|
||||
this.forms.map((f, index) => f.isUnobtainable ? 0n : 128n * 2n ** BigInt(index)).reduce((acc, val) => acc + val, 0n) :
|
||||
DexAttr.DEFAULT_FORM;
|
||||
|
||||
return caughtAttr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user