Skip to content

Commit

Permalink
Merge pull request #34 from Aviuz/2.7.2
Browse files Browse the repository at this point in the history
Comp for Linkable doors
  • Loading branch information
Hazzer authored Aug 13, 2021
2 parents 1c0a908 + f37e03f commit 81b8dac
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 2 deletions.
Binary file modified 1.3/Assemblies/Locks.dll
Binary file not shown.
26 changes: 26 additions & 0 deletions 1.3/Patches/AddCompLockLinkableDoors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>LinkableDoors (unofficial)</li>
</mods>
<match Class="PatchOperationConditional">
<xpath>/Defs/ThingDef[thingClass = "LinkableDoors.Building_LinkableDoor"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass = "LinkableDoors.Building_LinkableDoor"]</xpath>
<value>
<comps>
<li Class="Locks.CompProperties_Lock"/>
</comps>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass = "LinkableDoors.Building_LinkableDoor"]/comps</xpath>
<value>
<li Class="Locks.CompProperties_Lock"/>
</value>
</match>
</match>
</Operation>

</Patch>
26 changes: 26 additions & 0 deletions 1.3/Patches/AddInspectTabLockLinkableDoors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>LinkableDoors (unofficial)</li>
</mods>
<match Class="PatchOperationConditional">
<xpath>/Defs/ThingDef[thingClass = "LinkableDoors.Building_LinkableDoor"]/inspectorTabs</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass = "LinkableDoors.Building_LinkableDoor"]</xpath>
<value>
<inspectorTabs>
<li>Locks.ITab_Lock</li>
</inspectorTabs>
</value>
</nomatch>
<match Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass = "LinkableDoors.Building_LinkableDoor"]/inspectorTabs</xpath>
<value>
<li>Locks.ITab_Lock</li>
</value>
</match>
</match>
</Operation>

</Patch>
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
</li>
</modDependencies>
<description>Version 2.7.0\nThis addon adds Lock command on every door.\n - Left-click to lock toggle.\n - Right click for more options\n - Alternatively you can use "Lock" inspector tab\n\nNote: Door lock must be flicked by colonist.</description>
<description>Version 2.7.2\nThis addon adds Lock command on every door.\n - Left-click to lock toggle.\n - Right click for more options\n - Alternatively you can use "Lock" inspector tab\n\nNote: Door lock must be flicked by colonist.</description>
</ModMetaData>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>
<p align="center">
<a href="https://github.com/Aviuz/Locks/releases">
<img src="https://img.shields.io/badge/version-2.7.1-blue.svg?style=flat" alt="v2.7.1" />
<img src="https://img.shields.io/badge/version-2.7.2-blue.svg?style=flat" alt="v2.7.2" />
</a>
</p>

Expand Down
6 changes: 6 additions & 0 deletions Source/Locks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,18 @@
<Content Include="..\1.3\Patches\AddCompLockDoorsExpanded.xml">
<Link>Patches\AddCompLockDoorsExpanded.xml</Link>
</Content>
<Content Include="..\1.3\Patches\AddCompLockLinkableDoors.xml">
<Link>Patches\AddCompLockLinkableDoors.xml</Link>
</Content>
<Content Include="..\1.3\Patches\AddInspectTab.xml">
<Link>Patches\AddInspectTab.xml</Link>
</Content>
<Content Include="..\1.3\Patches\AddInspectTabLockDoorsExpanded.xml">
<Link>Patches\AddInspectTabLockDoorsExpanded.xml</Link>
</Content>
<Content Include="..\1.3\Patches\AddInspectTabLockLinkableDoors.xml">
<Link>Patches\AddInspectTabLockLinkableDoors.xml</Link>
</Content>
<Content Include="..\About\About.xml">
<Link>Organizer\About.xml</Link>
</Content>
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Changelog:
2.7.2
- Add compatibility with Linkable Doors
2.7.1
- Fix for mod checks
2.7.0
Expand Down

0 comments on commit 81b8dac

Please sign in to comment.