Skip to content

Commit

Permalink
Merge pull request #1998 from Sneed69/define-POKE_ICON_BASE_PAL_TAG
Browse files Browse the repository at this point in the history
Move POKE_ICON_BASE_PAL_TAG to a header
  • Loading branch information
GriffinRichards authored May 23, 2024
2 parents aa4fa92 + b592c6e commit 18f84b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions include/constants/pokemon_icon.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef GUARD_CONSTANTS_POKEMON_ICON_H
#define GUARD_CONSTANTS_POKEMON_ICON_H

#define POKE_ICON_BASE_PAL_TAG 56000

#endif // GUARD_CONSTANTS_POKEMON_ICON_H
3 changes: 1 addition & 2 deletions src/pokemon_icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
#include "palette.h"
#include "pokemon_icon.h"
#include "sprite.h"

#define POKE_ICON_BASE_PAL_TAG 56000
#include "constants/pokemon_icon.h"

#define INVALID_ICON_SPECIES SPECIES_OLD_UNOWN_J // Oddly specific, used when an icon should be a ?. Any of the 'old unown' would work

Expand Down
3 changes: 2 additions & 1 deletion src/pokemon_storage_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "constants/moves.h"
#include "constants/rgb.h"
#include "constants/songs.h"
#include "constants/pokemon_icon.h"

/*
NOTE: This file is large. Some general groups of functions have
Expand Down Expand Up @@ -215,7 +216,7 @@ enum {
#define BOXID_CANCELED 201

enum {
PALTAG_MON_ICON_0 = 56000,
PALTAG_MON_ICON_0 = POKE_ICON_BASE_PAL_TAG,
PALTAG_MON_ICON_1, // Used implicitly in CreateMonIconSprite
PALTAG_MON_ICON_2, // Used implicitly in CreateMonIconSprite
PALTAG_3, // Unused
Expand Down

0 comments on commit 18f84b7

Please sign in to comment.