From f5bceca419885bb60979a91add7a2b6a202eade4 Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Sun, 3 Dec 2023 20:07:23 -0600 Subject: [PATCH] fix copypaste error Also not a structure. --- data/base/script/campaign/libcampaign.js | 2 +- data/base/script/campaign/libcampaign_includes/truck.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/base/script/campaign/libcampaign.js b/data/base/script/campaign/libcampaign.js index a3c2a9d781f..cadaadf3a8c 100644 --- a/data/base/script/campaign/libcampaign.js +++ b/data/base/script/campaign/libcampaign.js @@ -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 = { diff --git a/data/base/script/campaign/libcampaign_includes/truck.js b/data/base/script/campaign/libcampaign_includes/truck.js index c2c76eed3df..c0650a80c00 100644 --- a/data/base/script/campaign/libcampaign_includes/truck.js +++ b/data/base/script/campaign/libcampaign_includes/truck.js @@ -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;