every sixth rat

This commit is contained in:
James B. Pollack 2015-12-04 15:18:35 -08:00
parent b1ec1eb113
commit f867ebf1d1

View file

@ -428,7 +428,7 @@ if (USE_CONSTANT_SPAWNER === true) {
rats.push(rat); rats.push(rat);
// print('ratCount::'+ratCount) // print('ratCount::'+ratCount)
ratCount++; ratCount++;
// if (ratCount % 3 === 0) { if (ratCount % 6 === 0) {
var metaRat = { var metaRat = {
rat: rat, rat: rat,
injector: createRatSoundInjector() injector: createRatSoundInjector()
@ -439,7 +439,7 @@ if (USE_CONSTANT_SPAWNER === true) {
//if we have too many injectors hanging around there are problems //if we have too many injectors hanging around there are problems
metaRat.injector.stop(); metaRat.injector.stop();
}, RAT_SPAWN_RATE * 3) }, RAT_SPAWN_RATE * 3)
// } }
}, RAT_SPAWN_RATE); }, RAT_SPAWN_RATE);
} }