summaryrefslogtreecommitdiff
path: root/include/battle.h
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-07-29 15:51:08 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2018-07-29 15:51:08 +0200
commit9febcd3a0ad794f4531b56bb7d312b766261fc45 (patch)
treef7431ee72f6c9b60c2810c88edd5552212d528ee /include/battle.h
parent68145cd002e43a42194ce6fe8c9a5d390402e622 (diff)
Document a bit of atk47
Diffstat (limited to 'include/battle.h')
-rw-r--r--include/battle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/battle.h b/include/battle.h
index 073b16147..fae21908b 100644
--- a/include/battle.h
+++ b/include/battle.h
@@ -568,10 +568,11 @@ struct BattleStruct
}
#define GET_STAT_BUFF_ID(n)((n & 0xF)) // first four bits 0x1, 0x2, 0x4, 0x8
+#define GET_STAT_BUFF_VALUE2(n)((n & 0xF0))
#define GET_STAT_BUFF_VALUE(n)(((n >> 4) & 7)) // 0x10, 0x20, 0x40
#define STAT_BUFF_NEGATIVE 0x80 // 0x80, the sign bit
-#define SET_STAT_BUFF_VALUE(n)(((s8)(((s8)(n) << 4)) & 0xF0))
+#define SET_STAT_BUFF_VALUE(n)((((n) << 4) & 0xF0))
#define SET_STATCHANGER(statId, stage, goesDown)(gBattleScripting.statChanger = (statId) + (stage << 4) + (goesDown << 7))