xrex110 / sanctum-of-the-chalice

A roguelike dungeon-crawler developed at Purdue University by the CS 307 Team 28
2 stars 0 forks source link

New room width and height don't get readjusted when room is bounded in ProcGen #5

Closed xrex110 closed 5 years ago

xrex110 commented 5 years ago

If a newly generated room is forcefully bounded due to exceeding map limits, its height and width are not readjusted to reflect what it actually looks like on the map. Major ProcGen issue.

xrex110 commented 5 years ago

This issue can also sometimes cause ArrayOutOfBounds exceptions, particularly when generating a room DOWN or RIGHT.

xrex110 commented 5 years ago

Possible hacky short term fix can be catching any exceptions and regenerating with a new seed until one that works pops up. It will likely have to be fixed after #6 though.

xrex110 commented 5 years ago

Fixed.