Rushwind13 / JMoria

My from-scratch implementation of a Roguelike game that will be an homage to IMoria
4 stars 4 forks source link

chore: unbreak tests #73

Closed Rushwind13 closed 2 weeks ago

Rushwind13 commented 2 weeks ago

Equipment tests were broken because tests are dependent upon indices in Items.txt, and those indices were changed. This is fixed, by resetting the indices in the file so as not to disrupt the tests. Also put in hardening in the tests to catch this (easy to make) error in the future.

AI tests were broken because the RNG sometimes makes it difficult to land a player and a monster nearby consistently. This is fixed, by mangling the dungeon to force open ground between the player and the monster spawn point.

All tests are turned on, no @skip at the moment. If tests break in the future, can use @skip until they are fixed again.