Skip to content

Commit b5eefd6

Browse files
committed
Animal Gear Compatibility
1 parent 89f92b2 commit b5eefd6

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

Assemblies/O21Toolbox.dll

512 Bytes
Binary file not shown.
-1.5 KB
Binary file not shown.
Binary file not shown.

Source/O21Toolbox/O21Toolbox/Harmony/HarmonyPatches.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -860,13 +860,16 @@ public static void ApparelScoreGainPostFix(Pawn pawn, Apparel ap, ref float __re
860860
{
861861
return;
862862
}
863-
if (!ApparelRestrict.RestrictionCheck.CanWear(ap, pawn.story.bodyType))
863+
if (!pawn.AnimalOrWildMan())
864864
{
865-
__result = -50f;
866-
}
867-
if (!RaceRestrictionSettings.CanWear(ap.def, pawn.def))
868-
{
869-
__result = -50f;
865+
if (!ApparelRestrict.RestrictionCheck.CanWear(ap, pawn.story.bodyType))
866+
{
867+
__result = -50f;
868+
}
869+
if (!RaceRestrictionSettings.CanWear(ap.def, pawn.def))
870+
{
871+
__result = -50f;
872+
}
870873
}
871874
}
872875

Binary file not shown.
512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)