mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-24 05:35:51 +12:00
Re-Time Every Event.
This commit is contained in:
parent
b5ae6946a9
commit
d7e350fef6
2 changed files with 16 additions and 6 deletions
|
@ -22,6 +22,7 @@ namespace HISP.Game.Events
|
|||
public string[] Answers;
|
||||
public bool Active;
|
||||
public int Reward;
|
||||
public static bool LastWon = false;
|
||||
private Timer riddleTimeout;
|
||||
private const int RIDDLE_TIMEOUT = 5;
|
||||
|
||||
|
@ -58,6 +59,8 @@ namespace HISP.Game.Events
|
|||
if (Database.HasPlayerCompletedRealTimeRiddle(RiddleId, winner.Id))
|
||||
return;
|
||||
|
||||
LastWon = true;
|
||||
|
||||
Database.CompleteRealTimeRiddle(RiddleId, winner.Id);
|
||||
|
||||
winner.TrackedItems.GetTrackedItem(Tracking.TrackableItem.RiddleWin).Count++;
|
||||
|
@ -97,6 +100,7 @@ namespace HISP.Game.Events
|
|||
if (client.LoggedIn)
|
||||
client.SendPacket(riddleTimedOutMessage);
|
||||
}
|
||||
LastWon = false;
|
||||
EndEvent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue