From 8705b451b0fb62e1393ce4c0736ad1ed71791d75 Mon Sep 17 00:00:00 2001 From: Lysio4 Date: Thu, 30 Jan 2025 13:22:15 +0100 Subject: [PATCH] recode of identity card --- data/mods/agoldenexperience/items.ts | 4 +- data/mods/agoldenexperience/moves.ts | 126 --------------------------- 2 files changed, 2 insertions(+), 128 deletions(-) diff --git a/data/mods/agoldenexperience/items.ts b/data/mods/agoldenexperience/items.ts index 6666828ec9..66dc824b7d 100644 --- a/data/mods/agoldenexperience/items.ts +++ b/data/mods/agoldenexperience/items.ts @@ -712,8 +712,8 @@ export const Items: {[itemid: string]: ModdedItemData} = { }, identitycard: { name: "Identity Card", - shortDesc: "Holder's typing cannot be changed by any move. Doesn't work on abilities like Protean or Color Change.", - // Edited in moves.ts + shortDesc: "Holder's typing cannot be changed by any move.", + // Edited in scripts.ts num: -46, gen: 9, }, diff --git a/data/mods/agoldenexperience/moves.ts b/data/mods/agoldenexperience/moves.ts index 1c1ece250a..8b7e50102d 100644 --- a/data/mods/agoldenexperience/moves.ts +++ b/data/mods/agoldenexperience/moves.ts @@ -3117,132 +3117,6 @@ export const Moves: { [k: string]: ModdedMoveData; } = { this.debug('BP: ' + move.basePower); }, }, - - // Identity Card field - // soak: { - // inherit: true, - // onHit(target) { - // if (target.getTypes().join() === 'Water' || !target.setType('Water') || target.hasItem('identitycard')) { - // // Soak should animate even when it fails. - // // Returning false would suppress the animation. - // this.add('-fail', target); - // return null; - // } - // this.add('-start', target, 'typechange', 'Water'); - // }, - // }, - // trickortreat: { - // inherit: true, - // onHit(target) { - // if (target.hasType('Ghost')) return false; - // if (!target.addType('Ghost')) return false; - // if (target.hasItem('identitycard')) return false; - // this.add('-start', target, 'typeadd', 'Ghost', '[from] move: Trick-or-Treat'); - - // if (target.side.active.length === 2 && target.position === 1) { - // // Curse Glitch - // const action = this.queue.willMove(target); - // if (action && action.move.id === 'curse') { - // action.targetLoc = -1; - // } - // } - // }, - // }, - // conversion: { - // inherit: true, - // onHit(target) { - // const type = this.dex.moves.get(target.moveSlots[0].id).type; - // if (target.hasType(type) || !target.setType(type) || target.hasItem('identitycard')) return false; - // this.add('-start', target, 'typechange', type); - // }, - // }, - // conversion2: { - // inherit: true, - // onHit(target, source) { - // if (!target.lastMoveUsed) { - // return false; - // } - // const possibleTypes = []; - // const attackType = target.lastMoveUsed.type; - // for (const type of this.dex.types.names()) { - // if (source.hasType(type)) continue; - // const typeCheck = this.dex.types.get(type).damageTaken[attackType]; - // if (typeCheck === 2 || typeCheck === 3) { - // possibleTypes.push(type); - // } - // } - // if (!possibleTypes.length) { - // return false; - // } - // const randomType = this.sample(possibleTypes); - - // if (source.hasItem('identitycard')) return false; - // if (!source.setType(randomType)) return false; - // this.add('-start', source, 'typechange', randomType); - // }, - // }, - // magicpowder: { - // inherit: true, - // onHit(target) { - // if (target.getTypes().join() === 'Psychic' || !target.setType('Psychic') || target.hasItem('identitycard')) return false; - // this.add('-start', target, 'typechange', 'Psychic'); - // }, - // }, - // reflecttype: { - // inherit: true, - // onHit(target, source) { - // if (source.species && (source.species.num === 493 || source.species.num === 773)) return false; - // if (source.terastallized) return false; - // if (source.hasItem('identitycard')) return false; - // const oldApparentType = source.apparentType; - // let newBaseTypes = target.getTypes(true).filter(type => type !== '???'); - // if (!newBaseTypes.length) { - // if (target.addedType) { - // newBaseTypes = ['Normal']; - // } else { - // return false; - // } - // } - // this.add('-start', source, 'typechange', '[from] move: Reflect Type', '[of] ' + target); - // source.setType(newBaseTypes); - // source.addedType = target.addedType; - // source.knownType = target.isAlly(source) && target.knownType; - // if (!source.knownType) source.apparentType = oldApparentType; - // }, - // }, - // forestscurse: { - // inherit: true, - // onHit(target) { - // if (target.hasType('Grass')) return false; - // if (!target.addType('Grass')) return false; - // if (target.hasItem('identitycard')) return false; - // this.add('-start', target, 'typeadd', 'Grass', '[from] move: Forest\'s Curse'); - // }, - // }, - // doubleshock: { - // inherit: true, - // self: { - // onHit(pokemon) { - // if (!pokemon.hasItem('identitycard')) { - // pokemon.setType(pokemon.getTypes(true).map(type => type === "Electric" ? "???" : type)); - // this.add('-start', pokemon, 'typechange', pokemon.getTypes().join('/'), '[from] move: Double Shock'); - // } - // }, - // }, - // }, - // burnup: { - // inherit: true, - // isNonstandard: null, - // self: { - // onHit(pokemon) { - // if (!pokemon.hasItem('identitycard')) { - // pokemon.setType(pokemon.getTypes(true).map(type => type === "Fire" ? "???" : type)); - // this.add('-start', pokemon, 'typechange', pokemon.getTypes().join('/'), '[from] move: Burn Up'); - // } - // }, - // }, - // }, - // Karma field wish: { inherit: true,