Added function definition.

Eduardo Alvaro Quezada D'Ottone 2020-07-02 17:08:03 -04:00
parent 34e69a4c64
commit 680dcede74
1 changed files with 13 additions and 0 deletions

@ -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: 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 ```c
static void BufferStat(u8 *dst, s8 natureMod, u32 stat, u32 strId, u32 n) static void BufferStat(u8 *dst, s8 natureMod, u32 stat, u32 strId, u32 n)
{ {