diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-11-01 12:02:08 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-11-08 09:41:23 -0500 |
commit | 1548e902cd6d9515362b171ae9aa5ff36c60b230 (patch) | |
tree | 7dc83e8315dedd8a7de741538956c786a0d2db39 /include/data.h | |
parent | 7940f121f66bb0ebe0932bc642c3d9b4015f79a7 (diff) |
Add MonCoods size macro
Diffstat (limited to 'include/data.h')
-rw-r--r-- | include/data.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/data.h b/include/data.h index 374435cba..2d3619e67 100644 --- a/include/data.h +++ b/include/data.h @@ -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; |