Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Killface1980 committed Oct 20, 2018
1 parent b145036 commit 134d937
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 18 deletions.
Binary file modified Assemblies/FacialStuff.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Defs/ThingDefs/PawnAnimationTargets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<li Class ="FacialStuff.QuadrupedDrawer"/>
</bodyDrawers>
<thingTargets>
<li>Mechanoid_Centipede</li>
<li>Mech_Centipede</li>
</thingTargets>
</li>
<li>
Expand All @@ -54,7 +54,7 @@
<li Class="FacialStuff.HumanBipedDrawer" />
</bodyDrawers>
<thingTargets>
<li>Mechanoid_Scyther</li>
<li>Mech_Scyther</li>
</thingTargets>
</li>

Expand Down
4 changes: 0 additions & 4 deletions Source/RW_FacialStuff/Components/CompBodyAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,8 @@ public override void PostDraw()
}

// Tweener
#if !DEBUG
Vector3Tween eqTween = this.Vector3Tweens[(int)HarmonyPatchesFS.equipment];
#else
Vector3Tween eqTween = new Vector3Tween();

#endif
FloatTween angleTween = this.AimAngleTween;
Vector3Tween leftHand = this.Vector3Tweens[(int)TweenThing.HandLeft];
Vector3Tween rightHand = this.Vector3Tweens[(int)TweenThing.HandRight];
Expand Down
3 changes: 1 addition & 2 deletions Source/RW_FacialStuff/FaceEditor/Job_FaceStyling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ private Toil Toils_WaitWithSoundAndEffect()
if (actor != null
&& actor.Position == this.TargetA.Thing.InteractionCell)
{
#if !DEBUG

HarmonyPatchesFS.OpenStylingWindow(actor);
#endif

}
}
else
Expand Down
6 changes: 0 additions & 6 deletions Source/RW_FacialStuff/GraphicsFS/HumanMouthGraphics.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using FacialStuff.DefOfs;
#if !DEBUG
using Harmony;
#endif
using JetBrains.Annotations;
using UnityEngine;
using Verse;
Expand Down Expand Up @@ -95,10 +93,8 @@ public HumanMouthGraphics([NotNull] Pawn p)
};
if (flag)
{
#if !DEBUG

this.HumanMouthGraphic.Add(new MouthGraphicData(minor + 4 * part, mouthGraphicGrin));
#endif
}
}
else
Expand All @@ -114,10 +110,8 @@ public HumanMouthGraphics([NotNull] Pawn p)
};
if (flag)
{
#if !DEBUG

this.HumanMouthGraphic.Add(new MouthGraphicData(0.95f, mouthGraphicGrin));
#endif
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions Source/RW_FacialStuff/HairCut/HairCutPawn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ public Material HairCutMatAt(Rot4 facing)
{
if (this.HairCutGraphic == null)
{
#if !DEBUG
HarmonyPatchesFS.ResolveApparelGraphics_Postfix(this.Pawn.Drawer.renderer.graphics);

#endif
}

Material material = this.HairCutGraphic?.MatAt(facing);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ public static void AddFaceEditButton(PanelBackstory __instance, State state)
if (Widgets.ButtonInvisible(rect))
{
SoundDefOf.Tick_Low.PlayOneShotOnCamera();
#if !DEBUG
HarmonyPatchesFS.OpenStylingWindow(pawn);
#endif
}
}
}
Expand Down

0 comments on commit 134d937

Please sign in to comment.