Also includes a fix to the case where it would try to generate a negative number of bomb doors or dash doors.