mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 07:55:01 +01:00
basic reward system working
This commit is contained in:
@@ -34,9 +34,17 @@ namespace nksrv.LobbyServer.Msgs.User
|
||||
{
|
||||
response.Currency.Add(new NetUserCurrencyData() { Type = (int)item.Key, Value = item.Value });
|
||||
}
|
||||
response.RepresentationTeam = user.TeamData;
|
||||
|
||||
response.LastClearedNormalMainStageId = user.LastStageCleared;
|
||||
|
||||
// Restore completed tutorials. GroupID is the first 4 digits of the Table ID.
|
||||
foreach (var item in user.ClearedTutorials)
|
||||
{
|
||||
var groupId = int.Parse(item.ToString().Substring(0, 4));
|
||||
int tutorialVersion = item == 1020101 ? 1 : 0; // TODO
|
||||
response.User.Tutorials.Add(new NetTutorialData() { GroupId = groupId, LastClearedTid = item, LastClearedVersion = tutorialVersion });
|
||||
}
|
||||
WriteData(response);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user