Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Quitch committed Aug 31, 2024
2 parents e772443 + 352cff0 commit 58f8deb
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 41 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CHANGELOG

## v5.73.0 - 2024-08-31

### Changed

- Naval Commander increases the amount of water and lava on planets

### Fixed

- AI not handling upgraded Artemis units correctly
- Sudden Death and Land Anywhere status not matching intelligence panel

## v5.72.0 - 2024-08-17

### Added
Expand Down
4 changes: 2 additions & 2 deletions modinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"display_name": "Galactic War Overhaul",
"description": "Make Galactic War more exciting, more replayable, and if desired, more challenging. Featuring more systems, more tech cards, more factions, more game modes, more AI personalities, more difficulty levels, more unlocks, more strategy, and more AI brains. Start a new war to enjoy all the new features. Check out the new war tooltips for more information and difficulty recommendations. Recommended accompanying mods: Shared Systems for galactic war, AI Chat, and Show AI Personality Names",
"author": "Quitch",
"version": "5.72.0",
"version": "5.73.0",
"build": "120799",
"date": "2024-08-17",
"date": "2024-08-31",
"signature": " ",
"forum": "https://steamcommunity.com/app/386070/discussions/0/133259956005401439/",
"category": [
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sonar.projectKey=Quitch_GW-AI-Overhaul
sonar.organization=quitch
sonar.projectVersion=5.72.0
sonar.projectVersion=5.73.0
6 changes: 4 additions & 2 deletions ui/main/game/galactic_war/cards/gwaio_enable_tsunami.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ define([
};
},
getContext: gwoCard.getContext,
deal: function (system, context) {
deal: function (system, context, inventory) {
var chance = 40;
const dist = system.distance();
if (
if (inventory.hasCard("gwaio_start_naval")) {
chance = 0;
} else if (
context.totalSize <= GW.balance.numberOfSystems[0] ||
context.totalSize <= GW.balance.numberOfSystems[1]
) {
Expand Down
2 changes: 1 addition & 1 deletion ui/main/game/galactic_war/cards/gwaio_start_naval.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ define([
return gwoCard.loadoutIcon(CARD.id);
},
describe: _.constant(
"!LOC:The Naval Commander loadout contains all naval factories."
"!LOC:The Naval Commander loadout contains all naval factories. Increases the amount of water and lava on eligible planets."
),
deal: gwoCard.startCard,
buff: function (inventory) {
Expand Down
2 changes: 1 addition & 1 deletion ui/main/game/galactic_war/cards/gwaio_upgrade_artemis.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define([
value: "target",
},
{
file: gwoUnit.avenger,
file: gwoUnit.artemis,
path: "unit_types",
op: "push",
value: "UNITTYPE_Heavy",
Expand Down
59 changes: 30 additions & 29 deletions ui/mods/com.pa.quitch.gwaioverhaul/gw_play/cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,37 +593,38 @@ function gwoCard() {

const setupGeneralCommander = function () {
const cards = inventory.cards();
if (
cards.length === 1 &&
cards[0].id === "gwc_start_subcdr" &&
!cards[0].minions
) {
const ai = gwoSettings && gwoSettings.ai;
_.times(2, function () {
const subcommander = _.cloneDeep(
_.sample(GWFactions[playerFaction].minions)
);
if (ai === "Penchant") {
const penchantValues = gwoAI.penchants();
subcommander.character =
subcommander.character +
(" " + loc(penchantValues.penchantName));
subcommander.personality.personality_tags =
subcommander.personality.personality_tags.concat(
penchantValues.penchants
);
}
cards.push({
id: "gwc_minion",
minion: subcommander,
unique: Math.random(),
});
const ai = gwoSettings && gwoSettings.ai;
_.times(2, function () {
const subcommander = _.cloneDeep(
_.sample(GWFactions[playerFaction].minions)
);
if (ai === "Penchant") {
const penchantValues = gwoAI.penchants();
subcommander.character =
subcommander.character +
(" " + loc(penchantValues.penchantName));
subcommander.personality.personality_tags =
subcommander.personality.personality_tags.concat(
penchantValues.penchants
);
}
cards.push({
id: "gwc_minion",
minion: subcommander,
unique: Math.random(),
});
inventory.applyCards();
gwoSave(game, false);
}
});
inventory.applyCards();
gwoSave(game, false);
};
setupGeneralCommander();

if (
cards.length === 1 &&
cards[0].id === "gwc_start_subcdr" &&
!cards[0].minions
) {
setupGeneralCommander();
}

const dealCardToSelectableAIWhenWarStarts = function (settings) {
if (settings && !settings.firstDealComplete) {
Expand Down
2 changes: 1 addition & 1 deletion ui/mods/com.pa.quitch.gwaioverhaul/gw_play/gwo_panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function gwoWarInfoPanel() {
// War Information
const galaxy = game.galaxy();
const originSystem = galaxy.stars()[galaxy.origin()].system();
model.gwoVersion = ko.observable("5.72.0");
model.gwoVersion = ko.observable("5.73.0");
model.gwoSettings = originSystem.gwaio;

if (model.gwoSettings) {
Expand Down
8 changes: 5 additions & 3 deletions ui/mods/com.pa.quitch.gwaioverhaul/gw_play/referee_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,17 @@ define([
const playerBountyMode = inventory.hasCard("gwaio_enable_bounties");
const bountyMode = ai.bountyMode || playerBountyMode;
const playerSuddenDeathMode = inventory.hasCard("gwaio_enable_suddendeath");
const suddenDeathMode = ai.bountyMode || playerSuddenDeathMode;
const suddenDeathMode = ai.suddenDeath || playerSuddenDeathMode;
const playerLandAnywhereMode = inventory.hasCard(
"gwaio_enable_landanywhere"
);
const landAnywhereMode = ai.bountyMode || playerLandAnywhereMode;
const landAnywhereMode = ai.landAnywhere || playerLandAnywhereMode;
const canGlassPlanets = inventory.hasCard(
"gwaio_enable_orbitalbombardment"
);
const canFloodPlanets = inventory.hasCard("gwaio_enable_tsunami");
const canFloodPlanets =
inventory.hasCard("gwaio_enable_tsunami") ||
inventory.hasCard("gwaio_start_naval");

if (canGlassPlanets) {
currentStar.system().planets = glassPlanets(currentStar.system().planets);
Expand Down
2 changes: 1 addition & 1 deletion ui/mods/com.pa.quitch.gwaioverhaul/gw_start/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function gwoSetup() {
const busyToken = {};
model.makeGameBusy(busyToken);

const version = "5.72.0";
const version = "5.73.0";
console.log("War created using Galactic War Overhaul v" + version);

const game = new GW.Game();
Expand Down

0 comments on commit 58f8deb

Please sign in to comment.