amethyst / rustrogueliketutorial

Roguelike Tutorial in Rust - using RLTK
MIT License
903 stars 156 forks source link

Mistake in chapter 50 #196

Open marioferpa opened 2 years ago

marioferpa commented 2 years ago

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.