Skip to content

Commit

Permalink
recode of identity card
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysio4 committed Jan 30, 2025
1 parent 7f7c871 commit 8705b45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 128 deletions.
4 changes: 2 additions & 2 deletions data/mods/agoldenexperience/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
126 changes: 0 additions & 126 deletions data/mods/agoldenexperience/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8705b45

Please sign in to comment.