diff --git a/ProjectLighthouse.sln.DotSettings b/ProjectLighthouse.sln.DotSettings index 105cfd7e..13d4e757 100644 --- a/ProjectLighthouse.sln.DotSettings +++ b/ProjectLighthouse.sln.DotSettings @@ -142,4 +142,5 @@ True True True + True True \ No newline at end of file diff --git a/ProjectLighthouse/Types/Levels/Slot.cs b/ProjectLighthouse/Types/Levels/Slot.cs index f2a35c21..f998cbe7 100644 --- a/ProjectLighthouse/Types/Levels/Slot.cs +++ b/ProjectLighthouse/Types/Levels/Slot.cs @@ -306,21 +306,34 @@ public class Slot LbpSerializer.StringElement("commentsEnabled", ServerSettings.Instance.LevelCommentsEnabled) + LbpSerializer.StringElement("reviewCount", this.ReviewCount); + int yourPlays; + int plays; + int playsComplete; + int playsUnique; + if (gameVersion == GameVersion.LittleBigPlanetVita) { - slotData += LbpSerializer.StringElement("yourlbp2PlayCount", yourVisitedStats?.PlaysLBPVita) + - LbpSerializer.StringElement("lbp2PlayCount", this.PlaysLBPVita) + - LbpSerializer.StringElement("lbp2CompletionCount", this.PlaysLBPVitaComplete) + - LbpSerializer.StringElement("lbp2UniquePlayCount", this.PlaysLBPVitaUnique); + yourPlays = yourVisitedStats?.PlaysLBPVita ?? 0; + plays = this.PlaysLBPVita; + playsComplete = this.PlaysLBPVitaComplete; + playsUnique = this.PlaysLBPVitaUnique; } else { - slotData += LbpSerializer.StringElement("yourlbp2PlayCount", yourVisitedStats?.PlaysLBP2) + - LbpSerializer.StringElement("lbp2PlayCount", this.PlaysLBP2) + - LbpSerializer.StringElement("lbp2CompletionCount", this.PlaysLBP2Complete) + - LbpSerializer.StringElement("lbp2UniquePlayCount", this.PlaysLBP2Unique); // not actually used ingame, as per above comment + yourPlays = yourVisitedStats?.PlaysLBP2 ?? 0; + plays = this.PlaysLBP2; + playsComplete = this.PlaysLBP2Complete; + playsUnique = this.PlaysLBP2Unique; } + slotData += LbpSerializer.StringElement("yourlbp2PlayCount", yourPlays) + + LbpSerializer.StringElement("lbp2PlayCount", plays) + + LbpSerializer.StringElement("playCount", plays) + + LbpSerializer.StringElement("lbp2CompletionCount", playsComplete) + + LbpSerializer.StringElement("completionCount", playsComplete) + + LbpSerializer.StringElement("lbp2UniquePlayCount", playsUnique) + // not actually used ingame, as per above comment + LbpSerializer.StringElement("uniquePlayCount", playsUnique); + return LbpSerializer.TaggedStringElement("slot", slotData, "type", "user"); } } \ No newline at end of file