Mirror of 1.4.18 from Lovers Lab

This commit is contained in:
ghostclinic3YTB 2023-04-03 21:47:50 -04:00
parent ac3b77b5ba
commit 5d0da3bc88
172 changed files with 121 additions and 4 deletions

View file

@ -62,6 +62,8 @@ namespace SizedApparel
public static void Postfix(Pawn ___pawn)
{
var comp = ___pawn.GetComp<ApparelRecorderComp>();
if (comp == null)
return;
comp.SetDirty(false,false,false,true,true);//Apparel and Hediff will be changed with other reason. just set skeleton dirty.
}
}
@ -942,6 +944,8 @@ namespace SizedApparel
public static void Postfix(PawnRenderer __instance, Pawn ___pawn, Vector3 shellLoc, Rot4 facing, Quaternion quat, PawnRenderFlags flags)
{
var comp = ___pawn.GetComp<ApparelRecorderComp>();
if (comp == null)
return;
float angle;
Vector3 v;
//angle = Quaternion.Angle(quat, Quaternion.AngleAxis(0, Vector3.up));
@ -981,6 +985,8 @@ namespace SizedApparel
if (__result == null)
return;
var comp = __instance.pawn.GetComp<ApparelRecorderComp>();
if (comp == null)
return;
Material sizedApparelBaseBodyMat = null;
if (comp.graphicbaseBodyFurCovered != null)