diff --git a/.github/workflows/major-update.yml b/.github/workflows/major-update.yml index 0cc80248..338068d6 100644 --- a/.github/workflows/major-update.yml +++ b/.github/workflows/major-update.yml @@ -70,3 +70,17 @@ jobs: with: webhook-url: ${{ secrets.DISCORD_WEBHOOK }} filename: Changelog.md + + - name: Clear ChangeLog.md + run: | + # remove tmp files created by workflow + git clean -fd + # update ChangeLog.md + echo "# Changelog" > ChangeLog.md + echo "" >> ChangeLog.md + # configure git user + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + # commit and push changes + git commit -am "Update ChangeLog.md" + git push diff --git a/.github/workflows/minor-update.yml b/.github/workflows/minor-update.yml index 0d4f36b3..f401782f 100644 --- a/.github/workflows/minor-update.yml +++ b/.github/workflows/minor-update.yml @@ -70,3 +70,17 @@ jobs: with: webhook-url: ${{ secrets.DISCORD_WEBHOOK }} filename: Changelog.md + + - name: Clear ChangeLog.md + run: | + # remove tmp files created by workflow + git clean -fd + # update ChangeLog.md + echo "# Changelog" > ChangeLog.md + echo "" >> ChangeLog.md + # configure git user + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + # commit and push changes + git commit -am "Update ChangeLog.md" + git push diff --git a/.github/workflows/patch-update.yml b/.github/workflows/patch-update.yml index 7f4a686a..29decc3a 100644 --- a/.github/workflows/patch-update.yml +++ b/.github/workflows/patch-update.yml @@ -70,3 +70,17 @@ jobs: with: webhook-url: ${{ secrets.DISCORD_WEBHOOK }} filename: Changelog.md + + - name: Clear ChangeLog.md + run: | + # remove tmp files created by workflow + git clean -fd + # update ChangeLog.md + echo "# Changelog" > ChangeLog.md + echo "" >> ChangeLog.md + # configure git user + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + # commit and push changes + git commit -am "Update ChangeLog.md" + git push diff --git a/About/About.xml b/About/About.xml index fb164140..18cf714a 100644 --- a/About/About.xml +++ b/About/About.xml @@ -1,8 +1,9 @@ - RimNauts 2 sindre0830.rimnauts2 + RimNauts 2 sindre0830 + 5.3.0
  • 1.4
  • 1.5
  • diff --git a/Assemblies/RimNauts2.dll b/Assemblies/RimNauts2.dll index eccbf8cc..488e7437 100644 Binary files a/Assemblies/RimNauts2.dll and b/Assemblies/RimNauts2.dll differ diff --git a/Changelog.md b/Changelog.md index 825c32f0..7bf595d5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1 +1,2 @@ # Changelog +- Disable the central entry method for raids on outer space maps (Suggested by cruelmoose) diff --git a/Source/RimNauts2/RimNauts2/Biome/Patch/IncidentWorker.cs b/Source/RimNauts2/RimNauts2/Biome/Patch/IncidentWorker.cs index 47c36de3..c28c4966 100644 --- a/Source/RimNauts2/RimNauts2/Biome/Patch/IncidentWorker.cs +++ b/Source/RimNauts2/RimNauts2/Biome/Patch/IncidentWorker.cs @@ -34,7 +34,7 @@ class IncidentWorker_Raid_ResolveRaidArriveMode { public static bool Prefix(RimWorld.IncidentParms parms) { if (!Settings.Container.get_incident_patch) return true; if (!Universum.World.ObjectHolderCache.Exists(parms.target.Tile)) return true; - parms.raidArrivalMode = parms.raidArrivalMode = (Rand.Value < 0.6f) ? RimWorld.PawnsArrivalModeDefOf.EdgeDrop : RimWorld.PawnsArrivalModeDefOf.CenterDrop; + parms.raidArrivalMode = RimWorld.PawnsArrivalModeDefOf.EdgeDrop; return false; } } diff --git a/Source/RimNauts2/RimNauts2/Constants.cs b/Source/RimNauts2/RimNauts2/Constants.cs index e1267c34..0408e0c9 100644 --- a/Source/RimNauts2/RimNauts2/Constants.cs +++ b/Source/RimNauts2/RimNauts2/Constants.cs @@ -1,7 +1,6 @@ namespace RimNauts2 { public static class Info { public static readonly string name = "RimNauts 2"; - public static readonly string version = "5.2.4"; } public static class Style { diff --git a/Source/RimNauts2/RimNauts2/RimNauts2.cs b/Source/RimNauts2/RimNauts2/RimNauts2.cs index 19ab686e..e968533d 100644 --- a/Source/RimNauts2/RimNauts2/RimNauts2.cs +++ b/Source/RimNauts2/RimNauts2/RimNauts2.cs @@ -11,7 +11,7 @@ static RimNauts2() { Logger.print( Logger.Importance.Info, key: "RimNauts.Info.mod_loaded", - args: new NamedArgument[] { Info.name, Info.version } + args: new NamedArgument[] { Info.name, RimNauts2_ModContent.instance.Content.ModMetaData.ModVersion } ); Defs.Loader.init(); }