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;