Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Sep 4, 2024
1 parent 35f1d40 commit 05cac58
Show file tree
Hide file tree
Showing 52 changed files with 510 additions and 394 deletions.
8 changes: 4 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pkmn/client",
"version": "0.6.25",
"version": "0.6.26",
"description": "Client battle engine for Pokémon Showdown",
"repository": "github:pkmn/ps",
"license": "MIT",
Expand All @@ -15,11 +15,11 @@
"build"
],
"dependencies": {
"@pkmn/data": "^0.9.12",
"@pkmn/protocol": "^0.6.25"
"@pkmn/data": "^0.9.13",
"@pkmn/protocol": "^0.6.26"
},
"devDependencies": {
"@pkmn/dex": "^0.9.12"
"@pkmn/dex": "^0.9.13"
},
"scripts": {
"lint": "eslint --cache src --ext ts",
Expand Down
10 changes: 5 additions & 5 deletions data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pkmn/data",
"version": "0.9.12",
"version": "0.9.13",
"description": "A forked implementation of the Pokémon Showdown client's data layer",
"repository": "github:pkmn/ps",
"license": "MIT",
Expand All @@ -16,12 +16,12 @@
"build"
],
"dependencies": {
"@pkmn/dex-types": "^0.9.12"
"@pkmn/dex-types": "^0.9.13"
},
"devDependencies": {
"@pkmn/dex": "^0.9.12",
"@pkmn/mods": "^0.9.12",
"@pkmn/sim": "^0.9.12",
"@pkmn/dex": "^0.9.13",
"@pkmn/mods": "^0.9.13",
"@pkmn/sim": "^0.9.13",
"@smogon/calc": "^0.10.0"
},
"scripts": {
Expand Down
20 changes: 20 additions & 0 deletions dex/data/aliases.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"arcrock": "Arceus-Rock",
"arcsteel": "Arceus-Steel",
"arcwater": "Arceus-Water",
"basculegionm": "Basculegion",
"basculinb": "Basculin-Blue-Striped",
"basculinblue": "Basculin-Blue-Striped",
"basculinbluestripe": "Basculin-Blue-Striped",
Expand Down Expand Up @@ -302,7 +303,11 @@
"galardash": "Rapidash-Galar",
"nddf": "Indeedee-F",
"zacianc": "Zacian-Crowned",
"zacianh": "Zacian",
"zacianhero": "Zacian",
"zamazentac": "Zamazenta-Crowned",
"zamazentah": "Zamazenta",
"zamazentahero": "Zamazenta",
"glowbro": "Slowbro-Galar",
"gbro": "Slowbro-Galar",
"glowking": "Slowking-Galar",
Expand Down Expand Up @@ -417,9 +422,21 @@
"ufof": "Pokestar UFO",
"ufoflying": "Pokestar UFO",
"vivillonmeadow": "Vivillon",
"xerneasactive": "Xerneas",
"indeedeem": "Indeedee",
"polteageistphony": "Polteageist",
"rockruffmidday": "Rockruff",
"sinisteaphony": "Sinistea",
"dudunsparcetwosegment": "Dudunsparce",
"enamorusi": "Enamorus",
"enamorusincarnate": "Enamorus",
"enamorusincarnation": "Enamorus",
"gimmighoulchest": "Gimmighoul",
"mausholdthree": "Maushold",
"oinkolognem": "Oinkologne",
"palafinzero": "Palafin",
"poltchageistcounterfeit": "Poltchageist",
"sinistchaunremarkable": "Sinistcha",
"squawkabillygreen": "Squawkabilly",
"squawkabillyg": "Squawkabilly",
"tealpon": "Ogerpon",
Expand Down Expand Up @@ -493,6 +510,7 @@
"boulder": "Iron Boulder",
"crown": "Iron Crown",
"icrown": "Iron Crown",
"alcremievanillacream": "Alcremie",
"alcremierubycream": "Alcremie",
"alcremiematchacream": "Alcremie",
"alcremiemintcream": "Alcremie",
Expand Down Expand Up @@ -575,6 +593,7 @@
"miniorblue": "Minior",
"miniorindigo": "Minior",
"miniorviolet": "Minior",
"unowna": "Unown",
"unownb": "Unown",
"unownc": "Unown",
"unownd": "Unown",
Expand Down Expand Up @@ -602,6 +621,7 @@
"unownz": "Unown",
"unownexclamation": "Unown",
"unownquestion": "Unown",
"tatsugiricurly": "Tatsugiri",
"tatsugiridroopy": "Tatsugiri",
"tatsugiristretchy": "Tatsugiri",
"pokestargiant2": "Pokestar Giant",
Expand Down
12 changes: 6 additions & 6 deletions dex/data/formats-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5287,7 +5287,7 @@
"charizardgmax": {"isNonstandard": "Past", "tier": "Illegal"},
"squirtle": {"tier": "LC"},
"wartortle": {"tier": "NFE"},
"blastoise": {"tier": "RU", "doublesTier": "(DUU)"},
"blastoise": {"tier": "RUBL", "doublesTier": "(DUU)"},
"blastoisemega": {"isNonstandard": "Past", "tier": "Illegal"},
"blastoisegmax": {"isNonstandard": "Past", "tier": "Illegal"},
"caterpie": {"isNonstandard": "Past", "tier": "Illegal"},
Expand Down Expand Up @@ -5347,7 +5347,7 @@
"clefable": {"tier": "OU", "doublesTier": "(DUU)"},
"vulpix": {"tier": "NFE", "doublesTier": "NFE"},
"vulpixalola": {"tier": "NFE"},
"ninetales": {"tier": "PU", "doublesTier": "DUU"},
"ninetales": {"tier": "ZU", "doublesTier": "DUU"},
"ninetalesalola": {"tier": "UU", "doublesTier": "DOU"},
"igglybuff": {"tier": "LC"},
"jigglypuff": {"tier": "NFE"},
Expand Down Expand Up @@ -5448,7 +5448,7 @@
"voltorb": {"tier": "LC"},
"voltorbhisui": {"tier": "LC"},
"electrode": {"tier": "ZU", "doublesTier": "(DUU)"},
"electrodehisui": {"tier": "ZU", "doublesTier": "(DUU)"},
"electrodehisui": {"tier": "ZUBL", "doublesTier": "(DUU)"},
"exeggcute": {"tier": "LC"},
"exeggutor": {"tier": "ZU", "doublesTier": "(DUU)"},
"exeggutoralola": {"tier": "ZU", "doublesTier": "(DUU)"},
Expand Down Expand Up @@ -5694,7 +5694,7 @@
"kirlia": {"tier": "NFE"},
"gardevoir": {"tier": "RU", "doublesTier": "(DUU)"},
"gardevoirmega": {"isNonstandard": "Past", "tier": "Illegal"},
"gallade": {"tier": "NU", "doublesTier": "(DUU)"},
"gallade": {"tier": "NUBL", "doublesTier": "(DUU)"},
"gallademega": {"isNonstandard": "Past", "tier": "Illegal"},
"surskit": {"tier": "LC"},
"masquerain": {"tier": "ZU", "doublesTier": "(DUU)"},
Expand Down Expand Up @@ -6282,7 +6282,7 @@
"mimikyu": {"tier": "RU", "doublesTier": "(DUU)"},
"mimikyutotem": {"isNonstandard": "Past", "tier": "Illegal"},
"mimikyubustedtotem": {"isNonstandard": "Past", "tier": "Illegal"},
"bruxish": {"tier": "ZU", "doublesTier": "(DUU)"},
"bruxish": {"tier": "ZUBL", "doublesTier": "(DUU)"},
"drampa": {"isNonstandard": "Past", "tier": "Illegal"},
"dhelmise": {"isNonstandard": "Past", "tier": "Illegal"},
"jangmoo": {"tier": "LC"},
Expand Down Expand Up @@ -6504,7 +6504,7 @@
"gimmighoulroaming": {"tier": "LC"},
"gholdengo": {"tier": "OU", "doublesTier": "DOU"},
"greattusk": {"tier": "OU", "doublesTier": "DUU"},
"brutebonnet": {"tier": "NU", "doublesTier": "DUU"},
"brutebonnet": {"tier": "PU", "doublesTier": "DUU"},
"sandyshocks": {"tier": "UU", "doublesTier": "(DUU)"},
"screamtail": {"tier": "PU", "doublesTier": "(DUU)"},
"fluttermane": {"tier": "Uber", "doublesTier": "DUber"},
Expand Down
2 changes: 2 additions & 0 deletions dex/data/learnsets.json
Original file line number Diff line number Diff line change
Expand Up @@ -158557,6 +158557,7 @@
"dreameater": ["7M", "4M"],
"earthquake": ["9M", "8M", "7M", "4M"],
"embargo": ["7M", "4M"],
"encore": ["9M"],
"endeavor": ["9M", "7T", "4T"],
"facade": ["9M", "8M", "7M", "4M"],
"fakeout": ["9L1", "8L1", "7L27", "4L35"],
Expand Down Expand Up @@ -158635,6 +158636,7 @@
"toxic": ["7M", "4M"],
"trick": ["9M", "9L1", "8M", "8L1", "7T", "4T"],
"trickroom": ["9M", "8M", "7M", "4M"],
"upperhand": ["9M"],
"uturn": ["9M", "8M", "7M", "4M"],
"willowisp": ["9M", "8M", "7M", "4M"]
}
Expand Down
2 changes: 1 addition & 1 deletion dex/data/moves.json
Original file line number Diff line number Diff line change
Expand Up @@ -9372,7 +9372,7 @@
"target": "normal",
"type": "Bug",
"desc": "Fails unless it is the user's first turn on the field.",
"shortDesc": "Hits first. First turn out only."
"shortDesc": "Nearly always goes first. First turn out only."
},
"fishiousrend": {
"num": 755,
Expand Down
23 changes: 19 additions & 4 deletions dex/data/species.json
Original file line number Diff line number Diff line change
Expand Up @@ -2950,7 +2950,22 @@
"evoItem": "Razor Claw",
"evoCondition": "during the day"
},
"enamorus": {"inherit": true, "abilities": {"0": "Healer", "H": "Contrary"}}
"enamorus": {
"inherit": true,
"abilities": {"0": "Healer", "H": "Contrary"}
},
"kitsunoh": {
"inherit": true,
"baseStats": {
"hp": 80,
"atk": 103,
"def": 85,
"spa": 55,
"spd": 80,
"spe": 110
},
"abilities": {"0": "Frisk", "1": "Limber", "H": "Iron Fist"}
}
},
"9": {
"bulbasaur": {
Expand Down Expand Up @@ -28855,13 +28870,13 @@
"types": ["Ghost", "Steel"],
"baseStats": {
"hp": 80,
"atk": 103,
"atk": 117,
"def": 85,
"spa": 55,
"spd": 80,
"spe": 110
"spe": 128
},
"abilities": {"0": "Frisk", "1": "Limber", "H": "Iron Fist"},
"abilities": {"0": "Frisk", "1": "Limber", "H": "Trace"},
"weightkg": 51,
"prevo": "Nohface",
"evoType": "trade",
Expand Down
4 changes: 2 additions & 2 deletions dex/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pkmn/dex",
"version": "0.9.12",
"version": "0.9.13",
"description": "A unification of Pokémon Showdown's client's and server's data layers",
"repository": "github:pkmn/ps",
"license": "MIT",
Expand All @@ -16,7 +16,7 @@
"build"
],
"dependencies": {
"@pkmn/dex-types": "^0.9.12"
"@pkmn/dex-types": "^0.9.13"
},
"scripts": {
"lint": "eslint --cache *.ts",
Expand Down
2 changes: 1 addition & 1 deletion dex/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pkmn/dex-types",
"version": "0.9.12",
"version": "0.9.13",
"types": "index.d.ts",
"description": "Common Pokémon Showdown Dex types shared by @pkmn/dex and @pkmn/sim",
"repository": "github:pkmn/ps",
Expand Down
2 changes: 1 addition & 1 deletion img/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pkmn/img",
"version": "0.2.31",
"version": "0.2.32",
"description": "Logic for displaying Pokémon Showdown's sprite/icon resources",
"repository": "github:pkmn/ps",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion img/src/data/data.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@pkmn/client": "file:../client",
"@pkmn/data": "file:../data",
"@pkmn/eslint-config": "^8.1.0",
"@pkmn/eslint-config": "^8.3.0",
"@pkmn/img": "file:../img",
"@pkmn/protocol": "file:../protocol",
"@pkmn/randoms": "file:../randoms",
Expand All @@ -14,10 +14,10 @@
"@pkmn/view": "file:../view",
"@typescript-eslint/eslint-plugin": "<=7",
"@typescript-eslint/parser": "<=7",
"cssnano": "^7.0.4",
"cssnano": "^7.0.5",
"eslint": "<=8",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jest": "^28.8.2",
"jest": "^29.7.0",
"minimist": "^1.2.8",
"parcel": "^2.12.0",
Expand Down
8 changes: 4 additions & 4 deletions mods/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pkmn/mods",
"version": "0.9.12",
"version": "0.9.13",
"description": "Support for non-standard mods to @pkmn/sim and @pkmn/dex",
"repository": "github:pkmn/ps",
"author": "Guangcong Luo <guangcongluo@gmail.com> (http://guangcongluo.com)",
Expand Down Expand Up @@ -114,11 +114,11 @@
"build"
],
"dependencies": {
"@pkmn/dex-types": "^0.9.12"
"@pkmn/dex-types": "^0.9.13"
},
"devDependencies": {
"@pkmn/dex": "^0.9.12",
"@pkmn/sim": "^0.9.12"
"@pkmn/dex": "^0.9.13",
"@pkmn/sim": "^0.9.13"
},
"scripts": {
"lint": "eslint --cache src --ext ts",
Expand Down
15 changes: 10 additions & 5 deletions mods/src/gen1stadium/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export const Scripts: ModdedBattleScriptsData = {
},
actions: {
inherit: true,
runMove(moveOrMoveName, pokemon, targetLoc, sourceEffect) {
runMove(moveOrMoveName, pokemon, targetLoc, options) {
let sourceEffect = options?.sourceEffect;
const move = this.dex.getActiveMove(moveOrMoveName);
const target = this.battle.getTarget(pokemon, move, targetLoc);
if (target?.subFainted) target.subFainted = null;
Expand Down Expand Up @@ -104,12 +105,14 @@ export const Scripts: ModdedBattleScriptsData = {
} else {
sourceEffect = move;
}
this.battle.actions.useMove(move, pokemon, target, sourceEffect);
this.battle.actions.useMove(move, pokemon, {target, sourceEffect});
},
// This function deals with AfterMoveSelf events.
// This leads with partial trapping moves shenanigans after the move has been used.
useMove(moveOrMoveName, pokemon, target, sourceEffect) {
const moveResult = this.useMoveInner(moveOrMoveName, pokemon, target, sourceEffect);
useMove(moveOrMoveName, pokemon, options) {
let sourceEffect = options?.sourceEffect;
let target = options?.target;
const moveResult = this.useMoveInner(moveOrMoveName, pokemon, {target, sourceEffect});

if (!sourceEffect && this.battle.effect.id) sourceEffect = this.battle.effect;
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
Expand Down Expand Up @@ -166,7 +169,9 @@ export const Scripts: ModdedBattleScriptsData = {
},
// This is the function that actually uses the move, running ModifyMove events.
// It uses the move and then deals with the effects after the move.
useMoveInner(moveOrMoveName, pokemon, target, sourceEffect) {
useMoveInner(moveOrMoveName, pokemon, options) {
let sourceEffect = options?.sourceEffect;
let target = options?.target;
if (!sourceEffect && this.battle.effect.id) sourceEffect = this.battle.effect;
const baseMove = this.battle.dex.moves.get(moveOrMoveName);
let move = this.battle.dex.getActiveMove(baseMove);
Expand Down
Loading

0 comments on commit 05cac58

Please sign in to comment.