Skip to content

Commit

Permalink
Added Slush Crush
Browse files Browse the repository at this point in the history
  • Loading branch information
EggMuncherSupreme committed Nov 4, 2023
1 parent 8bb4b84 commit ed3a2ee
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
67 changes: 67 additions & 0 deletions data/mods/gen9vgcgay/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,51 @@ export const Moves: {[k: string]: ModdedMoveData} = {
}
},
},
//Thick Fat makes weight-based moves deal maximum damage

Check failure on line 1653 in data/mods/gen9vgcgay/moves.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected exception block, space or tab after '//' in comment
heatcrash: {
inherit: true,
isNonstandard: null,
basePowerCallback(pokemon, target) {
const targetWeight = target.getWeight();
const pokemonWeight = pokemon.getWeight();
let bp;
if ((pokemonWeight >= targetWeight * 5) || pokemon.hasAbility('thickfat')) {
bp = 120;
} else if (pokemonWeight >= targetWeight * 4) {
bp = 100;
} else if (pokemonWeight >= targetWeight * 3) {
bp = 80;
} else if (pokemonWeight >= targetWeight * 2) {
bp = 60;
} else {
bp = 40;
}
this.debug('BP: ' + bp);
return bp;
},
},
heavyslam: {
inherit: true,
isNonstandard: null,
basePowerCallback(pokemon, target) {
const targetWeight = target.getWeight();
const pokemonWeight = pokemon.getWeight();
let bp;
if ((pokemonWeight >= targetWeight * 5) || pokemon.hasAbility('thickfat')) {
bp = 120;
} else if (pokemonWeight >= targetWeight * 4) {
bp = 100;
} else if (pokemonWeight >= targetWeight * 3) {
bp = 80;
} else if (pokemonWeight >= targetWeight * 2) {
bp = 60;
} else {
bp = 40;
}
this.debug('BP: ' + bp);
return bp;
},
},
// pp changes
flamethrower: {
inherit: true,
Expand Down Expand Up @@ -1770,6 +1815,28 @@ export const Moves: {[k: string]: ModdedMoveData} = {
inherit: true,
isNonstandard: null,
},
slushcrush: {
inherit: true,
isNonstandard: null,
basePowerCallback(pokemon, target) {
const targetWeight = target.getWeight();
const pokemonWeight = pokemon.getWeight();
let bp;
if ((pokemonWeight >= targetWeight * 5) || pokemon.hasAbility('thickfat')) {
bp = 120;
} else if (pokemonWeight >= targetWeight * 4) {
bp = 100;
} else if (pokemonWeight >= targetWeight * 3) {
bp = 80;
} else if (pokemonWeight >= targetWeight * 2) {
bp = 60;
} else {
bp = 40;
}
this.debug('BP: ' + bp);
return bp;
},
},
icerink: {
inherit: true,
isNonstandard: null,
Expand Down
41 changes: 41 additions & 0 deletions data/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22017,4 +22017,45 @@ export const Moves: {[moveid: string]: MoveData} = {
zMove: {boost: {spa: 1}},
contestType: "Beautiful",
},
slushcrush: {
num: 0,
accuracy: 100,
basePower: 0,
basePowerCallback(pokemon, target) {
const targetWeight = target.getWeight();
const pokemonWeight = pokemon.getWeight();
let bp;
if (pokemonWeight >= targetWeight * 5) {
bp = 120;
} else if (pokemonWeight >= targetWeight * 4) {
bp = 100;
} else if (pokemonWeight >= targetWeight * 3) {
bp = 80;
} else if (pokemonWeight >= targetWeight * 2) {
bp = 60;
} else {
bp = 40;
}
this.debug('BP: ' + bp);
return bp;
},
category: "Physical",
name: "Slush Crush",
pp: 10,
priority: 0,
flags: {contact: 1, protect: 1, mirror: 1, nonsky: 1},
onTryHit(target, pokemon, move) {
if (target.volatiles['dynamax']) {
this.add('-fail', pokemon, 'Dynamax');
this.attrLastMove('[still]');
return null;
}
},
secondary: null,
target: "normal",
type: "Ice",
zMove: {basePower: 160},
maxMove: {basePower: 130},
contestType: "Tough",
}
};
8 changes: 8 additions & 0 deletions data/text/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7526,4 +7526,12 @@ export const MovesText: {[k: string]: MoveText} = {
desc: "Frostbites the target, halving SpA and doing 1/16th each turn.",
shortDesc: "Frostbites the target.",
},
slushcrush: {
name: "Slush Crush",
desc: "The power of this move depends on (user's weight / target's weight), rounded down. Power is equal to 120 if the result is 5 or more, 100 if 4, 80 if 3, 60 if 2, and 40 if 1 or less. Damage doubles and no accuracy check is done if the target has used Minimize while active.",
shortDesc: "More power the heavier the user than the target.",
gen5: {
desc: "The power of this move depends on (user's weight / target's weight), rounded down. Power is equal to 120 if the result is 5 or more, 100 if 4, 80 if 3, 60 if 2, and 40 if 1 or less.",
},
},
};

0 comments on commit ed3a2ee

Please sign in to comment.