Minor changes

This commit is contained in:
yairm210
2024-08-06 14:28:48 +03:00
parent 399f243257
commit 4e85e32cc1
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,7 @@
import {Octokit} from "@octokit/rest";
import fs from "fs";
// To be run from the main Unciv repo directory
// To be run from the root of the Unciv repo (node .github/workflows/incrementVersionAndChangelog.mjs)
// Summarizes and adds the summary to the changelog.md file
// Meant to be run from a Github action as part of the preparation for version rollout
@ -65,8 +66,7 @@ async function parseCommits() {
}
);
Object.entries(ownerToCommits).forEach(entry => {
const [author, commits] = entry;
Object.entries(ownerToCommits).forEach((author,commits) => {
if (commits.length === 1) {
commitSummary += "\n\n" + commits[0] + " - By " + author;
} else {

View File

@ -404,7 +404,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
isCivilian() -> false
baseUnit.movesLikeAirUnits -> false
isEmbarked() -> false
hasUnique(UniqueType.NoDefensiveTerrainBonus) -> false
hasUnique(UniqueType.NoDefensiveTerrainBonus, checkCivInfoUniques = true) -> false
ignoreAlreadyFortified -> true
isFortified() -> false
else -> true