Permalink
Browse files

Power limit and cam3-a changes.

- Power limits change for Hard and Insane with Beta and Gamma campaigns.
- Cam3-a: Simplify areas for activating factories and correct the object
ID for two of the factories.
  • Loading branch information...
KJeff01 committed Nov 12, 2017
1 parent 43a3801 commit 45abd912e08d0802edc5aaf6d591370ec95682ba
Showing with 51 additions and 71 deletions.
  1. +18 −63 data/base/script/campaign/cam3-a.js
  2. +21 −3 data/base/script/rules.js
  3. +12 −5 data/base/wrf/cam3/cam3a/labels.json
@@ -18,69 +18,29 @@ camAreaEvent("vtolRemoveZone", function(droid)
resetLabel("vtolRemoveZone", NEXUS);
});
//These area events are for enabling factories.
//Order base three groups to do stuff.
camAreaEvent("cybAttackers", function(droid)
{
if(droid.player === CAM_HUMAN_PLAYER)
{
camEnableFactory("NXcybFac-b2-1");
}
else
{
resetLabel("cybAttackers", CAM_HUMAN_PLAYER);
}
});
enableAllFactories();
camAreaEvent("northEastBaseCleanup", function(droid)
{
if (droid.player === CAM_HUMAN_PLAYER)
{
camEnableFactory("NXcybFac-b3");
}
else
{
resetLabel("northEastBaseCleanup", CAM_HUMAN_PLAYER);
}
});
camManageGroup(camMakeGroup("NEAttackerGroup"), CAM_ORDER_ATTACK, {
regroup: true,
morale: 90,
fallback: camMakePos("SWBaseRetreat")
});
//This one sets up some groups also.
camAreaEvent("southWestBaseCleanup", function(droid)
{
if (droid.player === CAM_HUMAN_PLAYER)
{
camEnableFactory("NXcybFac-b2-2");
camEnableFactory("NXHvyFac-b2");
camManageGroup(camMakeGroup("NEAttackerGroup"), CAM_ORDER_ATTACK, {
regroup: true,
morale: 90,
fallback: camMakePos("SWBaseRetreat")
});
camManageGroup(camMakeGroup("NEDefenderGroup"), CAM_ORDER_DEFEND, {
pos: [
camMakePos("genericasAssembly"),
camMakePos("northFacAssembly"),
],
regroup: true,
});
}
else
{
resetLabel("southWestBaseCleanup", CAM_HUMAN_PLAYER);
}
camManageGroup(camMakeGroup("NEDefenderGroup"), CAM_ORDER_DEFEND, {
pos: [
camMakePos("genericasAssembly"),
camMakePos("northFacAssembly"),
],
regroup: true,
});
});
camAreaEvent("northWestBaseCleanup", function(droid)
camAreaEvent("westFactoryTrigger", function(droid)
{
if (droid.player === CAM_HUMAN_PLAYER)
{
camEnableFactory("NXcybFac-b4");
}
else
{
resetLabel("northWestBaseCleanup", CAM_HUMAN_PLAYER);
}
enableAllFactories();
});
//make the first batch or extra transport droids hero rank.
@@ -155,7 +115,7 @@ function sendPlayerTransporter()
function vtolAttack()
{
var list; with (camTemplates) list = [nxlneedv, nxlscouv, nxmtherv];
camSetVtolData(NEXUS, "vtolAppearPos", "vtolRemovePos", list, camChangeOnDiff(420000), "NXCommandCenter"); //7 min
camSetVtolData(NEXUS, "vtolAppearPos", "vtolRemovePos", list, camChangeOnDiff(300000), "NXCommandCenter"); //5 min
}
//These groups are active immediately.
@@ -309,10 +269,6 @@ function eventStartLevel()
assembly: "NXcybFac-b2-1Assembly",
order: CAM_ORDER_ATTACK,
data: {
pos: [
camMakePos("northFacAssembly"),
camMakePos("ambushPlayerPos"),
],
regroup: false,
repair: 40,
count: -1,
@@ -360,15 +316,14 @@ function eventStartLevel()
},
"NXcybFac-b4": {
assembly: "NXcybFac-b4Assembly",
order: CAM_ORDER_DEFEND,
order: CAM_ORDER_PATROL,
data: {
pos: [
camMakePos("genericasAssembly"),
camMakePos("northFacAssembly"),
],
regroup: false,
repair: 40,
radius: 15,
count: -1,
},
groupSize: 4,
View
@@ -15,7 +15,7 @@ function setupGame()
replaceTexture("page-8-player-buildings-bases.png", "page-8-player-buildings-bases-rockies.png");
replaceTexture("page-9-player-buildings-bases.png", "page-9-player-buildings-bases-rockies.png");
}
if (tilesetType != "ARIZONA")
{
setSky("texpages/page-25-sky-urban.png", 0.5, 10000.0);
@@ -55,12 +55,30 @@ function resetPower() {
else if (difficulty == HARD)
{
powerProductionRate = 85;
powerLimit = 20000;
powerLimit = 20000; //base value for Alpha
if (tilesetType == "URBAN")
{
powerLimit = powerLimit + 5000;
}
else if (tilesetType == "ROCKIES")
{
powerLimit = powerLimit + 10000;
}
}
else if (difficulty == INSANE)
{
powerProductionRate = 70;
powerLimit = 12000;
powerLimit = 12000; //base value for Alpha
if (tilesetType == "URBAN")
{
powerLimit = powerLimit + 2000;
}
else if (tilesetType == "ROCKIES")
{
powerLimit = powerLimit + 4000;
}
}
setPowerModifier(powerProductionRate);
@@ -73,11 +73,11 @@
},
"position_18": {
"label": "NXcybFac-b3Assembly",
"pos": [5568, 8640]
"pos": [5568, 8896]
},
"position_19": {
"label": "NXcybFac-b2-1Assembly",
"pos": [2496, 14528]
"pos": [2624, 14656]
},
"position_20": {
"label": "NXcybFac-b2-2Assembly",
@@ -89,7 +89,7 @@
},
"position_22": {
"label": "NXcybFac-b4Assembly",
"pos": [1984, 8768]
"pos": [2112, 8896]
},
"area_0": {
@@ -99,6 +99,7 @@
},
"area_1": {
"label": "cybAttackers",
"subscriber": 0,
"pos1": [6976, 12480],
"pos2": [7360, 12864]
},
@@ -147,6 +148,12 @@
"pos1": [192, 8256],
"pos2": [3264, 10176]
},
"area_11": {
"label": "westFactoryTrigger",
"subscriber": 0,
"pos1": [5312, 13632],
"pos2": [6080, 14656]
},
"object_0": {
"label": "NXPowerGenArti",
@@ -162,13 +169,13 @@
},
"object_2": {
"label": "NXcybFac-b3",
"id": 187,
"id": 88,
"player": 3,
"type": 1
},
"object_3": {
"label": "NXcybFac-b2-1",
"id": 88,
"id": 187,
"player": 3,
"type": 1
},

0 comments on commit 45abd91

Please sign in to comment.