Skip to content

Commit

Permalink
Add Aethernum (#172)
Browse files Browse the repository at this point in the history
Co-authored-by: Kris Johnson <[email protected]>
  • Loading branch information
WarriorGallade and KrisXV authored Apr 16, 2024
1 parent feccbc0 commit a3c6040
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
41 changes: 41 additions & 0 deletions data/mods/gen9ssb/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,47 @@ export const Abilities: {[k: string]: ModdedAbilityData} = {
gen: 9,
},

// Aethernum
theeminenceintheshadow: {
shortDesc: "Unaware + Supreme Overlord with half the boost.",
name: "The Eminence in the Shadow",
onAnyModifyBoost(boosts, pokemon) {
const unawareUser = this.effectState.target;
if (unawareUser === pokemon) return;
if (unawareUser === this.activePokemon && pokemon === this.activeTarget) {
boosts['def'] = 0;
boosts['spd'] = 0;
boosts['evasion'] = 0;
}
if (pokemon === this.activePokemon && unawareUser === this.activeTarget) {
boosts['atk'] = 0;
boosts['def'] = 0;
boosts['spa'] = 0;
boosts['accuracy'] = 0;
}
},
onStart(pokemon) {
if (pokemon.side.totalFainted) {
this.add('-activate', pokemon, 'ability: The Eminence in the Shadow');
const fallen = Math.min(pokemon.side.totalFainted, 5);
this.add('-start', pokemon, `fallen${fallen}`, '[silent]');
this.effectState.fallen = fallen;
}
},
onEnd(pokemon) {
this.add('-end', pokemon, `fallen${this.effectState.fallen}`, '[silent]');
},
onBasePowerPriority: 21,
onBasePower(basePower, attacker, defender, move) {
if (this.effectState.fallen) {
const powMod = [20, 21, 22, 23, 24, 25];
this.debug(`Supreme Overlord boost: ${powMod[this.effectState.fallen]}/25`);
return this.chainModify([powMod[this.effectState.fallen], 20]);
}
},
flags: {breakable: 1},
},

// Akir
takeitslow: {
shortDesc: "Regenerator + Psychic Surge.",
Expand Down
12 changes: 12 additions & 0 deletions data/mods/gen9ssb/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ export const Conditions: {[k: string]: ModdedConditionData & {innateName?: strin
this.add(`c:|${getName('Aelita')}|Well, I hope the Lyoko Warriors are at least well equipped.`);
},
},
aethernum: {
noCopy: true,
onStart() {
this.add(`c:|${getName('Aethernum')}|We are the Shadow Garden, and your time has come. Prepare yourself`);
},
onSwitchOut() {
this.add(`c:|${getName('Aethernum')}|Better play the side character for now, i'll wait a more favorable opportunity`);
},
onFaint() {
this.add(`c:|${getName('Aethernum')}|There are important things that i have to attend, i don't have any more time for you`);
},
},
akir: {
noCopy: true,
onStart(pokemon) {
Expand Down
31 changes: 31 additions & 0 deletions data/mods/gen9ssb/moves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,37 @@ export const Moves: {[k: string]: ModdedMoveData} = {
type: "Steel",
},

// Aethernum
iamatomic: {
accuracy: 100,
basePower: 140,
category: "Special",
shortDesc: "Lowers user's Def, Sp. Atk and Speed by 2 stages.",
name: "I. AM. ATOMIC.",
gen: 9,
pp: 5,
priority: 0,
flags: {},
onPrepareHit(target, source, move) {
this.add('-anim', source, 'Trick Room', target);
this.add('-anim', source, 'Clangerous Soul', source);
this.add('-anim', source, 'Flash', target);
this.add(`c:|${getName((source.illusion || source).name)}|I`);
this.add(`c:|${getName((source.illusion || source).name)}|AM`);
this.add(`c:|${getName((source.illusion || source).name)}|ATOMIC.`);
},
self: {
boosts: {
spe: -2,
def: -2,
spa: -2,
},
},
secondary: null,
target: "normal",
type: "Ghost",
},

// Akir
freeswitchbutton: {
accuracy: true,
Expand Down
6 changes: 6 additions & 0 deletions data/mods/gen9ssb/pokedex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export const Pokedex: {[k: string]: ModdedSpeciesData} = {
abilities: {0: "Fortified Metal"},
},

// Aethernum
giratinaorigin: {
inherit: true,
abilities: {0: "The Eminince in the Shadow"},
},

// Akir
slowbro: {
inherit: true,
Expand Down
6 changes: 6 additions & 0 deletions data/mods/gen9ssb/random-teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export const ssbSets: SSBSets = {
signatureMove: 'Smelt',
evs: {hp: 252, atk: 4, spd: 252}, nature: 'Careful', teraType: 'Steel', shiny: true,
},
Aethernum: {
species: 'Giratina-Origin', ability: 'The Eminence in the Shadow', item: 'Griseous Core', gender: '',
moves: ['Fiery Wrath', 'Moonlight', 'Dragon Energy'],
signatureMove: 'I. AM. ATOMIC.',
evs: {atk: 4, spa: 252, spe: 252}, nature: 'Hasty', teraType: 'Dark', shiny: true,
},
Akir: {
species: 'Slowbro', ability: 'Take it Slow', item: 'Heavy-Duty Boots', gender: 'M',
moves: ['Future Sight', 'Slack Off', 'Steam Eruption'],
Expand Down

0 comments on commit a3c6040

Please sign in to comment.