Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions book/src/chapter_10.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ pub struct WantsToUseItem {
}
```

So now when you receive a `WantsToUseItem`, you can now that the *user* is the owning entity, the *item* is the `item` field, and it is aimed at `target` - if there is one (targeting doesn't make much sense for healing potions!).
So now when you receive a `WantsToUseItem`, you can know that the *user* is the owning entity, the *item* is the `item` field, and it is aimed at `target` - if there is one (targeting doesn't make much sense for healing potions!).

So now we can add another condition to our `ItemUseSystem`:
```rust
Expand Down Expand Up @@ -542,4 +542,4 @@ If this sees a `Confused` component, it decrements the timer. If the timer hits

Copyright (C) 2019, Herbert Wolverson.

---
---