feat: death marks
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (18) (push) Successful in 43s
				
			
		
			
				
	
				Build / build (20) (push) Successful in 1m3s
				
			
		
			
				
	
				Build / build (22) (push) Successful in 1m9s
				
			
		
			
				
	
				Build / build (18) (pull_request) Successful in 42s
				
			
		
			
				
	
				Build / build (20) (pull_request) Successful in 1m2s
				
			
		
			
				
	
				Build / build (22) (pull_request) Successful in 1m10s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (18) (push) Successful in 43s
				
			Build / build (20) (push) Successful in 1m3s
				
			Build / build (22) (push) Successful in 1m9s
				
			Build / build (18) (pull_request) Successful in 42s
				
			Build / build (20) (pull_request) Successful in 1m2s
				
			Build / build (22) (pull_request) Successful in 1m10s
				
			This commit is contained in:
		
							parent
							
								
									56a372ee6f
								
							
						
					
					
						commit
						0085e12753
					
				@ -1400,7 +1400,7 @@ const inventorySchema = new Schema<IInventoryDatabase, InventoryDocumentProps>(
 | 
				
			|||||||
        //Discount Coupon
 | 
					        //Discount Coupon
 | 
				
			||||||
        PendingCoupon: pendingCouponSchema,
 | 
					        PendingCoupon: pendingCouponSchema,
 | 
				
			||||||
        //Like BossAladV,BossCaptainVor come for you on missions % chance
 | 
					        //Like BossAladV,BossCaptainVor come for you on missions % chance
 | 
				
			||||||
        DeathMarks: [String],
 | 
					        DeathMarks: { type: [String], default: [] },
 | 
				
			||||||
        //Zanuka
 | 
					        //Zanuka
 | 
				
			||||||
        Harvestable: Boolean,
 | 
					        Harvestable: Boolean,
 | 
				
			||||||
        //Grustag three
 | 
					        //Grustag three
 | 
				
			||||||
 | 
				
			|||||||
@ -294,6 +294,25 @@ export const addMissionInventoryUpdates = async (
 | 
				
			|||||||
                inventory.SeasonChallengeHistory.push(...processedCompletions);
 | 
					                inventory.SeasonChallengeHistory.push(...processedCompletions);
 | 
				
			||||||
                break;
 | 
					                break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            case "DeathMarks": {
 | 
				
			||||||
 | 
					                for (const deathMark of value) {
 | 
				
			||||||
 | 
					                    if (!inventory.DeathMarks.find(x => x == deathMark)) {
 | 
				
			||||||
 | 
					                        // It's a new death mark; we have to say the line.
 | 
				
			||||||
 | 
					                        await createMessage(inventory.accountOwnerId.toString(), [
 | 
				
			||||||
 | 
					                            {
 | 
				
			||||||
 | 
					                                sub: "/Lotus/Language/G1Quests/DeathMarkTitle",
 | 
				
			||||||
 | 
					                                sndr: "/Lotus/Language/G1Quests/DeathMarkSender",
 | 
				
			||||||
 | 
					                                msg: "/Lotus/Language/G1Quests/DeathMarkMessage",
 | 
				
			||||||
 | 
					                                icon: "/Lotus/Interface/Icons/Npcs/Stalker_d.png",
 | 
				
			||||||
 | 
					                                highPriority: true
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                        ]);
 | 
				
			||||||
 | 
					                        // TODO: This type of inbox message seems to automatically delete itself. Figure out under which conditions.
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                inventory.DeathMarks = value;
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            default:
 | 
					            default:
 | 
				
			||||||
                // Equipment XP updates
 | 
					                // Equipment XP updates
 | 
				
			||||||
                if (equipmentKeys.includes(key as TEquipmentKey)) {
 | 
					                if (equipmentKeys.includes(key as TEquipmentKey)) {
 | 
				
			||||||
 | 
				
			|||||||
@ -107,6 +107,7 @@ export type IMissionInventoryUpdateRequest = {
 | 
				
			|||||||
        DropTable: string;
 | 
					        DropTable: string;
 | 
				
			||||||
        DROP_MOD: number[];
 | 
					        DROP_MOD: number[];
 | 
				
			||||||
    }[];
 | 
					    }[];
 | 
				
			||||||
 | 
					    DeathMarks?: string[];
 | 
				
			||||||
} & {
 | 
					} & {
 | 
				
			||||||
    [K in TEquipmentKey]?: IEquipmentClient[];
 | 
					    [K in TEquipmentKey]?: IEquipmentClient[];
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user