mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-15 00:14:48 +01:00
Various bug fixes
Fix sim room system error Added stub for obtain item in field Properly save tutorial data
This commit is contained in:
@@ -123,12 +123,13 @@ namespace nksrv.LobbyServer
|
||||
};
|
||||
|
||||
|
||||
// Restore completed tutorials. GroupID is the first 4 digits of the Table ID.
|
||||
foreach (var item in user.ClearedTutorials)
|
||||
// Restore completed tutorials.
|
||||
foreach (var item in user.ClearedTutorialData)
|
||||
{
|
||||
var groupId = int.Parse(item.ToString().Substring(0, 4));
|
||||
int tutorialVersion = item == 1020101 ? 1 : 0; // TODO: Read from static data
|
||||
ret.Tutorials.Add(new NetTutorialData() { GroupId = groupId, LastClearedTid = item, LastClearedVersion = tutorialVersion });
|
||||
int groupId = item.Value.GroupId;
|
||||
int version = item.Value.VersionGroup;
|
||||
|
||||
ret.Tutorials.Add(new NetTutorialData() { GroupId = groupId, LastClearedTid = groupId, LastClearedVersion = version });
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user