mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
debug logging info
This commit is contained in:
parent
eead6ae7ca
commit
775d3d913e
2 changed files with 10 additions and 1 deletions
Binary file not shown.
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue