Skip to content

Commit

Permalink
fix copypaste error
Browse files Browse the repository at this point in the history
Also not a structure.
  • Loading branch information
KJeff01 committed Dec 4, 2023
1 parent a52df16 commit f5bceca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/base/script/campaign/libcampaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ const __CAM_INCLUDE_PATH = "script/campaign/libcampaign_includes/";
const CAM_ARTIFACT_STAT = "Crate";
const CAM_GENERIC_TRUCK_STAT = "Spade1Mk1";
const CAM_GENERIC_LAND_STAT = "wheeled01"; //For propulsionCanReach().
const CAM_OIL_RESOURCE_STAT = "OilResource";
const cam_base_structures = {
commandRelay: "A0ComDroidControl",
commandCenter: "A0CommandCentre",
powerGenerator: "A0PowerGenerator",
researchLab: "A0ResearchFacility",
factory: "A0LightFactory",
oil: "A0ResourceExtractor",
derrick: "A0ResourceExtractor"
};
const cam_resistance_circuits = {
Expand Down
2 changes: 1 addition & 1 deletion data/base/script/campaign/libcampaign_includes/truck.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function __camTruckTick()
}

// Then, capture free oils.
const oils = enumFeature(ALL_PLAYERS, cam_base_structures.oil);
const oils = enumFeature(ALL_PLAYERS, CAM_OIL_RESOURCE_STAT);
if (oils.length === 0)
{
continue;
Expand Down

0 comments on commit f5bceca

Please sign in to comment.