Skip to content

Commit

Permalink
start working on mapping file to replace hardcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Oct 26, 2023
1 parent c544e10 commit 028ab16
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
*.zig text=auto eol=lf

# GitHub
src/data/* linguist-generated
src/lib/gen1/data/* linguist-generated
src/lib/gen2/data/* linguist-generated
src/lib/gen2/generated.zig linguist-generated
src/pkg/data/* linguist-generated
src/data/* linguist-generated=true
src/lib/gen1/data/* linguist-generated=true
src/lib/gen2/data/* linguist-generated=true
src/lib/gen2/generated.zig linguist-generated=true
src/pkg/data/* linguist-generated=true
src/pkg/data/mapping.json linguist-generated=false
101 changes: 101 additions & 0 deletions src/pkg/data/mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"base": {
"Cant": [
"slp",
"frz",
"par",
"partiallytrapped",
"flinch",
"recharge",
"nopp",
"Attract"
],
"Damage": [
"",
"psn",
"brn",
"confusion",
"Leech Seed",
"Recoil"
],
"Boosts": [
"atk",
"atk",
"def",
"spe",
"spa",
"spd",
"accuracy",
"evasion"
],
"Fail": [
"",
"slp",
"psn",
"brn",
"frz",
"par",
"tox",
"move: Substitute",
"move: Substitute"
],
"Activate": [
"Bide",
"confusion",
"move: Haze",
"move: Mist",
"move: Struggle",
"move: Substitute",
"move: Splash"
],
"Start": [
"Bide",
"confusion",
"confusion",
"move: Focus Energy",
"move: Leech Seed",
"Light Screen",
"Mist",
"Reflect",
"Substitute",
"typechange",
"Disable",
"Mimic"
],
"End": [
"Disable",
"confusion",
"Bide",
"Substitute",
"Disable",
"confusion",
"Mist",
"move: Focus Energy",
"move: Leech Seed",
"Toxic counter",
"Light Screen",
"Reflect",
"move: Bide"
],
"Side": [
"Safeguard",
"Reflect",
"move: Light Screen",
"Spikes"
]
},
"diffs": [
{
"Activate": [
[0, "move: Bide"]
],
"Start": [
[0, "move: Bide"]
],
"End": [
[0, "move: Disable"],
[2, "move: Bide"]
]
}
]
}

0 comments on commit 028ab16

Please sign in to comment.