Skip to content

Commit

Permalink
Fix macrocheck message
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Aug 23, 2024
1 parent dc11596 commit 1203aeb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Scripts/Nelderim/Engines/MacroCheck/CheckPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,16 @@ public void PlayerRequest( bool isTrue )
TimeSpan clickbutton = DateTime.Now - m_Start;

if ( isTrue )
m_GM.SendMessage( 0x40, "Gracz {0} poprawnie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , TimeSpanFormat( clickbutton ) );
m_GM.SendMessage( 0x40, "Gracz {0} poprawnie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , clickbutton.TotalSeconds );
else
m_GM.SendMessage( 0x20, "Gracz {0} blednie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , TimeSpanFormat( clickbutton ) );
m_GM.SendMessage( 0x20, "Gracz {0} blednie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , clickbutton.TotalSeconds );
}

public void PlayerRequest()
{
PlayerRequest( true );
}


public static string TimeSpanFormat( TimeSpan time )
{
return String.Format("{0}", time.Seconds );
}


public void TimeOut()
{
if ( m_Timer != null )
Expand Down

0 comments on commit 1203aeb

Please sign in to comment.