()
| 330 | const cooldown = makeCooldown(cooldownPerSpawn, maxSpawns); |
| 331 | return { |
| 332 | shouldSpawn() { |
| 333 | return Math.random() <= chance && cooldown.useIfAble(); |
| 334 | }, |
| 335 | mutate(options) { |
| 336 | if (options.chance) chance = options.chance; |
| 337 | cooldown.mutate({ |
nothing calls this directly
no outgoing calls
no test coverage detected