From 680dcede740fc8c678111e61e6bf81b1d6eb4d93 Mon Sep 17 00:00:00 2001 From: Eduardo Alvaro Quezada D'Ottone Date: Thu, 2 Jul 2020 17:08:03 -0400 Subject: [PATCH] Added function definition. --- Colored-stats-by-nature-in-summary-screen.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Colored-stats-by-nature-in-summary-screen.md b/Colored-stats-by-nature-in-summary-screen.md index 9759255..b74a53a 100644 --- a/Colored-stats-by-nature-in-summary-screen.md +++ b/Colored-stats-by-nature-in-summary-screen.md @@ -11,6 +11,19 @@ All of our changes will be in [src/pokemon_summary_screen.c](..blob/master/src/p We will write a new function that accepts the nature modification as a parameter and colors the stats accordingly. Add this function: +```diff +//... + static void SetMainMoveSelectorColor(u8 whichColor); + static void KeepMoveSelectorVisible(u8 firstSpriteId); ++ static void BufferStat(u8 *dst, s8 natureMod, u32 stat, u32 strId, u32 n); + + // const rom data + #include "data/text/move_descriptions.h" + #include "data/text/nature_names.h" +//... + +``` + ```c static void BufferStat(u8 *dst, s8 natureMod, u32 stat, u32 strId, u32 n) {