summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacquietx37 <53120122+Jacquietx37@users.noreply.github.com>2019-08-14 09:17:18 +0200
committerJacquietx37 <53120122+Jacquietx37@users.noreply.github.com>2019-08-14 09:17:18 +0200
commit481b6dea4196430a468a2d2a426f3b7b86181692 (patch)
treef3e7c1059067ba2378c681aca3864ade3528815d
parentb21dfb9ba1c28dac918318f0efb48a62dfc643b2 (diff)
Better formatting
-rw-r--r--Change-initial-PC-items.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/Change-initial-PC-items.md b/Change-initial-PC-items.md
index 9bc98e2..d965bc6 100644
--- a/Change-initial-PC-items.md
+++ b/Change-initial-PC-items.md
@@ -3,20 +3,24 @@ When the player starts a new adventure, the game gives the player one potion in
### Edit the PC items
Open `src/player_pc.c`. You will find the following lines:
-`static const struct ItemSlot gNewGamePCItems[] =
+```
+static const struct ItemSlot gNewGamePCItems[] =
{
{ ITEM_POTION, 1 },
{ ITEM_NONE, 0 }
-};`
+};
+```
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 gNewGamePCItems[] =
{
{ ITEM_POTION, 1 },
{ ITEM_POKE_BALL, 1},
{ ITEM_NONE, 0 }
-};`
+};
+```
Which would look like:
@@ -24,12 +28,14 @@ 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 gNewGamePCItems[] =
{
{ ITEM_POTION, 1 },
{ ITEM_POKE_BALL, 5},
{ ITEM_NONE, 0 }
-};`
+};
+```
Which will turn out as: