From 09f1fdb3f5f26ce0b73e50c087acf4d6d26a1b47 Mon Sep 17 00:00:00 2001 From: c0ffee Date: Wed, 15 Sep 2021 20:58:07 -0700 Subject: [PATCH] tweaks --- 1.3/Assemblies/Rimworld-Animations.dll | Bin 54272 -> 54272 bytes .../OtherModPatches/HarmonyPatch_AlienRace.cs | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/1.3/Assemblies/Rimworld-Animations.dll b/1.3/Assemblies/Rimworld-Animations.dll index ebe84c735779a367c515b8900d729d4178b0465f..2b0ae1fbd5273d703ffe652703ef3a95712f6734 100644 GIT binary patch delta 1484 zcmY+^Uu;uV90&04xm~-A6NH(itLcDVmH>%0PN<<0Q8fIigvkS&Y>cvXYvtbS5Fu3; zv*eBx&4{3utGvLA#>D!7Gj>LwWKkGPoIvzJH2Sa@MbxOtUS^}w^ZT7chfB8Xv+wzx z?{B?L$10(*O6axmhFWdgJLQvYB3gcTuecZpu{K<}3A6>al?-~tTG1996Mpl8`Wt;^ z)VGB&2CB{0*Y}B$;O2&u*cz-%tr07NZK=D(H^GrqLVOUMPVEdQ8=9Mv!S|`&`fn?% z-S_`%iI!@2dZNR3o}epViapR8!Fm)~Iv?S$5 z95;&Fn`Ii~b#0fMaO1XzX%Z7pD42`nBlB zEQ?mF$Zj;|7PB5KXHhmOdyq4tMfah|n#R&l1brwBF3$Dg8J2zx`*3Lx)K7)KHum8< zhtn8u6XE^%XNU%;arUkVvWVri-m{lBWN|M`FPcS~Rl+Rh!&zjE9<-+90aQGiE1^fJ zAJ>cyD-GaxCDpID$)U!fzBGr>Q+jZTx-^HF(OY6ZJcxFqCTl)Cgd|JflE?7>G{Vw% z=5gH2wIhN&!o#Y;SG&E6X_-eW(JWIyJ4+81kYtrWg9V&7qPYSt)K3aLiEmkRqG3q{ z2l1WJ?u4y0^)xliHQlr73waPTEPqa%T0uvzns9X02Bqs-;*IE6>S+8h4~n0nkEyJk zMXL#=hfGF=4z?Ikp@WX2i-iu-THNR0VJ*Lj3LRujNQDkwHljiY0ZSJ;c;94H=;BW! zDs+)4QsFVYC@3qi^#AMPkQUdwD4NWtdKaT6ql|YSooY6#md7PiB6!-x5nZ`xM%ow)g zM@{PzW=I!ykYT)P>HJ%AJ4Ttjaq;DARC-N^gY%b#bXSo$QvV<_StAt03uYIUAKiI@vE%USnmZ?ki?wru&eNwxI$HM)oC!{!OVrQ# oML%b$_Fwv*D4X?SBKY-&X_S*Qf?2o!iWoI3g4+APiE^^?KR=o}2LJ#7 diff --git a/1.3/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs b/1.3/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs index 4144952..aa24e27 100644 --- a/1.3/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs +++ b/1.3/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs @@ -44,9 +44,9 @@ namespace Rimworld_Animations { { forceDrawForBody = true; } - AlienPartGenerator.RotationOffset offset = ba.defaultOffsets.GetOffset(ba.drawnInBed || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing); + AlienPartGenerator.RotationOffset offset = ba.defaultOffsets.GetOffset((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing); Vector3 a = (offset != null) ? offset.GetOffset(renderFlags.FlagSet(PawnRenderFlags.Portrait), pawn.story.bodyType, comp.crownType) : Vector3.zero; - AlienPartGenerator.RotationOffset offset2 = ba.offsets.GetOffset(ba.drawnInBed || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing); + AlienPartGenerator.RotationOffset offset2 = ba.offsets.GetOffset((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing); Vector3 vector2 = a + ((offset2 != null) ? offset2.GetOffset(renderFlags.FlagSet(PawnRenderFlags.Portrait), pawn.story.bodyType, comp.crownType) : Vector3.zero); vector2.y = (ba.inFrontOfBody ? (0.3f + vector2.y) : (-0.3f - vector2.y)); float num = ba.angle;