Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mistake in chapter 50 #196

Open
marioferpa opened this issue Aug 25, 2022 · 0 comments
Open

Mistake in chapter 50 #196

marioferpa opened this issue Aug 25, 2022 · 0 comments

Comments

@marioferpa
Copy link

In the gui.rs fix section the code is:

let health = format!(" HP: {} / {} ", stats.hp, stats.max_hp);

But that doesn't work anymore at that point. It should be:

let health = format!(" HP: {} / {} ", stats.hit_points.current, stats.hit_points.max);

As seen in the finished code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant