From a1cd736d33111d98e1c4277dae8af44f57048649 Mon Sep 17 00:00:00 2001 From: teejusb <5017202+teejusb@users.noreply.github.com> Date: Tue, 9 May 2023 20:45:01 -0700 Subject: [PATCH] Add EarlyTapNoteScore to JudgmentMessage --- src/Player.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Player.cpp b/src/Player.cpp index a13f436423..93ae7a7d3e 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -3291,6 +3291,7 @@ void Player::SetJudgment( int iRow, int iTrack, const TapNote &tn, TapNoteScore msg.SetParam( "TapNoteScore", tns ); msg.SetParam( "Early", fTapNoteOffset < 0.0f ); msg.SetParam( "TapNoteOffset", tn.result.fTapNoteOffset ); + msg.SetParam( "EarlyTapNoteScore", tn.result.earlyTns ); if ( tns == TNS_Miss ) msg.SetParam( "HeldMiss", tn.result.bHeld ); @@ -3341,6 +3342,7 @@ void Player::SetHoldJudgment( TapNote &tn, int iTrack ) msg.SetParam( "NumTracks", (int)m_vpHoldJudgment.size() ); msg.SetParam( "TapNoteScore", tn.result.tns ); msg.SetParam( "HoldNoteScore", tn.HoldResult.hns ); + msg.SetParam( "EarlyTapNoteScore", tn.result.earlyTns ); Lua* L = LUA->Get(); tn.PushSelf(L);