Add MonCoods size macro

This commit is contained in:
GriffinR
2021-11-01 12:02:08 -04:00
parent 7940f121f6
commit 1548e902cd
6 changed files with 934 additions and 920 deletions

View File

@@ -21,6 +21,10 @@ struct MonCoords
u8 y_offset;
};
#define MON_COORDS_SIZE(width, height)(DIV_ROUND_UP(width, 8) << 4 | DIV_ROUND_UP(height, 8))
#define GET_MON_COORDS_WIDTH(size)((size >> 4) * 8)
#define GET_MON_COORDS_HEIGHT(size)((size & 0xF) * 8)
struct TrainerMonNoItemDefaultMoves
{
u16 iv;