From a509e2893bc86509c6afa3787ba670a4dc06ab22 Mon Sep 17 00:00:00 2001 From: Thomas Rupprecht Date: Wed, 22 Jun 2022 22:57:34 +0200 Subject: [PATCH] improve comment & replace null with empty string as param --- data/mp/multiplay/script/rules/endconditions.js | 2 +- .../script/scavengers/originalScavengers.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/mp/multiplay/script/rules/endconditions.js b/data/mp/multiplay/script/rules/endconditions.js index ea4d6f2a9f9..6bb1749b146 100644 --- a/data/mp/multiplay/script/rules/endconditions.js +++ b/data/mp/multiplay/script/rules/endconditions.js @@ -7,7 +7,7 @@ const STATE_loser = "loser"; const STATE_spectator = "spectator"; const STRUCTS = [FACTORY, CYBORG_FACTORY, VTOL_FACTORY]; // structures in which you can continue to play -// Uses global var: ```idleTime``` +// Uses global var: `idleTime` // The time that the player's inactivity is allowed. Actions are considered // - unit building // - completion of the research diff --git a/data/mp/multiplay/script/scavengers/originalScavengers.js b/data/mp/multiplay/script/scavengers/originalScavengers.js index a5fb38d8182..477eb4d7fe8 100644 --- a/data/mp/multiplay/script/scavengers/originalScavengers.js +++ b/data/mp/multiplay/script/scavengers/originalScavengers.js @@ -12,12 +12,12 @@ function produceDroid(fac1) { // We now have switch statements! And we can use the built-in Math library switch (Math.floor(Math.random() * 10)) { - case 0: buildDroid(fac1, "Trike", "B4body-sml-trike01", "BaBaProp", null, null, "bTrikeMG"); break; - case 1: buildDroid(fac1, "Buggy", "B3body-sml-buggy01", "BaBaProp", null, null, "BuggyMG"); break; - case 2: buildDroid(fac1, "Jeep", "B2JeepBody", "BaBaProp", null, null, "BJeepMG"); break; - case 3: buildDroid(fac1, "Cannonbus", "BusBody", "BaBaProp", null, null, "BusCannon"); break; - case 4: buildDroid(fac1, "Firebus", "FireBody", "BaBaProp", null, null, "BabaFlame"); break; - default: buildDroid(fac1, "Bloke", "B1BaBaPerson01", "BaBaLegs", null, null, "BaBaMG"); break; + case 0: buildDroid(fac1, "Trike", "B4body-sml-trike01", "BaBaProp", "", "", "bTrikeMG"); break; + case 1: buildDroid(fac1, "Buggy", "B3body-sml-buggy01", "BaBaProp", "", "", "BuggyMG"); break; + case 2: buildDroid(fac1, "Jeep", "B2JeepBody", "BaBaProp", "", "", "BJeepMG"); break; + case 3: buildDroid(fac1, "Cannonbus", "BusBody", "BaBaProp", "", "", "BusCannon"); break; + case 4: buildDroid(fac1, "Firebus", "FireBody", "BaBaProp", "", "", "BabaFlame"); break; + default: buildDroid(fac1, "Bloke", "B1BaBaPerson01", "BaBaLegs", "", "", "BaBaMG"); break; } } }