IronWillGames / Dransik

4 stars 0 forks source link

Mining 0 Thrallenite #811

Closed nevermd closed 10 months ago

nevermd commented 10 months ago

If you successfully dig in an area that gives Tundrite or Brim then you can get either 1-iron, 2-iron plus thrall, or 3-iron/thrall plus tundrite/brim. In the scenario 3 it is possible to get 0 Thrall. The text output says you have mined x iron, x tundrite, and 0 Thrall. The 0 Thrall message does not show up unless you get iron plus a second type of ore.

davidjreese commented 10 months ago

this bug is evasive, thanks!

davidjreese commented 10 months ago

Fixed this - @hgesler and @Dev-Tyrant - just remember, Random can return 0 (see diff below)

https://github.com/IronWillGames/DransikData/commit/5ad0d484784ceb2c794f03a16e524e7fee3c72e5