amethyst / amethyst/rustrogueliketutorial

Mistake in chapter 50

Open
#196 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
970
Forks
166
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.