diff --git a/ProjectLighthouse.sln.DotSettings b/ProjectLighthouse.sln.DotSettings index f914df07..698d69e9 100644 --- a/ProjectLighthouse.sln.DotSettings +++ b/ProjectLighthouse.sln.DotSettings @@ -102,6 +102,8 @@ True True True + True + True True True True diff --git a/ProjectLighthouse/Controllers/SlotsController.cs b/ProjectLighthouse/Controllers/SlotsController.cs index 6454920d..953ea027 100644 --- a/ProjectLighthouse/Controllers/SlotsController.cs +++ b/ProjectLighthouse/Controllers/SlotsController.cs @@ -60,8 +60,9 @@ namespace LBPUnion.ProjectLighthouse.Controllers return this.Ok(slot.Serialize()); } + [HttpGet("slots/lbp2cool")] [HttpGet("slots/cool")] - public async Task CoolSlots([FromQuery] int page) => await NewestSlots(30 * page, 30); + public async Task CoolSlots([FromQuery] int page) => await LuckyDipSlots(30 * page, 30, 69); [HttpGet("slots")] public async Task NewestSlots([FromQuery] int pageStart, [FromQuery] int pageSize) diff --git a/ProjectLighthouse/Helpers/GameVersionHelper.cs b/ProjectLighthouse/Helpers/GameVersionHelper.cs index a44721d4..09709d3f 100644 --- a/ProjectLighthouse/Helpers/GameVersionHelper.cs +++ b/ProjectLighthouse/Helpers/GameVersionHelper.cs @@ -76,11 +76,17 @@ namespace LBPUnion.ProjectLighthouse.Helpers "CUSA01304", }; + public static readonly string[] LittleBigPlanetVitaTitleIds = + { + "PCSF00021", "PCSA00017", "PCSC00013", + }; + public static GameVersion FromTitleId(string titleId) { if (LittleBigPlanet1TitleIds.Contains(titleId)) return GameVersion.LittleBigPlanet1; if (LittleBigPlanet2TitleIds.Contains(titleId)) return GameVersion.LittleBigPlanet2; if (LittleBigPlanet3TitleIds.Contains(titleId)) return GameVersion.LittleBigPlanet3; + if (LittleBigPlanetVitaTitleIds.Contains(titleId)) return GameVersion.LittleBigPlanetVita; return GameVersion.LittleBigPlanet1; } diff --git a/ProjectLighthouse/Types/GameVersion.cs b/ProjectLighthouse/Types/GameVersion.cs index c9048f88..7200527e 100644 --- a/ProjectLighthouse/Types/GameVersion.cs +++ b/ProjectLighthouse/Types/GameVersion.cs @@ -5,6 +5,7 @@ namespace LBPUnion.ProjectLighthouse.Types LittleBigPlanet1 = 0, LittleBigPlanet2 = 1, LittleBigPlanet3 = 2, - Unknown = 3, + LittleBigPlanetVita = 1, + Unknown = -1, } } \ No newline at end of file