Skip to content

Commit

Permalink
little bit increasing the pause
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Andreev committed Oct 19, 2022
1 parent 3719384 commit 6eec0b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions multiplay/script/mods/landingOfWaves.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ var wave = {time:0, active: false };
var numberWave = 0;
var BORDER = 4;
var LZRADIUS = 4;
var RESIDUAL = 0.07;
var RESIDUAL = 0.03;
var INCREM_PAUSEM = 0.1;


function getWaveAI()
Expand Down Expand Up @@ -113,8 +114,8 @@ function scheduler()
// отразили волну
if (wave.droids.length <= residualAdjustment(wave.droidsCount) && wave.active == true && wave.budget <= 0 )
{
wave.time = gameTime/1000 + settings.pauseM * 60;
setMissionTime(settings.pauseM*60);
wave.time = gameTime/1000 + (settings.pauseM + INCREM_PAUSEM * numberWave) * 60 ;
setMissionTime((settings.pauseM + INCREM_PAUSEM * numberWave) * 60);
wave.active = false;
queue("scheduler", 3*1000);
return;
Expand Down Expand Up @@ -495,7 +496,7 @@ function pushUnits()
if (wave.budget <= 0)
{
numberWave++;
const str = [_("Wave number"), numberWave, ". ", _("Units landed "), wave.droidsCount, "."].join("");
const str = [_("Wave number "), numberWave, ". ", _("Units landed "), wave.droidsCount, "."].join("");
debug(str);
console(str);
setMissionTime(-1);
Expand Down
2 changes: 1 addition & 1 deletion multiplay/script/rules/Stone-Jungle-v3w-T1.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"Kpower" : 0.15,
"doublePowerM": 120,
"multiplierForStructures": 0.7,
"pauseM": 0.8,
"pauseM": 0.9,
"inWavePauseS": 7,
"timeHandicapM": 2,
"Kfinal": 4,
Expand Down
2 changes: 1 addition & 1 deletion multiplay/script/rules/ntw_trail10pro2-T1.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"Kpower" : 0.20,
"doublePowerM": 40,
"multiplierForStructures": 0.7,
"pauseM": 2,
"pauseM": 2.2,
"inWavePauseS": 11,
"timeHandicapM": 2,
"Kfinal": 2,
Expand Down

0 comments on commit 6eec0b0

Please sign in to comment.