Skip to content

Commit

Permalink
fix(docs): fix dead link to items docs
Browse files Browse the repository at this point in the history
  • Loading branch information
liana-p committed Jun 11, 2023
1 parent 2bb9526 commit 0c54914
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions docs/commands/all-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ description: This page contains a list of all the existing narrat commands

#### Items

| Command | Example | Description |
| --------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------- |
| [add_item](../features/inventory.md) | `add_item bread 1` | Adds an amount of an item to the player |
| [remove_item](../features/inventory.md) | `remove_item bread 1` | Removes an amount of an item |
| [has_item?](../features/inventory.md) | <p><br><code>if (has_item? bread 1):</code><br><code>"Let's eat bread!"</code><br></p> | Returns true if there is enough of the item |
| [item_amount?](../features/inventory.md) | `item_amount? bread // returns the amount of bread` | Returns the amount of an item the player has |
| [enable_interaction](../guides/items#interaction-tags) | `enable_interaction mytag` | Enables an interaction tag (see docs) |
| [`disable_interaction`](../guides/items#interaction-tags) | `disable_interaction mytag` | Disables an interaction tag (see docs) |
| Command | Example | Description |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------- |
| [add_item](../features/inventory.md) | `add_item bread 1` | Adds an amount of an item to the player |
| [remove_item](../features/inventory.md) | `remove_item bread 1` | Removes an amount of an item |
| [has_item?](../features/inventory.md) | <p><br><code>if (has_item? bread 1):</code><br><code>"Let's eat bread!"</code><br></p> | Returns true if there is enough of the item |
| [item_amount?](../features/inventory.md) | `item_amount? bread // returns the amount of bread` | Returns the amount of an item the player has |
| [enable_interaction](../features/items#interaction-tags) | `enable_interaction mytag` | Enables an interaction tag (see docs) |
| [`disable_interaction`](../features/items#interaction-tags) | `disable_interaction mytag` | Disables an interaction tag (see docs) |

#### Achievements

Expand Down
2 changes: 1 addition & 1 deletion docs/features/inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ main:

Items can also be used, see guide below:

[items.md](../guides/items.md)
[items.md](../features/items.md)

<!-- ![](<../.gitbook/assets/image (4) (1).png>) -->

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/features/viewport.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The `default` screen must always exist, as it is the first screen the game gets

Buttons can also have a `tag` property in their config to use interaction tag, the same way inventory items can. See the guide below for more info on interaction tags (in the interaction tags section):

[items.md](../guides/items.md)
[items.md](../features/items.md)

## Controlling screens and buttons in scripts

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ You will probably see npm complain about "**security issues**". Those are false
npm start
```

This should open a browser tab with the game running after a short build time. The game can be accessed at <a href="http://localhost:5173/" target="_blank" rel="noreferrer">http://localhost:5173/</a>
This should open a browser tab with the game running after a short build time. The game can be accessed at <a href="http://localhost:5173/" target="_blank" rel="noreferrer">localhost:5173</a>

The game is ready to edit!

Expand Down

0 comments on commit 0c54914

Please sign in to comment.