mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-22 12:16:26 +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",
|
"name": "pokemon-rogue-battle",
|
||||||
"version": "1.6.1",
|
"version": "1.6.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "pokemon-rogue-battle",
|
"name": "pokemon-rogue-battle",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.6.1",
|
"version": "1.6.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user