Skip to content

Commit e2cc862

Browse files
committed
SerializedLbp3ChallengeList: FromDefault() -> Default, correct wrongly attributed pin progress types
1 parent b82815d commit e2cc862

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

Refresh.Interfaces.Game/Endpoints/Handshake/MetadataEndpoints.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public string ChallengeConfig(RequestContext context)
228228
namespaces.Add("", "");
229229

230230
XmlSerializer serializer = new(typeof(SerializedLbp3ChallengeList));
231-
serializer.Serialize(bunkumXmlTextWriter, SerializedLbp3ChallengeList.FromDefault(), namespaces);
231+
serializer.Serialize(bunkumXmlTextWriter, SerializedLbp3ChallengeList.Default, namespaces);
232232

233233
ms.Seek(0, SeekOrigin.Begin);
234234
using StreamReader reader = new(ms);

Refresh.Interfaces.Game/Types/Challenges/Lbp3/SerializedLbp3ChallengeList.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ public class SerializedLbp3ChallengeList
5555
/// but every challenge has a duration/period of 3 days.
5656
/// LBP3 doesn't care if any timestamps are in the past, and simply wraps the challenge periods in that case.
5757
/// </returns>
58-
public static SerializedLbp3ChallengeList FromDefault()
59-
{
60-
return new()
58+
public static SerializedLbp3ChallengeList Default
59+
=> new()
6160
{
6261
TotalChallenges = 14,
6362
EndTime = StartTimestamp + 14 * Duration,
@@ -75,7 +74,7 @@ public static SerializedLbp3ChallengeList FromDefault()
7574
LamsDescriptionId = "CHALLENGE_NEWTONBOUNCE_DESC",
7675
LamsTitleId = "CHALLENGE_NEWTONBOUNCE_NAME",
7776
ScoreMedalPinProgressType = (long)ServerPins.OverLineLbp3ChallengeMedal,
78-
ScoreRankingPinProgressType = (long)ServerPins.OverLineLbp3ChallengeMedal,
77+
ScoreRankingPinProgressType = (long)ServerPins.OverLineLbp3ChallengeRanking,
7978
ContentName = "TG_LittleBigPlanet3",
8079
PlanetUser = "qd3c781a5a6-GBen",
8180
PlanetId = 1085260,
@@ -89,7 +88,7 @@ public static SerializedLbp3ChallengeList FromDefault()
8988
LamsDescriptionId = "CHALLENGE_SCREENCHASE_DESC",
9089
LamsTitleId = "CHALLENGE_SCREENCHASE_NAME",
9190
ScoreMedalPinProgressType = (long)ServerPins.PixelPaceLbp3ChallengeMedal,
92-
ScoreRankingPinProgressType = (long)ServerPins.PixelPaceLbp3ChallengeMedal,
91+
ScoreRankingPinProgressType = (long)ServerPins.PixelPaceLbp3ChallengeRanking,
9392
ContentName = "TG_LittleBigPlanet2",
9493
PlanetUser = "qd3c781a5a6-GBen",
9594
PlanetId = 1102387,
@@ -132,7 +131,7 @@ public static SerializedLbp3ChallengeList FromDefault()
132131
LamsDescriptionId = "CHALLENGE_ISLANDRACE_DESC",
133132
LamsTitleId = "CHALLENGE_ISLANDRACE_NAME",
134133
ScoreMedalPinProgressType = (long)ServerPins.ToggleIslandLbp3ChallengeMedal,
135-
ScoreRankingPinProgressType = (long)ServerPins.ToggleIslandLbp3ChallengeMedal,
134+
ScoreRankingPinProgressType = (long)ServerPins.ToggleIslandLbp3ChallengeRanking,
136135
ContentName = "TG_LittleBigPlanet",
137136
PlanetUser = "qd3c781a5a6-GBen",
138137
PlanetId = 1102858,
@@ -268,5 +267,5 @@ public static SerializedLbp3ChallengeList FromDefault()
268267
},
269268
],
270269
};
271-
}
270+
272271
}

0 commit comments

Comments
 (0)