wobblyhead hg > minor_monsters
diff tools/simulate.js @ 27:75deda08db90 0.9.1
game debug functions separated into own file; release build option, distribution script
| author | ark |
|---|---|
| date | 2026-10-20 17:19 +0200 |
| parents | 2f555a54c332 |
| children | a464bd43b76c |
line wrap: on
line diff
--- a/tools/simulate.js Tue Oct 20 16:06:50 2026 +0200 +++ b/tools/simulate.js Tue Oct 20 17:19:40 2026 +0200 @@ -94,14 +94,8 @@ vm.runInThisContext(fs.readFileSync(f, "utf8"), { filename: f }); if (i === files.length - 1) countMelee(); if (i === 1) { - var cfg = MM.config; - // debug switches off, whatever the config says - cfg.debug.start_coins = -1; - cfg.debug.unlimited_coins = false; - cfg.debug.no_heart_loss = false; - cfg.debug.extra_speeds = []; if (waves) { - Object.keys(waves).forEach(function (m) { cfg.maps[m].waves = waves[m]; }); + Object.keys(waves).forEach(function (m) { MM.config.maps[m].waves = waves[m]; }); } MM.audio = { play: function () {} }; }
