Skip to content

Commit

Permalink
Merge pull request #84 from RimNauts/main
Browse files Browse the repository at this point in the history
Minor update
  • Loading branch information
sindre0830 committed Jun 27, 2024
2 parents e1add7f + b120146 commit e6bf7bd
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/major-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions .github/workflows/minor-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions .github/workflows/patch-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<ModMetaData>
<name>RimNauts 2</name>
<packageId>sindre0830.rimnauts2</packageId>
<name>RimNauts 2</name>
<author>sindre0830</author>
<modVersion>5.3.0</modVersion>
<supportedVersions>
<li>1.4</li>
<li>1.5</li>
Expand Down
Binary file modified Assemblies/RimNauts2.dll
Binary file not shown.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Changelog
- Disable the central entry method for raids on outer space maps (Suggested by cruelmoose)
2 changes: 1 addition & 1 deletion Source/RimNauts2/RimNauts2/Biome/Patch/IncidentWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
1 change: 0 additions & 1 deletion Source/RimNauts2/RimNauts2/Constants.cs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Source/RimNauts2/RimNauts2/RimNauts2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e6bf7bd

Please sign in to comment.