diff --git a/.gitattributes b/.gitattributes index ab105b91..47d48061 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/src/pkg/data/mapping.json b/src/pkg/data/mapping.json new file mode 100644 index 00000000..80d4766e --- /dev/null +++ b/src/pkg/data/mapping.json @@ -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"] + ] + } + ] +} \ No newline at end of file