From 1bf806a35df8d1442fdeaac6a2b88a133a243d42 Mon Sep 17 00:00:00 2001 From: Waleed Hassan Date: Mon, 27 Nov 2023 23:20:24 +0300 Subject: [PATCH] Add new CAP Pokemon Cresceidon & fix data errors that turned up by updating `@pkmn/dex` --- calc/package-lock.json | 30 +++++++++++++++--------------- calc/package.json | 2 +- calc/src/data/moves.ts | 1 + calc/src/data/species.ts | 10 ++++++++-- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/calc/package-lock.json b/calc/package-lock.json index 199ef3614..b0e5245fa 100644 --- a/calc/package-lock.json +++ b/calc/package-lock.json @@ -12,7 +12,7 @@ "@types/node": "^18.14.2" }, "devDependencies": { - "@pkmn/dex": "^0.7.53", + "@pkmn/dex": "^0.7.58", "@pkmn/eslint-config": "^2.15.0", "@types/jest": "^29.4.0", "@typescript-eslint/eslint-plugin": "^5.54.0", @@ -1243,18 +1243,18 @@ } }, "node_modules/@pkmn/dex": { - "version": "0.7.53", - "resolved": "https://registry.npmjs.org/@pkmn/dex/-/dex-0.7.53.tgz", - "integrity": "sha512-C8/4uQxIp4RCu3KXU+QWLRPtF5Gp7ewVjByhM6t9DkXiUYLY4s4sRp1jNT26ZP3uB9FcYUJj3y61boUlvn4Mog==", + "version": "0.7.58", + "resolved": "https://registry.npmjs.org/@pkmn/dex/-/dex-0.7.58.tgz", + "integrity": "sha512-1BvEW2rcIy9rCfBEdgALJW/HBE30GGF+hMxcv/05kqCfn98Rat2FGMJIcQDKdQWwM74dyVCxDrWXEWFXqz8FDQ==", "dev": true, "dependencies": { - "@pkmn/dex-types": "^0.7.53" + "@pkmn/dex-types": "^0.7.58" } }, "node_modules/@pkmn/dex-types": { - "version": "0.7.53", - "resolved": "https://registry.npmjs.org/@pkmn/dex-types/-/dex-types-0.7.53.tgz", - "integrity": "sha512-m9Auu8/6Dls2vXt6J5EFiHklP0xmIIfYhoCkaIUvGN+ScdfY9fhl1xyhQlWZ1nOU2sMcwbwV7U/YIF8oOP7/Ew==", + "version": "0.7.58", + "resolved": "https://registry.npmjs.org/@pkmn/dex-types/-/dex-types-0.7.58.tgz", + "integrity": "sha512-rMwraAe91rg6zKkP7Hpn0JLmtnbMlx0USUgfzdlZIMhLLGfzVj64t91zcHZqahd3PNaXXD6Dog6cL9GGNMGgDw==", "dev": true, "dependencies": { "@pkmn/types": "^3.0.0" @@ -5808,18 +5808,18 @@ } }, "@pkmn/dex": { - "version": "0.7.53", - "resolved": "https://registry.npmjs.org/@pkmn/dex/-/dex-0.7.53.tgz", - "integrity": "sha512-C8/4uQxIp4RCu3KXU+QWLRPtF5Gp7ewVjByhM6t9DkXiUYLY4s4sRp1jNT26ZP3uB9FcYUJj3y61boUlvn4Mog==", + "version": "0.7.58", + "resolved": "https://registry.npmjs.org/@pkmn/dex/-/dex-0.7.58.tgz", + "integrity": "sha512-1BvEW2rcIy9rCfBEdgALJW/HBE30GGF+hMxcv/05kqCfn98Rat2FGMJIcQDKdQWwM74dyVCxDrWXEWFXqz8FDQ==", "dev": true, "requires": { - "@pkmn/dex-types": "^0.7.53" + "@pkmn/dex-types": "^0.7.58" } }, "@pkmn/dex-types": { - "version": "0.7.53", - "resolved": "https://registry.npmjs.org/@pkmn/dex-types/-/dex-types-0.7.53.tgz", - "integrity": "sha512-m9Auu8/6Dls2vXt6J5EFiHklP0xmIIfYhoCkaIUvGN+ScdfY9fhl1xyhQlWZ1nOU2sMcwbwV7U/YIF8oOP7/Ew==", + "version": "0.7.58", + "resolved": "https://registry.npmjs.org/@pkmn/dex-types/-/dex-types-0.7.58.tgz", + "integrity": "sha512-rMwraAe91rg6zKkP7Hpn0JLmtnbMlx0USUgfzdlZIMhLLGfzVj64t91zcHZqahd3PNaXXD6Dog6cL9GGNMGgDw==", "dev": true, "requires": { "@pkmn/types": "^3.0.0" diff --git a/calc/package.json b/calc/package.json index 4b9bdc06f..ea9723ede 100644 --- a/calc/package.json +++ b/calc/package.json @@ -14,7 +14,7 @@ "@types/node": "^18.14.2" }, "devDependencies": { - "@pkmn/dex": "^0.7.53", + "@pkmn/dex": "^0.7.58", "@pkmn/eslint-config": "^2.15.0", "@types/jest": "^29.4.0", "@typescript-eslint/eslint-plugin": "^5.54.0", diff --git a/calc/src/data/moves.ts b/calc/src/data/moves.ts index 94f794015..2739acf9e 100644 --- a/calc/src/data/moves.ts +++ b/calc/src/data/moves.ts @@ -4172,6 +4172,7 @@ const SV_PATCH: {[name: string]: DeepPartial} = { 'Razor Leaf': {isSlicing: true}, 'Razor Shell': {isSlicing: true}, 'Sacred Sword': {isSlicing: true}, + 'Secret Sword': {isSlicing: true}, Sandstorm: {isWind: true}, Slash: {isSlicing: true}, 'Solar Blade': {isSlicing: true}, diff --git a/calc/src/data/species.ts b/calc/src/data/species.ts index 04411c62f..6a0c3b7f0 100644 --- a/calc/src/data/species.ts +++ b/calc/src/data/species.ts @@ -3510,7 +3510,7 @@ const DPP_PATCH: {[name: string]: DeepPartial} = { types: ['Ghost', 'Fighting'], bs: {hp: 90, at: 105, df: 90, sa: 65, sd: 110, sp: 65}, weightkg: 44, - abilities: {0: 'Shed Skin'}, + abilities: {0: 'Air Lock'}, }, Rhyperior: { types: ['Ground', 'Rock'], @@ -8622,7 +8622,7 @@ const SS_PATCH: {[name: string]: DeepPartial} = { 'Urshifu-Rapid-Strike-Gmax': { types: ['Fighting', 'Water'], bs: {hp: 100, at: 130, df: 100, sa: 63, sd: 60, sp: 97}, - weightkg: 105, + weightkg: 0, abilities: {0: 'Unseen Fist'}, baseSpecies: 'Urshifu', }, @@ -9117,6 +9117,12 @@ const SV_PATCH: {[name: string]: DeepPartial} = { weightkg: 223, abilities: {0: 'Poison Point'}, }, + Cresceidon: { + types: ['Water', 'Fairy'], + bs: {hp: 80, at: 32, df: 111, sa: 88, sd: 99, sp: 125}, + weightkg: 999.9, + abilities: {0: 'Multiscale'}, + }, Crocalor: { types: ['Fire'], bs: {hp: 81, at: 55, df: 78, sa: 90, sd: 58, sp: 49},