Skip to content

Commit

Permalink
Add Indigo Disk item data (rh-hideout#3854)
Browse files Browse the repository at this point in the history
  • Loading branch information
kittenchilly committed Dec 28, 2023
1 parent bc37377 commit 1e958ad
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 2 deletions.
18 changes: 18 additions & 0 deletions graphics/items/icon_palettes/metal_alloy.pal
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
JASC-PAL
0100
15
0 0 0
249 253 255
224 232 243
169 163 177
136 130 156
178 194 220
123 146 180
162 164 202
153 208 247
85 96 152
136 150 213
186 212 247
90 118 181
154 195 255
49 49 49
Binary file added graphics/items/icons/metal_alloy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions include/constants/items.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,8 @@
#define ITEM_SWIFT_MOCHI 811
#define ITEM_FRESH_START_MOCHI 812
#define ITEM_GLIMMERING_CHARM 813
#define ITEM_814 814 // TWV0YWwgQWxsb3k=
#define ITEM_815 815 // U3RlbGxhciBUZXJhIFNoYXJk
#define ITEM_METAL_ALLOY 814
#define ITEM_STELLAR_TERA_SHARD 815

#define ITEMS_COUNT 816
#define ITEM_FIELD_ARROW ITEMS_COUNT
Expand Down
2 changes: 2 additions & 0 deletions include/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,8 @@ extern const u32 gItemIcon_UnremarkableTeacup[];
extern const u32 gItemIconPalette_UnremarkableTeacup[];
extern const u32 gItemIcon_MasterpieceTeacup[];
extern const u32 gItemIconPalette_MasterpieceTeacup[];
extern const u32 gItemIcon_MetalAlloy[];
extern const u32 gItemIconPalette_MetalAlloy[];
// Nectars
extern const u32 gItemIcon_RedNectar[];
extern const u32 gItemIconPalette_RedNectar[];
Expand Down
3 changes: 3 additions & 0 deletions src/data/graphics/items.h
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ const u32 gItemIconPalette_UnremarkableTeacup[] = INCBIN_U32("graphics/items/ico
const u32 gItemIcon_MasterpieceTeacup[] = INCBIN_U32("graphics/items/icons/masterpiece_teacup.4bpp.lz");
const u32 gItemIconPalette_MasterpieceTeacup[] = INCBIN_U32("graphics/items/icon_palettes/masterpiece_teacup.gbapal.lz");

const u32 gItemIcon_MetalAlloy[] = INCBIN_U32("graphics/items/icons/metal_alloy.4bpp.lz");
const u32 gItemIconPalette_MetalAlloy[] = INCBIN_U32("graphics/items/icon_palettes/metal_alloy.gbapal.lz");

// Nectars

const u32 gItemIcon_RedNectar[] = INCBIN_U32("graphics/items/icons/red_nectar.4bpp.lz");
Expand Down
2 changes: 2 additions & 0 deletions src/data/item_icon_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,8 @@ const u32 *const gItemIconTable[ITEMS_COUNT + 1][2] =
[ITEM_SWIFT_MOCHI] = {gItemIcon_Mochi, gItemIconPalette_SwiftMochi},
[ITEM_FRESH_START_MOCHI] = {gItemIcon_Mochi, gItemIconPalette_FreshStartMochi},
[ITEM_GLIMMERING_CHARM] = {gItemIcon_GlimmeringCharm, gItemIconPalette_GlimmeringCharm},
[ITEM_METAL_ALLOY] = {gItemIcon_MetalAlloy, gItemIconPalette_MetalAlloy},
[ITEM_STELLAR_TERA_SHARD] = {gItemIcon_QuestionMark, gItemIconPalette_QuestionMark}, //{gItemIcon_TeraShard, gItemIconPalette_StellarTeraShard},
// Return to field arrow
[ITEMS_COUNT] = {gItemIcon_ReturnToFieldArrow, gItemIconPalette_ReturnToFieldArrow},
};
22 changes: 22 additions & 0 deletions src/data/items.h
Original file line number Diff line number Diff line change
Expand Up @@ -11377,4 +11377,26 @@ const struct Item gItems[] =
.type = ITEM_USE_BAG_MENU,
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
},

[ITEM_METAL_ALLOY] =
{
.name = _("Metal Alloy"),
.price = 6000,
.description = COMPOUND_STRING("A peculiar metal\n"
"that makes certain\n"
"Pokémon evolve."),
.pocket = POCKET_ITEMS,
.type = ITEM_USE_PARTY_MENU,
.fieldUseFunc = ItemUseOutOfBattle_EvolutionStone,
},

[ITEM_STELLAR_TERA_SHARD] =
{
.name = _("StllrTeraShrd"),
.price = 0,
.description = sTeraShardDesc,
.pocket = POCKET_ITEMS,
.type = ITEM_USE_BAG_MENU,
.fieldUseFunc = ItemUseOutOfBattle_CannotUse,
},
};

0 comments on commit 1e958ad

Please sign in to comment.