Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
- Fixed import/export button not displaying
- Fixed incorrect ruleset applied to new pawns when default rules are unrestricted
  • Loading branch information
Jaxe-Dev committed Nov 11, 2018
1 parent 50cd71c commit ec35e44
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<name>Pawn Rules</name>
<author>Jaxe</author>
<targetVersion>1.0.0</targetVersion>
<description>Mod Version: 1.2.2\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.</description>
<description>Mod Version: 1.2.3\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.</description>
</ModMetaData>
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<Manifest>
<identifier>PawnRules</identifier>
<version>1.2.2</version>
<version>1.2.3</version>
<manifestUri>https://raw.githubusercontent.com/Jaxe-Dev/PawnRules/master/About/Manifest.xml</manifestUri>
<downloadUri>https://github.com/Jaxe-Dev/PawnRules/releases/latest</downloadUri>
</Manifest>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pawn Rules
![Mod Version](https://img.shields.io/badge/Mod_Version-1.2.2-blue.svg)
![Mod Version](https://img.shields.io/badge/Mod_Version-1.2.3-blue.svg)
![RimWorld Version](https://img.shields.io/badge/Built_for_RimWorld-1.0-blue.svg)
![Harmony Version](https://img.shields.io/badge/Powered_by_Harmony-1.2.0.1-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)
Expand Down
3 changes: 2 additions & 1 deletion Source/Data/Registry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ public static Rules GetOrDefaultRules(Pawn pawn)
private static void ChangeTypeOrCreateRules(Pawn pawn, PawnType type)
{
if (type == pawn.GetTargetType()) { return; }
_instance._rules[pawn] = GetDefaultRules(type);
var defaultRules = GetDefaultRules(type);
_instance._rules[pawn] = defaultRules.IsVoid ? defaultRules.CloneRulesFor(pawn) : defaultRules;
}

public static Rules CloneRules(Pawn original, Pawn cloner)
Expand Down
2 changes: 1 addition & 1 deletion Source/Interface/Dialog_Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace PawnRules.Interface
{
internal class Dialog_Global : WindowPlus
{
private Dialog_Global() : base(Lang.Get("Dialog_Global.Title").Bold(), new Vector2(300f, 400f))
private Dialog_Global() : base(Lang.Get("Dialog_Global.Title").Bold(), new Vector2(300f, 450f))
{ }

public static void Open() => Find.WindowStack.Add(new Dialog_Global());
Expand Down
2 changes: 1 addition & 1 deletion Source/Mod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal class Mod : Verse.Mod
{
public const string Id = "PawnRules";
public const string Name = "Pawn Rules";
public const string Version = "1.2.2";
public const string Version = "1.2.3";

public static readonly DirectoryInfo ConfigDirectory = new DirectoryInfo(Path.Combine(GenFilePaths.ConfigFolderPath, Id));

Expand Down
1 change: 0 additions & 1 deletion Source/Patch/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,5 @@ public static Rect[] GetVGrid(this Rect self, float padding, params float[] heig

return rects.ToArray();
}

}
}

0 comments on commit ec35e44

Please sign in to comment.