From ae174a53716bbe5e35bd52624955dfc6df55e073 Mon Sep 17 00:00:00 2001 From: Jaxe <42095078+Jaxe-Dev@users.noreply.github.com> Date: Sat, 22 Feb 2020 23:50:45 +0800 Subject: [PATCH] v1.4.1 - Minor fix --- About/About.xml | 2 +- About/Manifest.xml | 7 ------- Defs/UpdateFeaturesDef/UpdateFeatures.xml | 7 ------- LoadFolders.xml | 3 +++ README.md | 2 +- Source/Integration/HugsLib.cs | 19 ------------------- Source/Mod.cs | 5 +---- Source/PawnRules.csproj | 7 ------- 8 files changed, 6 insertions(+), 46 deletions(-) delete mode 100644 About/Manifest.xml delete mode 100644 Defs/UpdateFeaturesDef/UpdateFeatures.xml delete mode 100644 Source/Integration/HugsLib.cs diff --git a/About/About.xml b/About/About.xml index d22b12e..0eb0643 100644 --- a/About/About.xml +++ b/About/About.xml @@ -7,5 +7,5 @@
  • 1.0
  • 1.1
  • - Mod Version: 1.4.0\n\n\nPawn Rules is a mod that allows custom rules to be assigned individually to your colonists, animals, guests and prisoners.\n\nCurrently the following rules can be applied:\n\n- Disallow certain foods\n- Disallow bonding with certain animals\n- Disallow new romances\n- Disallow constructing items that have a quality level\n\nAny of these rules can be disabled and hidden from the rules window. Rules presets and defaults can be imported and exported between games. + Mod Version: 1.4.1\n\n\nPawn Rules is a mod that allows custom rules to be assigned individually to your colonists, animals, guests and prisoners.\n\nCurrently the following rules can be applied:\n\n- Disallow certain foods\n- Disallow bonding with certain animals\n- Disallow new romances\n- Disallow constructing items that have a quality level\n\nAny of these rules can be disabled and hidden from the rules window. Rules presets and defaults can be imported and exported between games. diff --git a/About/Manifest.xml b/About/Manifest.xml deleted file mode 100644 index 34ede8e..0000000 --- a/About/Manifest.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - PawnRules - 1.4.0 - https://raw.githubusercontent.com/Jaxe-Dev/PawnRules/master/About/Manifest.xml - https://github.com/Jaxe-Dev/PawnRules/releases/latest - diff --git a/Defs/UpdateFeaturesDef/UpdateFeatures.xml b/Defs/UpdateFeaturesDef/UpdateFeatures.xml deleted file mode 100644 index 61a41c4..0000000 --- a/Defs/UpdateFeaturesDef/UpdateFeatures.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - Pawn Rules - PawnRules - - diff --git a/LoadFolders.xml b/LoadFolders.xml index c8bc089..9c8a7ad 100644 --- a/LoadFolders.xml +++ b/LoadFolders.xml @@ -4,6 +4,9 @@
  • v1.1
  • + +
  • +
  • v1.1
  • diff --git a/README.md b/README.md index 0066387..4a0f89e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Pawn Rules -![Mod Version](https://img.shields.io/badge/Mod_Version-1.4.0-blue.svg) +![Mod Version](https://img.shields.io/badge/Mod_Version-1.4.1-blue.svg) ![RimWorld Version](https://img.shields.io/badge/Built_for_RimWorld-1.1-blue.svg) ![Harmony Version](https://img.shields.io/badge/Powered_by_Harmony-2.0-blue.svg)\ ![Steam Subscribers](https://img.shields.io/badge/dynamic/xml.svg?label=Steam+Subscribers&query=//table/tr[2]/td[1]&colorB=blue&url=https://steamcommunity.com/sharedfiles/filedetails/%3Fid=1499843448&suffix=+total) diff --git a/Source/Integration/HugsLib.cs b/Source/Integration/HugsLib.cs deleted file mode 100644 index fb83df0..0000000 --- a/Source/Integration/HugsLib.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Linq; -using System.Reflection; -using HarmonyLib; - -namespace PawnRules.Integration -{ - internal static class HugsLib - { - public static void RegisterUpdateFeature() - { - var hugsLib = (from assembly in AppDomain.CurrentDomain.GetAssemblies() from type in assembly.GetTypes() where type.Name == "HugsLibController" select type).FirstOrDefault(); - if (hugsLib == null) { return; } - - var version = Assembly.GetExecutingAssembly().GetName().Version; - Traverse.Create(hugsLib).Field("instance")?.Property("UpdateFeatures")?.Method("InspectActiveMod", Mod.Id, version)?.GetValue(); - } - } -} diff --git a/Source/Mod.cs b/Source/Mod.cs index 71b83fc..9f82517 100644 --- a/Source/Mod.cs +++ b/Source/Mod.cs @@ -1,6 +1,5 @@ using System.IO; using PawnRules.Data; -using PawnRules.Integration; using PawnRules.Interface; using PawnRules.Patch; using RimWorld; @@ -13,7 +12,7 @@ internal class Mod : Verse.Mod { public const string Id = "PawnRules"; public const string Name = "Pawn Rules"; - public const string Version = "1.4.0"; + public const string Version = "1.4.1"; public static readonly DirectoryInfo ConfigDirectory = new DirectoryInfo(Path.Combine(GenFilePaths.ConfigFolderPath, Id)); @@ -27,8 +26,6 @@ public Mod(ModContentPack contentPack) : base(contentPack) FirstTimeUser = !ConfigDirectory.Exists; ConfigDirectory.Create(); - if (!FirstTimeUser) { HugsLib.RegisterUpdateFeature(); } - Log("Initialized"); } diff --git a/Source/PawnRules.csproj b/Source/PawnRules.csproj index 4b4cb9d..31a5446 100644 --- a/Source/PawnRules.csproj +++ b/Source/PawnRules.csproj @@ -73,7 +73,6 @@ - @@ -122,12 +121,6 @@ -\About\About.xml - - -\About\Manifest.xml - - - -\Defs\UpdateFeaturesDefs\UpdateFeatures.xml - -\Defs\WorldObjectDefs\PawnRules.xml