Skip to content

Commit

Permalink
Add Meteorite form change functionality (rh-hideout#3770)
Browse files Browse the repository at this point in the history
Co-authored-by: Bassoonian <[email protected]>
  • Loading branch information
2 people authored and PCG06 committed Dec 26, 2023
1 parent f238fb7 commit a1a63d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/items.h
Original file line number Diff line number Diff line change
Expand Up @@ -9673,8 +9673,8 @@ const struct Item gItems[] =
.description = sMeteoriteDesc,
.importance = 1,
.pocket = POCKET_KEY_ITEMS,
.type = ITEM_USE_BAG_MENU,
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
.type = ITEM_USE_PARTY_MENU,
.fieldUseFunc = ItemUseOutOfBattle_FormChange,
},

[ITEM_MAGMA_EMBLEM] =
Expand Down
20 changes: 20 additions & 0 deletions src/data/pokemon/form_change_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,26 @@ static const struct FormChange sRayquazaFormChangeTable[] = {
{FORM_CHANGE_TERMINATOR},
};

static const struct FormChange sDeoxysNormalFormChangeTable[] = {
{FORM_CHANGE_ITEM_USE, SPECIES_DEOXYS_ATTACK, ITEM_METEORITE},
{FORM_CHANGE_TERMINATOR},
};

static const struct FormChange sDeoxysAttackFormChangeTable[] = {
{FORM_CHANGE_ITEM_USE, SPECIES_DEOXYS_DEFENSE, ITEM_METEORITE},
{FORM_CHANGE_TERMINATOR},
};

static const struct FormChange sDeoxysDefenseFormChangeTable[] = {
{FORM_CHANGE_ITEM_USE, SPECIES_DEOXYS_SPEED, ITEM_METEORITE},
{FORM_CHANGE_TERMINATOR},
};

static const struct FormChange sDeoxysSpeedFormChangeTable[] = {
{FORM_CHANGE_ITEM_USE, SPECIES_DEOXYS_NORMAL, ITEM_METEORITE},
{FORM_CHANGE_TERMINATOR},
};

#if P_GEN_4_POKEMON == TRUE
static const struct FormChange sBurmyFormChangeTable[] = {
{FORM_CHANGE_END_BATTLE_TERRAIN, SPECIES_BURMY_PLANT_CLOAK, BATTLE_TERRAIN_GRASS},
Expand Down

0 comments on commit a1a63d2

Please sign in to comment.