wrote the method for changing generation
Merge branch 'perfBarAffectSpawnRate'