You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're no longer using the `Bystander`, `Monster`, `Carnivore`, `Herbivore` and `Vendor` tags! Open up `components.rs` and delete them. You'll also need to delete their registration in `main.rs` and `saveload_system.rs`. Once they are gone, you will still see errors in `player.rs`; why? We used to use these tags to determine if we should attack or trade-places with an NPC. We can replace the failing code in `try_move_player` quite easily. First, remove the references to these components from your `using` statements. Then replace these two lines:
At this point in the tutorial, Monster is still used in inventory_system.
From what I see in the code repository, checks on wether the target is a monster or not have been removed silently here and here.
It should be mentioned in the text of the tutorial before the part about removing Monster.
Also, should there be a replacement check here, like testing if the target as some attributes?
The text was updated successfully, but these errors were encountered:
rustrogueliketutorial/book/src/chapter_57.md
Line 1509 in 33872fe
At this point in the tutorial,
Monster
is still used ininventory_system
.From what I see in the code repository, checks on wether the target is a monster or not have been removed silently here and here.
It should be mentioned in the text of the tutorial before the part about removing
Monster
.Also, should there be a replacement check here, like testing if the target as some attributes?
The text was updated successfully, but these errors were encountered: