diff options
author | CtrlFootPrint <41695528+CtrlFootPrint@users.noreply.github.com> | 2021-12-05 21:32:25 +0000 |
---|---|---|
committer | CtrlFootPrint <41695528+CtrlFootPrint@users.noreply.github.com> | 2021-12-05 21:32:25 +0000 |
commit | 7c7d8e02f1956e07d4333929da65cbd51da95892 (patch) | |
tree | ebc1330dd2993d8e579981dc9bab16800847cb9d | |
parent | 8038d7260b732e09048d1b0ee616c15eca78c1cd (diff) |
Corrected variable name
-rw-r--r-- | Change-initial-PC-items.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Change-initial-PC-items.md b/Change-initial-PC-items.md index d965bc6..f8666f4 100644 --- a/Change-initial-PC-items.md +++ b/Change-initial-PC-items.md @@ -4,7 +4,7 @@ When the player starts a new adventure, the game gives the player one potion in Open `src/player_pc.c`. You will find the following lines: ``` -static const struct ItemSlot gNewGamePCItems[] = +static const struct ItemSlot sNewGamePCItems[] = { { ITEM_POTION, 1 }, { ITEM_NONE, 0 } @@ -14,7 +14,7 @@ static const struct ItemSlot gNewGamePCItems[] = In here you can add all items you want the player to have when they start a new game. For example, if we would want to start with both one pokeball and one potion, the code would be: ``` -static const struct ItemSlot gNewGamePCItems[] = +static const struct ItemSlot sNewGamePCItems[] = { { ITEM_POTION, 1 }, { ITEM_POKE_BALL, 1}, @@ -29,7 +29,7 @@ Which would look like: If we would want to start with 5 pokeballs instead, we can modify the number of the second value inside the brackets. For example: ``` -static const struct ItemSlot gNewGamePCItems[] = +static const struct ItemSlot sNewGamePCItems[] = { { ITEM_POTION, 1 }, { ITEM_POKE_BALL, 5}, |