Skip to content

Commit

Permalink
Merge pull request #89 from WatWowMap/form-0-fix
Browse files Browse the repository at this point in the history
fix: Extra Form 0 Fix
  • Loading branch information
TurtIeSocks committed Oct 7, 2023
2 parents 1e15b8f + 95e622d commit 6327e5b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pogo-data-generator",
"version": "1.16.3",
"version": "1.16.4",
"description": "Pokemon GO project data generator",
"author": "TurtIeSocks",
"license": "Apache-2.0",
Expand Down
9 changes: 3 additions & 6 deletions src/classes/Pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,6 @@ export default class Pokemon extends Masterfile {
isCostume: forms[i].isCostume,
}
}
if (this.options.allUnset && !this.options.noFormPlaceholders) {
this.parsedPokemon[id].forms.push(0)
}
}
} else {
if (!this.parsedPokemon[id]) {
Expand All @@ -714,9 +711,9 @@ export default class Pokemon extends Masterfile {
...this.getGeneration(+id),
}
}
if (this.options.includeUnset && !this.options.noFormPlaceholders) {
this.parsedPokemon[id].forms.push(0)
}
}
if (this.options.includeUnset && !this.options.noFormPlaceholders) {
this.parsedPokemon[id].forms.push(0)
}
} catch (e) {
console.warn(e, '\n', JSON.stringify(object, null, 2))
Expand Down
4 changes: 2 additions & 2 deletions src/typings/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ interface Form extends BaseStats {
formId?: boolean
genderRequirement?: boolean
candyCost?: boolean
itemRequirement?: boolean
itemRequirement?: boolean | string
tradeBonus?: boolean
mustBeBuddy?: boolean
onlyDaytime?: boolean
Expand Down Expand Up @@ -325,7 +325,7 @@ export interface FullTemplate {
enabled?: boolean
options: Options
template: TranslationsTemplate
locales: { [key in Locales[number]]: boolean }
locales: { [key in Locales[number]]?: boolean }
}
raids?: {
enabled?: boolean
Expand Down
3 changes: 2 additions & 1 deletion tests/defaultValues.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
"charged_moves": [
"Dig",
"Night Slash",
"Gyro Ball"
"Gyro Ball",
"Trailblaze"
],
"types": [
"Steel"
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,9 @@
"@jridgewell/sourcemap-codec" "^1.4.10"

"@na-ji/pogo-protos@<3.0.0":
version "2.80.0"
resolved "https://registry.yarnpkg.com/@na-ji/pogo-protos/-/pogo-protos-2.80.0.tgz#7b598b25fdbdef7da678107a7edb0410a3cc94a3"
integrity sha512-zOs3qlqdpYfg/mU77KxlCX5/r5rmgZ1oDtCiS8ElTyUQz44bNUj2cNmFjeKenq0VXozIcvnzIvFUvU8JuZ9CuA==
version "2.91.0"
resolved "https://registry.yarnpkg.com/@na-ji/pogo-protos/-/pogo-protos-2.91.0.tgz#6e2680448f09579de0f07524a3305a9e9df8ad26"
integrity sha512-8k3JFek+B+6URYFuefq+3qR2NKG+aT0SjPMbTO51KGGWEhY9rPuSUSPGldtKseQh2YPJWDXE3q+m9hmOM749YQ==
dependencies:
protobufjs "^6.11.3"

Expand Down Expand Up @@ -868,9 +868,9 @@
integrity sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg==

"@types/node@>=13.7.0":
version "20.5.7"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.5.7.tgz#4b8ecac87fbefbc92f431d09c30e176fc0a7c377"
integrity sha512-dP7f3LdZIysZnmvP3ANJYTSwg+wLLl8p7RqniVlV7j+oXSXAbt9h0WIBFmJy5inWZoX9wZN6eXx+YXd9Rh3RBA==
version "20.8.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.3.tgz#c4ae2bb1cfab2999ed441a95c122bbbe1567a66d"
integrity sha512-jxiZQFpb+NlH5kjW49vXxvxTjeeqlbsnTAdBTKpzEdPs9itay7MscYXz3Fo9VYFEsfQ6LJFitHad3faerLAjCw==

"@types/prettier@^2.1.5":
version "2.6.4"
Expand Down

0 comments on commit 6327e5b

Please sign in to comment.