Skip to content

Commit

Permalink
the fixening
Browse files Browse the repository at this point in the history
- Fixed Resistance not actually focusing on the first Royalist outpost like they're SUPPOSED to
- Fixed the bunkers around the first Royalist outpost not properly disappearing on difficulties below Hard
- Updated mod-info.json
  • Loading branch information
DARwins1 committed Aug 20, 2024
1 parent 6330a59 commit e999e05
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
4 changes: 2 additions & 2 deletions mod-info.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "Fractured Kingdom",
"version": "1.2.0",
"version": "1.3.0",
"author": "DARwins",
"type": "alternateCampaign",
"license": "GPL-2.0-or-later",
"minVersionSupported": "4.4.2",
"minVersionSupported": "4.5.2",
"maxVersionTested": "4.5.2",
"description": {
"en": "After crash-landing in the territory of a once powerful kingdom, you must navigate your way through the various factions fighting over what remains. Can you prevail against the odds, facing relentless foes, and see this story to its end?"
Expand Down
16 changes: 2 additions & 14 deletions script/campaign/kingdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ function eventAttacked(victim, attacker)
camManageGroup(commander.group, CAM_ORDER_ATTACK, {
targetPlayer: targetPlayer,
radius: ATTACK_RADIUS,
pos: pos,
pos: attackPos,
repair: 65
});
}
Expand All @@ -984,7 +984,7 @@ function eventAttacked(victim, attacker)
groupInfo.data = {
targetPlayer: targetPlayer,
radius: ATTACK_RADIUS,
pos: pos,
pos: attackPos,
repair: 65
};
manageGroupBySize(groupInfo, false);
Expand Down Expand Up @@ -2056,18 +2056,6 @@ function eventStartLevel()
camUpgradeOnMapStructures("GuardTower2", "GuardTower1", CAM_HELLRAISERS);
camUpgradeOnMapStructures("PillBox2", "PillBox1", CAM_HELLRAISERS);
}
if (difficulty < HARD)
{
// Remove HMG bunkers around the first Royalist outpost on difficulties below Hard
const structs = enumArea("southFOB", CAM_ROYALISTS, false);
for (const struct of structs)
{
if (struct.name === _("Collective Heavy Machinegun Bunker"))
{
camSafeRemoveObject(struct);
}
}
}

initializeGameInfo();

Expand Down
15 changes: 15 additions & 0 deletions script/campaign/kingdomprogression.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,21 @@ function expandMap()
camEnableFactory("royalistPortFactory");
camEnableFactory("royalistHelRepCybFactory");

if (difficulty < HARD)
{
// Remove HMG bunkers around the first Royalist outpost on difficulties below Hard
const structs = enumArea("southFOB", CAM_ROYALISTS, false).filter(function(obj) {
return (obj.type === STRUCTURE);
});
for (const struct of structs)
{
if (struct.name === _("Collective Heavy Machinegun Bunker"))
{
camSafeRemoveObject(struct);
}
}
}

// Add a guide entry on the Resistance
queue("camAddResistanceTopics", camSecondsToMilliseconds(4));
}
Expand Down

0 comments on commit e999e05

Please sign in to comment.