mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 22:42:42 +02:00
every sixth rat
This commit is contained in:
parent
b1ec1eb113
commit
f867ebf1d1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue