Skip to content

Commit

Permalink
Fixes for v1.0.3
Browse files Browse the repository at this point in the history
- Fixed errors in camDisableTruck() and camEnableTruck().
- Properly remove a duplicate artifact for Composite Alloys Mk3 if the Hellraisers are allied.
- Increased the minimum brightness for the day/night cycle (this will make objects easier to see at night).
  • Loading branch information
DARwins1 committed Mar 15, 2023
1 parent 02e34b9 commit ba3731f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
9 changes: 7 additions & 2 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
v1.0.3
- Fixed errors in camDisableTruck() and camEnableTruck().
- Properly remove a duplicate artifact for Composite Alloys Mk3 if the Hellraisers are allied.
- Increased the minimum brightness for the day/night cycle (this will make objects easier to see at night).

v1.0.2
- Fixed errors involving undefined droid id's and propulsions due to structures being added to unit groups stemming from camUpgradeOnMapStructures()
- Various script tidying and cleanups (missing semicolons, etc.)
- Fixed errors involving undefined droid id's and propulsions due to structures being added to unit groups stemming from camUpgradeOnMapStructures().
- Various script tidying and cleanups (missing semicolons, etc.).

v1.0.1
- Widened the tighter areas of the canyon in the central mountain areas.
Expand Down
1 change: 1 addition & 0 deletions script/campaign/kingdomprogression.js
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,7 @@ function allyHellraisers()
enableResearch("R-Wpn-MG3Mk1", CAM_HUMAN_PLAYER); // Heavy Machinegun
camRemoveArtifact("ampMGTow");
enableResearch("R-Vehicle-Metals03", CAM_HUMAN_PLAYER); // Composite Alloys Mk 3
camRemoveArtifact("royCompositeTank"); // Remove the artifact in the Royalist tank north of the river
enableResearch("R-Wpn-Flamer-Damage03", CAM_HUMAN_PLAYER); // High Temperature Flamer Gel Mk 3

playSound("pcv485.ogg"); // "Technology transferred"
Expand Down
18 changes: 9 additions & 9 deletions script/campaign/libcampaign_includes/daycycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,15 @@ function __camSetSun()
x: (__camDayTime < (CAM_SECONDS_IN_A_DAY_CYCLE / 2)) ? lightPos : -0.6 * lightPos, // Move less at night
y: -0.5,
z: (__camDayTime < (CAM_SECONDS_IN_A_DAY_CYCLE / 2)) ? 0.3 : -0.2, // Put the "moon" in a slightly different position
ar: 0.3 + (0.2 * intensityMultiplier),
ag: 0.3 + (0.2 * intensityMultiplier),
ab: 0.3 + (0.2 * intensityMultiplier),
dr: 0.4 + (0.6 * intensityMultiplier),
dg: 0.4 + (0.6 * intensityMultiplier),
db: 0.4 + (0.6 * intensityMultiplier),
sr: 0.4 + (0.6 * intensityMultiplier),
sg: 0.4 + (0.6 * intensityMultiplier),
sb: 0.4 + (0.6 * intensityMultiplier)
ar: 0.4 + (0.1 * intensityMultiplier),
ag: 0.4 + (0.1 * intensityMultiplier),
ab: 0.4 + (0.1 * intensityMultiplier),
dr: 0.5 + (0.5 * intensityMultiplier),
dg: 0.5 + (0.5 * intensityMultiplier),
db: 0.5 + (0.5 * intensityMultiplier),
sr: 0.5 + (0.5 * intensityMultiplier),
sg: 0.5 + (0.5 * intensityMultiplier),
sb: 0.5 + (0.5 * intensityMultiplier)
}

setSunPosition(sun.x, sun.y, sun.z);
Expand Down
8 changes: 4 additions & 4 deletions script/campaign/libcampaign_includes/truck.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function camDisableTruck(what)
{
what = camGetTrucksFromBase(what);
}
else if (isInteger(what))
else if (Number.isInteger(what))
{
what = [what];
}
Expand All @@ -63,7 +63,7 @@ function camDisableTruck(what)
return;
}

for (var index in what)
for (var index of what)
{
__camTruckInfo[index].enabled = false;
}
Expand All @@ -76,7 +76,7 @@ function camEnableTruck(what)
{
what = camGetTrucksFromBase(what);
}
else if (isInteger(what))
else if (Number.isInteger(what))
{
what = [what];
}
Expand All @@ -86,7 +86,7 @@ function camEnableTruck(what)
return;
}

for (var index in what)
for (var index of what)
{
__camTruckInfo[index].enabled = true;
camRebuildTruck(index, false);
Expand Down

0 comments on commit ba3731f

Please sign in to comment.