bozimmerman / CoffeeMud

Full featured, mature MUD supporting MSP, MXP, OLC, with a web server, mail server, and MORE!
Apache License 2.0
191 stars 100 forks source link

fixed bug in stat rolling in CharCreation.java #26

Closed gpoulton closed 5 years ago

gpoulton commented 5 years ago

Previously, if the rolled dice didn't qualify a char for anything, the inner loop would call reRollStats() without properly resetting mob.baseCharStats(). This resulted in either the character getting massive bonuses or the reRollStats() method going into an infinite loop trying to allocate points after all stats were maxed out.

gpoulton commented 5 years ago

added more helpful error messages to Import code