Skip to content

Commit

Permalink
Merge pull request #14 from ShivaD173/debug
Browse files Browse the repository at this point in the history
Fixed failed test from commenting out origin item text
  • Loading branch information
ShivaD173 authored Sep 6, 2024
2 parents a3f04ff + 52fd63f commit b57a1c9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions data/mods/gen9vgcgay/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Items: import('../../../sim/dex-items').ModdedItemDataTable = {
// Origin forme items
lustrousglobe: {
inherit: true,
/*onResidualOrder: 29,
/* onResidualOrder: 29,
onResidual(pokemon) {
if (pokemon.baseSpecies.baseSpecies !== 'Palkia' || pokemon.transformed || !pokemon.hp) return;
if (pokemon.species.id === 'palkiaorigin' || pokemon.hp > pokemon.maxhp / 2) return;
Expand All @@ -46,13 +46,16 @@ export const Items: import('../../../sim/dex-items').ModdedItemDataTable = {
this.add('-activate', target, 'item: Lustrous Globe');
target.formeChange('Palkia-Origin', this.effect, true);
},
desc: "If the holder is Palkia, transforms into Origin forme at 1/2 HP.",
shortDesc: "Palkia: transforms at 1/2 HP.",
itemUser: ["Palkia-Origin"],
onBasePowerPriority: 15,
onBasePower() {},
forcedForme: "",
},
adamantcrystal: {
inherit: true,
/*onResidualOrder: 29,
/* onResidualOrder: 29,
onResidual(pokemon) {
if (pokemon.baseSpecies.baseSpecies !== 'Dialga' || pokemon.transformed || !pokemon.hp) return;
if (pokemon.species.id === 'dialgaorigin' || pokemon.hp > pokemon.maxhp / 2) return;
Expand All @@ -66,13 +69,16 @@ export const Items: import('../../../sim/dex-items').ModdedItemDataTable = {
this.add('-activate', target, 'item: Adamant Crystal');
target.formeChange('Dialga-Origin', this.effect, true);
},
desc: "If the holder is Dialga, transforms into Origin forme at 1/2 HP.",
shortDesc: "Dialga: transforms at 1/2 HP.",
itemUser: ["Dialga"],
onBasePowerPriority: 15,
onBasePower() {},
forcedForme: "",
},
griseouscore: {
inherit: true,
/*onResidualOrder: 29,
/* onResidualOrder: 29,
onResidual(pokemon) {
if (pokemon.baseSpecies.baseSpecies !== 'Giratina' || pokemon.transformed || !pokemon.hp) return;
if (pokemon.species.id === 'giratinaorigin' || pokemon.hp > pokemon.maxhp / 2) return;
Expand All @@ -86,6 +92,9 @@ export const Items: import('../../../sim/dex-items').ModdedItemDataTable = {
this.add('-activate', target, 'item: Griseous Core');
target.formeChange('Giratina-Origin', this.effect, true);
},
desc: "If the holder is Giratina, transforms into Origin forme at 1/2 HP.",
shortDesc: "Giratina: transforms at 1/2 HP.",
itemUser: ["Giratina"],
onBasePowerPriority: 15,
onBasePower() {},
forcedForme: "",
Expand Down

0 comments on commit b57a1c9

Please sign in to comment.