debug logging info
This commit is contained in:
parent
eead6ae7ca
commit
775d3d913e
Binary file not shown.
|
@ -23,9 +23,9 @@ namespace Rimworld_Animations {
|
||||||
List<Pawn> participants = partnerSexBaseReceiver.parteners.Append(partner).ToList();
|
List<Pawn> participants = partnerSexBaseReceiver.parteners.Append(partner).ToList();
|
||||||
|
|
||||||
GroupAnimationDef groupAnimation = AnimationUtility.FindGroupAnimation(participants, out int reorder);
|
GroupAnimationDef groupAnimation = AnimationUtility.FindGroupAnimation(participants, out int reorder);
|
||||||
|
|
||||||
if (groupAnimation != null)
|
if (groupAnimation != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
Thing anchor = (Thing)__instance.Bed ?? partner;
|
Thing anchor = (Thing)__instance.Bed ?? partner;
|
||||||
|
|
||||||
AnimationUtility.StartGroupAnimation(participants, groupAnimation, reorder, anchor);
|
AnimationUtility.StartGroupAnimation(participants, groupAnimation, reorder, anchor);
|
||||||
|
@ -33,6 +33,15 @@ namespace Rimworld_Animations {
|
||||||
|
|
||||||
foreach(Pawn participant in participants)
|
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
|
//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)
|
if (participant?.jobs?.curDriver is JobDriver_Sex participantJobDriver)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue