{ "version": 3, "sources": ["../../../../../data/mods/gennext/items.ts"], "sourcesContent": ["export const Items: {[k: string]: ModdedItemData} = {\n\tburndrive: {\n\t\tinherit: true,\n\t\tonBasePower(basePower, user, target, move) {},\n\t\tdesc: \"Changes Genesect to Genesect-Burn.\",\n\t},\n\tchilldrive: {\n\t\tinherit: true,\n\t\tonBasePower(basePower, user, target, move) {},\n\t\tdesc: \"Changes Genesect to Genesect-Chill.\",\n\t},\n\tdousedrive: {\n\t\tinherit: true,\n\t\tonBasePower(basePower, user, target, move) {},\n\t\tdesc: \"Changes Genesect to Genesect-Douse.\",\n\t},\n\tshockdrive: {\n\t\tinherit: true,\n\t\tonBasePower(basePower, user, target, move) {},\n\t\tdesc: \"Changes Genesect to Genesect-Shock.\",\n\t},\n\twidelens: {\n\t\tinherit: true,\n\t\tonSourceModifyAccuracy(accuracy) {\n\t\t\tif (typeof accuracy === 'number') {\n\t\t\t\treturn accuracy * 1.3;\n\t\t\t}\n\t\t},\n\t\tdesc: \"The accuracy of attacks by the holder is 1.6x.\",\n\t},\n\tzoomlens: {\n\t\tinherit: true,\n\t\tonSourceModifyAccuracy(accuracy, target) {\n\t\t\tif (typeof accuracy === 'number' && !this.queue.willMove(target)) {\n\t\t\t\tthis.debug('Zoom Lens boosting accuracy');\n\t\t\t\treturn accuracy * 1.6;\n\t\t\t}\n\t\t},\n\t\tdesc: \"The accuracy of attacks by the holder is 1.6x if it moves after its target.\",\n\t},\n\tbigroot: {\n\t\tinherit: true,\n\t\tonAfterMoveSecondarySelf(source, target) {\n\t\t\tif (source.hasType('Grass')) {\n\t\t\t\tthis.heal(source.lastDamage / 8, source);\n\t\t\t}\n\t\t},\n\t\tonResidualOrder: 5,\n\t\tonResidualSubOrder: 2,\n\t\tonResidual(pokemon) {\n\t\t\tif (pokemon.hasType('Grass')) {\n\t\t\t\tthis.heal(pokemon.baseMaxhp / 16);\n\t\t\t}\n\t\t},\n\t\tdesc: \"Holder gains 1.3x HP from draining/Aqua Ring/Ingrain/Leech Seed/Strength Sap; If the user is a Grass type, the holder heals 1/16 of its max HP every turn, and for every damaging move the holder uses 1/8th of the damage dealt is restored.\",\n\t\tshortDesc: \"Holder gains 1.3x from most healing moves; if the user is a Grass type, Leftovers & Shell Bell effects occur.\",\n\t},\n\tblacksludge: {\n\t\tinherit: true,\n\t\tonResidualOrder: 5,\n\t\tonResidualSubOrder: 2,\n\t\tonResidual(pokemon) {\n\t\t\tif (pokemon.hasType('Poison')) {\n\t\t\t\tthis.heal(pokemon.baseMaxhp / (pokemon.getTypes().length === 1 ? 8 : 16));\n\t\t\t} else {\n\t\t\t\tthis.damage(pokemon.baseMaxhp / 8);\n\t\t\t}\n\t\t},\n\t\tdesc: \"Each turn, if holder is a Poison type, restores 1/16 max HP; loses 1/8 if not. Pure Poison types restore 1/8 max HP.\",\n\t},\n\tfocusband: {\n\t\tinherit: true,\n\t\tonDamage(damage, target, source, effect) {\n\t\t\tconst types = target.getTypes();\n\t\t\tif (types.length === 1 && types[0] === 'Fighting' &&\n\t\t\t\t\teffect && effect.effectType === 'Move' &&\n\t\t\t\t\ttarget.useItem()) {\n\t\t\t\tif (damage >= target.hp) {\n\t\t\t\t\tthis.add(\"-message\", target.name + \" held on using its Focus Band!\");\n\t\t\t\t\treturn target.hp - 1;\n\t\t\t\t} else {\n\t\t\t\t\tthis.add(\"-message\", target.name + \"'s Focus Band broke!\");\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tdesc: \"Breaks on first hit, but allows pure Fighting types to survive that hit with 1 HP.\",\n\t},\n\twiseglasses: {\n\t\tinherit: true,\n\t\tonBasePower(basePower, user, target, move) {\n\t\t\tif (move.category === 'Special') {\n\t\t\t\tconst types = user.getTypes();\n\t\t\t\tif (types.length === 1 && types[0] === 'Psychic') {\n\t\t\t\t\treturn basePower * 1.2;\n\t\t\t\t}\n\t\t\t\treturn basePower * 1.1;\n\t\t\t}\n\t\t},\n\t\tdesc: \"Holder's special attacks have 1.1x power. Pure Psychic types special attacks have 1.2x power.\",\n\t\tshortDesc: \"Holder's SpA have 1.1x power. Pure Psychic types SpA have 1.2x power.\",\n\t},\n\tmuscleband: {\n\t\tinherit: true,\n\t\tonBasePower(basePower, user, target, move) {\n\t\t\tif (move.category === 'Physical') {\n\t\t\t\tconst types = user.getTypes();\n\t\t\t\tif (types.length === 1 && types[0] === 'Fighting') {\n\t\t\t\t\treturn basePower * 1.2;\n\t\t\t\t}\n\t\t\t\treturn basePower * 1.1;\n\t\t\t}\n\t\t},\n\t\tdesc: \"Holder's physical attacks have 1.1x power. Pure Fighting types physical attacks have 1.2x power.\",\n\t\tshortDesc: \"Holder's Atk have 1.1x power. Pure Fighting types Atk have 1.2x power.\",\n\t},\n\tstick: {\n\t\tinherit: true,\n\t\t// The Stick is a stand-in for a number of pokemon-exclusive items\n\t\t// introduced with Gen Next\n\t\tonModifyCritRatio(critRatio, user) {\n\t\t\tif (user.species.id === 'farfetchd') {\n\t\t\t\treturn critRatio + 2;\n\t\t\t}\n\t\t},\n\t\tonModifyDef(def, pokemon) {\n\t\t\tif (pokemon.species.name === 'Shuckle') {\n\t\t\t\treturn def * 1.5;\n\t\t\t}\n\t\t},\n\t\tonModifySpA(spa, pokemon) {\n\t\t\tif (pokemon.species.name === 'Unown') {\n\t\t\t\treturn spa * 2;\n\t\t\t}\n\t\t},\n\t\tonModifySpD(spd, pokemon) {\n\t\t\tif (pokemon.species.name === 'Unown') {\n\t\t\t\treturn spd * 2;\n\t\t\t}\n\t\t\tif (pokemon.species.name === 'Shuckle') {\n\t\t\t\treturn spd * 1.5;\n\t\t\t}\n\t\t},\n\t\tonModifySpe(spe, pokemon) {\n\t\t\tif (pokemon.species.name === 'Unown') {\n\t\t\t\treturn spe * 2;\n\t\t\t}\n\t\t},\n\t\tonFoeBasePower(basePower, attacker, defender, move) {\n\t\t\tconst GossamerWingUsers = [\"Butterfree\", \"Masquerain\", \"Beautifly\", \"Mothim\", \"Vivillon\"];\n\t\t\tif (GossamerWingUsers.includes(defender.species.name)) {\n\t\t\t\tif (['Rock', 'Electric', 'Ice'].includes(move.type)) {\n\t\t\t\t\tthis.add('-message', \"The attack was weakened by GoassamerWing!\");\n\t\t\t\t\treturn basePower / 2;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tonDamage(damage, defender, attacker, effect) {\n\t\t\tconst GossamerWingUsers = [\"Butterfree\", \"Masquerain\", \"Beautifly\", \"Mothim\", \"Vivillon\"];\n\t\t\tif (GossamerWingUsers.includes(defender.species.name)) {\n\t\t\t\tif (effect && effect.id === 'stealthrock') {\n\t\t\t\t\treturn damage / 2;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tonAfterMoveSecondarySelf(source, target, move) {\n\t\t\tconst GossamerWingUsers = [\"Butterfree\", \"Masquerain\", \"Beautifly\", \"Mothim\", \"Vivillon\"];\n\t\t\tif (move.effectType === 'Move' && move.category === 'Status' && GossamerWingUsers.includes(source.species.name)) {\n\t\t\t\tthis.heal(source.baseMaxhp / 16);\n\t\t\t}\n\t\t},\n\t\t// onResidual(pokemon) {\n\t\t// \tif (pokemon.species.name === 'Shuckle') {\n\t\t// \t\tthis.heal(this.clampIntRange(pokemon.maxhp / 16, 1));\n\t\t// \t}\n\t\t// },\n\t\tdesc: \"Raises Farfetch\\u2019d's critical hit rate two stages.\",\n\t},\n};\n"], "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,QAAuC;AAAA,EACnD,WAAW;AAAA,IACV,SAAS;AAAA,IACT,YAAY,WAAW,MAAM,QAAQ,MAAM;AAAA,IAAC;AAAA,IAC5C,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,YAAY,WAAW,MAAM,QAAQ,MAAM;AAAA,IAAC;AAAA,IAC5C,MAAM;AAAA,EACP;AAAA,EACA,YAAY;AAAA,IACX,SAAS;AAAA,IACT,YAAY,WAAW,MAAM,QAAQ,MAAM;AAAA,IAAC;AAAA,IAC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