forked from OpenWF/SpaceNinjaServer
		
	feat: track LastRegionPlayed (#428)
Co-authored-by: Sainan <Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									97ddfecfb5
								
							
						
					
					
						commit
						4e03b7b92e
					
				@ -669,6 +669,11 @@ export const missionInventoryUpdate = async (data: IMissionInventoryUpdateReques
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // LastRegionPlayed
 | 
			
		||||
    if (data.LastRegionPlayed) {
 | 
			
		||||
        inventory.LastRegionPlayed = data.LastRegionPlayed;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // other
 | 
			
		||||
    addMods(inventory, RawUpgrades);
 | 
			
		||||
    addMiscItems(inventory, MiscItems);
 | 
			
		||||
 | 
			
		||||
@ -86,6 +86,24 @@ export interface IMailbox {
 | 
			
		||||
    LastInboxId: IOid;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type TSolarMapRegion =
 | 
			
		||||
    | "Earth"
 | 
			
		||||
    | "Ceres"
 | 
			
		||||
    | "Eris"
 | 
			
		||||
    | "Europa"
 | 
			
		||||
    | "Jupiter"
 | 
			
		||||
    | "Mars"
 | 
			
		||||
    | "Mercury"
 | 
			
		||||
    | "Neptune"
 | 
			
		||||
    | "Phobos"
 | 
			
		||||
    | "Pluto"
 | 
			
		||||
    | "Saturn"
 | 
			
		||||
    | "Sedna"
 | 
			
		||||
    | "Uranus"
 | 
			
		||||
    | "Venus"
 | 
			
		||||
    | "Void"
 | 
			
		||||
    | "SolarMapDeimosName";
 | 
			
		||||
 | 
			
		||||
//TODO: perhaps split response and database into their own files
 | 
			
		||||
 | 
			
		||||
export interface IPendingRecipeResponse extends Omit<IPendingRecipe, "CompletionDate"> {
 | 
			
		||||
@ -142,7 +160,7 @@ export interface IInventoryResponse {
 | 
			
		||||
    CurrentLoadOutIds: Array<any[] | IOid>;
 | 
			
		||||
    Missions: IMission[];
 | 
			
		||||
    RandomUpgradesIdentified?: number;
 | 
			
		||||
    LastRegionPlayed: string;
 | 
			
		||||
    LastRegionPlayed: TSolarMapRegion;
 | 
			
		||||
    XPInfo: ITypeXPItem[];
 | 
			
		||||
    Recipes: ITypeCount[];
 | 
			
		||||
    WeaponSkins: IWeaponSkinClient[];
 | 
			
		||||
 | 
			
		||||
@ -11,6 +11,7 @@ import {
 | 
			
		||||
    IMission,
 | 
			
		||||
    IRawUpgrade,
 | 
			
		||||
    ISeasonChallenge,
 | 
			
		||||
    TSolarMapRegion,
 | 
			
		||||
    TEquipmentKey
 | 
			
		||||
} from "./inventoryTypes/inventoryTypes";
 | 
			
		||||
 | 
			
		||||
@ -57,6 +58,7 @@ export interface IMissionInventoryUpdateRequest {
 | 
			
		||||
    RewardInfo?: IMissionInventoryUpdateRequestRewardInfo;
 | 
			
		||||
    Missions?: IMission;
 | 
			
		||||
    EvolutionProgress?: IEvolutionProgress[];
 | 
			
		||||
    LastRegionPlayed?: TSolarMapRegion;
 | 
			
		||||
 | 
			
		||||
    FusionPoints?: number; // Not a part of the request, but we put it in this struct as an intermediate storage.
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user