mirror of
https://gitgud.io/ll.mirrors/sizedapparel.git
synced 2024-08-15 00:43:40 +00:00
Mirror of 1.4.15 from Lovers Lab
This commit is contained in:
parent
9a3d9f4185
commit
a5ed05c17b
1180 changed files with 4378 additions and 1905 deletions
54
source/SizedApparel/Patch-RimNudeWorld.cs
Normal file
54
source/SizedApparel/Patch-RimNudeWorld.cs
Normal file
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using HarmonyLib;
|
||||
//using AlienRace;
|
||||
using UnityEngine;
|
||||
using rjw;
|
||||
|
||||
|
||||
|
||||
|
||||
namespace SizedApparel
|
||||
{
|
||||
|
||||
//[HarmonyPatch(typeof(RimNudeWorld.GenitalPatch), "Postfix")]
|
||||
[StaticConstructorOnStartup]
|
||||
public class SizedApparelRNWPatch
|
||||
{
|
||||
static bool Prefix(Pawn pawn)
|
||||
{
|
||||
if (pawn == null)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class RevealingApparelPatch
|
||||
{
|
||||
static void Postfix( Pawn pawn, ref bool __result)
|
||||
{
|
||||
if (__result == false)
|
||||
return;
|
||||
var comp = pawn.GetComp<ApparelRecorderComp>();
|
||||
if (comp == null)
|
||||
return;
|
||||
if (comp.hasUnsupportedApparel)
|
||||
return;
|
||||
if(pawn.apparel.WornApparel != null)
|
||||
{
|
||||
if(pawn.apparel.WornApparel.Any((Apparel ap) =>( ap.def.apparel.tags.Any(s => s.ToLower() == "SizedApparel_IgnorBreastSize".ToLower()))))
|
||||
__result = false;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue