mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 06:02:28 +00:00
LittleBigPlanet 3 Adventure Support (#477)
* Baseline LBP3 Adventure slot support VERY unsafe and hacky to use as of now, this is just testing the waters. * ADC file type checking * Refactor & trimming This might need to be adjusted if any feature is found to be missing * isAdventure added to API * Prototype Adventure icons for Website I am not an artist, please make this more in line with the originals. * Override border radius for LBP3 Adventures * Cleaning * Remove WriteLine and unused property * Remove unused libraries * Handle tracking and submitting of Adventure scores * Check for null instead of 0 Non-adventure slots will report null, not 0 * Score for adventure slot instead of main slot * Tweaks for PR * Identify levels for photos by level resource Verify this doesn't break anything. * SlotCardPartial merge with main changes * PR resolution 2 * probably not what was wanted Use variables for style extension * Internal slots already properly identified * Return line breaks to end of Slot.cs * Remove line break added by Github thanks * Github. * Make this a one-liner * Reduce to two lines * This can also be one line * This can *also* be one line * Update ProjectLighthouse.Servers.Website/Pages/Partials/SlotCardPartial.cshtml Co-authored-by: Josh <josh@slendy.pw> * PR changes * Update ProjectLighthouse/Migrations/20220916141401_ScoreboardAdvSlot.cs Co-authored-by: Josh <josh@slendy.pw> Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
parent
83a905c8a2
commit
dfd1d9b748
14 changed files with 107 additions and 22 deletions
|
@ -63,8 +63,12 @@ public class PhotosController : ControllerBase
|
|||
{
|
||||
case SlotType.User:
|
||||
{
|
||||
Slot? slot = await this.database.Slots.FirstOrDefaultAsync(s => s.Type == SlotType.User && s.SlotId == photoSlot.SlotId);
|
||||
if (slot != null && !string.IsNullOrEmpty(slot.RootLevel)) validLevel = true;
|
||||
// We'll grab the slot by the RootLevel and see what happens from here.
|
||||
Slot? slot = await this.database.Slots.FirstOrDefaultAsync(s => s.Type == SlotType.User && s.ResourceCollection.Contains(photoSlot.RootLevel));
|
||||
if(slot == null) break;
|
||||
|
||||
if (!string.IsNullOrEmpty(slot!.RootLevel)) validLevel = true;
|
||||
if (slot.IsAdventurePlanet) photoSlot.SlotId = slot.SlotId;
|
||||
break;
|
||||
}
|
||||
case SlotType.Pod:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue