summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/battle_2.h1
-rw-r--r--include/battle_controllers.h4
-rw-r--r--include/battle_message.h2
-rw-r--r--include/battle_string_ids.h10
-rw-r--r--include/text.h2
5 files changed, 12 insertions, 7 deletions
diff --git a/include/battle_2.h b/include/battle_2.h
index ab5068446..677bf0505 100644
--- a/include/battle_2.h
+++ b/include/battle_2.h
@@ -15,6 +15,7 @@ void SwapTurnOrder(u8 id1, u8 id2);
void BattleTurnPassed(void);
void RunBattleScriptCommands_PopCallbacksStack(void);
void RunBattleScriptCommands(void);
+u32 sub_80397C4(u32 setId, u32 tableId);
void sub_8039E9C(struct Sprite *sprite);
extern const u8 gStatusConditionString_PoisonJpn[8];
diff --git a/include/battle_controllers.h b/include/battle_controllers.h
index 2281fdaff..eea544b55 100644
--- a/include/battle_controllers.h
+++ b/include/battle_controllers.h
@@ -39,8 +39,8 @@ struct MovePpInfo
struct ChooseMoveStruct
{
u16 moves[4];
- u8 ppNumbers[4];
- u8 ppWithBonusNumbers[4];
+ u8 currentPp[4];
+ u8 maxPp[4];
u16 species;
u8 monType1;
u8 monType2;
diff --git a/include/battle_message.h b/include/battle_message.h
index be2aca9b2..3b154c5a6 100644
--- a/include/battle_message.h
+++ b/include/battle_message.h
@@ -205,6 +205,8 @@ void BufferStringBattle(u16 stringID);
u32 BattleStringExpandPlaceholdersToDisplayedString(const u8* src);
u32 BattleStringExpandPlaceholders(const u8* src, u8* dst);
void sub_814F9EC(const u8* text, u8 arg1);
+void SetPpNumbersPaletteInMoveSelection(void);
+u8 GetCurrentPpToMaxPpState(u8 currentPp, u8 maxPp);
#define TEXT_BUFF_ARRAY_COUNT 16
diff --git a/include/battle_string_ids.h b/include/battle_string_ids.h
index 546cb2e46..f242284b0 100644
--- a/include/battle_string_ids.h
+++ b/include/battle_string_ids.h
@@ -12,6 +12,8 @@
#define STRINGID_USEDMOVE 4
#define STRINGID_BATTLEEND 5
+
+// todo: make some of those names less vague: attacker/target vs pkmn, etc.
#define STRINGID_TRAINER1LOSETEXT 12
#define STRINGID_PKMNGAINEDEXP 13
#define STRINGID_PKMNGREWTOLV 14
@@ -28,8 +30,8 @@
#define STRINGID_STATSWONTINCREASE2 25
#define STRINGID_AVOIDEDDAMAGE 26
#define STRINGID_ITDOESNTAFFECT 27
-#define STRINGID_PKMNFAINTED 28
-#define STRINGID_PKMNFAINTED2 29
+#define STRINGID_ATTACKERFAINTED 28
+#define STRINGID_TARGETFAINTED 29
#define STRINGID_PLAYERGOTMONEY 30
#define STRINGID_PLAYERWHITEOUT 31
#define STRINGID_PLAYERWHITEOUT2 32
@@ -143,7 +145,7 @@
#define STRINGID_PKMNTOOKFOE 140
#define STRINGID_PKMNREDUCEDPP 141
#define STRINGID_PKMNSTOLEITEM 142
-#define STRINGID_PKMNCANTESCAPE 143
+#define STRINGID_TARGETCANTESCAPENOW 143
#define STRINGID_PKMNFELLINTONIGHTMARE 144
#define STRINGID_PKMNLOCKEDINNIGHTMARE 145
#define STRINGID_PKMNLAIDCURSE 146
@@ -357,7 +359,7 @@
#define STRINGID_THEWALLSHATTERED 354
#define STRINGID_PKMNSXPREVENTSYSZ 355
#define STRINGID_PKMNSXCUREDITSYPROBLEM 356
-#define STRINGID_PKMNCANTESCAPE2 357
+#define STRINGID_ATTACKERCANTESCAPE 357
#define STRINGID_PKMNOBTAINEDX 358
#define STRINGID_PKMNOBTAINEDX2 359
#define STRINGID_PKMNOBTAINEDXYOBTAINEDZ 360
diff --git a/include/text.h b/include/text.h
index 217de0687..c09b41ad3 100644
--- a/include/text.h
+++ b/include/text.h
@@ -103,7 +103,7 @@ struct TextPrinterSubStruct
struct TextSubPrinter // TODO: Better name
{
- u8* current_text_offset;
+ const u8* current_text_offset;
u8 windowId;
u8 fontId;
u8 x;