Skip to content

Commit

Permalink
improve comment & replace null with empty string as param
Browse files Browse the repository at this point in the history
  • Loading branch information
ximex committed Sep 16, 2023
1 parent 905a3fc commit a509e28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/mp/multiplay/script/rules/endconditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions data/mp/multiplay/script/scavengers/originalScavengers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit a509e28

Please sign in to comment.