Skip to content

Commit

Permalink
2.8.2 (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Hazzer <[email protected]>
  • Loading branch information
Hazzer and Hazzer authored Nov 20, 2022
1 parent 0ca1c32 commit 17bb851
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
Binary file modified 1.4/Assemblies/Locks.dll
Binary file not shown.
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.8.1-blue.svg?style=flat" alt="v2.8.1" />
<img src="https://img.shields.io/badge/version-2.8.2-blue.svg?style=flat" alt="v2.8.2" />
</a>
</p>

Expand Down
17 changes: 17 additions & 0 deletions Source/ITab_Lock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,29 @@ protected override void FillTab()
}

if (Data.WantedState.IsVisible(nameof(LockState.petDoor)))
{
CheckboxLabeled(listing, ref anythingChanged, "Locks_ITabPetDoor".Translate(), ref petDoor, "Locks_ITabPetDoorDesc".Translate());
if (anythingChanged && petDoor && !animalsAllowed)
{
animalsAllowed = true;
}
}
if (Data.WantedState.IsVisible(nameof(LockState.pensDoor)))
{
CheckboxLabeled(listing, ref anythingChanged, "Locks_ITabPensDoor".Translate(), ref pensDoor, "Locks_ITabPensDoorDesc".Translate());
if (anythingChanged && pensDoor && !animalsAllowed)
{
animalsAllowed = true;
}
}
if (Data.WantedState.IsVisible(nameof(LockState.allowAnimals)))
{
CheckboxLabeled(listing, ref anythingChanged, "Locks_ITabAnimalAllowed".Translate(), ref animalsAllowed, "Locks_ITabAnimalAllowedDesc".Translate());
if (anythingChanged && !animalsAllowed)
{
pensDoor = false;
petDoor = false;
}
}

listing.End();
Expand Down
2 changes: 1 addition & 1 deletion Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.8.*")]
[assembly: AssemblyFileVersion("2.8.1")]
[assembly: AssemblyFileVersion("2.8.2")]
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Changelog:
2.8.2
- Forcing door state for changes with pen, pens and animal allowed state.
2.8.1
- Multiplayer updated (https://github.com/SokyranTheDragon)
- Mechs are allowed to use doors asigned to mechanitor
Expand Down

0 comments on commit 17bb851

Please sign in to comment.