debug logging info

This commit is contained in:
c0ffee 2024-05-03 07:35:55 -07:00
parent eead6ae7ca
commit 775d3d913e
2 changed files with 10 additions and 1 deletions

View File

@ -23,9 +23,9 @@ namespace Rimworld_Animations {
List<Pawn> participants = partnerSexBaseReceiver.parteners.Append(partner).ToList();
GroupAnimationDef groupAnimation = AnimationUtility.FindGroupAnimation(participants, out int reorder);
if (groupAnimation != null)
{
Thing anchor = (Thing)__instance.Bed ?? partner;
AnimationUtility.StartGroupAnimation(participants, groupAnimation, reorder, anchor);
@ -33,6 +33,15 @@ namespace Rimworld_Animations {
foreach(Pawn participant in participants)
{
if (RJWAnimationSettings.debugMode)
{
Log.Message("1");
Log.Message("Participant: " + participant.Name);
Log.Message("2");
Log.Message("JobDriver: " + participant.CurJobDef.defName);
}
//null ref check for pawns that might have lost their jobs or become null for some reason
if (participant?.jobs?.curDriver is JobDriver_Sex participantJobDriver)
{