feat: give kahl standing when completing the new war
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (18) (push) Successful in 1m15s
				
			
		
			
				
	
				Build / build (22) (push) Successful in 1m10s
				
			
		
			
				
	
				Build / build (18) (pull_request) Successful in 51s
				
			
		
			
				
	
				Build / build (20) (push) Successful in 1m25s
				
			
		
			
				
	
				Build / build (22) (pull_request) Successful in 50s
				
			
		
			
				
	
				Build / build (20) (pull_request) Successful in 1m11s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (18) (push) Successful in 1m15s
				
			Build / build (22) (push) Successful in 1m10s
				
			Build / build (18) (pull_request) Successful in 51s
				
			Build / build (20) (push) Successful in 1m25s
				
			Build / build (22) (pull_request) Successful in 50s
				
			Build / build (20) (pull_request) Successful in 1m11s
				
			This commit is contained in:
		
							parent
							
								
									fd93f34538
								
							
						
					
					
						commit
						6a1530f746
					
				@ -82,7 +82,8 @@ import {
 | 
				
			|||||||
    INemesisDatabase,
 | 
					    INemesisDatabase,
 | 
				
			||||||
    INemesisClient,
 | 
					    INemesisClient,
 | 
				
			||||||
    IInfNode,
 | 
					    IInfNode,
 | 
				
			||||||
    IDiscoveredMarker
 | 
					    IDiscoveredMarker,
 | 
				
			||||||
 | 
					    IWeeklyMission
 | 
				
			||||||
} from "../../types/inventoryTypes/inventoryTypes";
 | 
					} from "../../types/inventoryTypes/inventoryTypes";
 | 
				
			||||||
import { IOid } from "../../types/commonTypes";
 | 
					import { IOid } from "../../types/commonTypes";
 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
@ -445,6 +446,18 @@ kubrowPetEggSchema.set("toJSON", {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const weeklyMissionSchema = new Schema<IWeeklyMission>(
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        MissionIndex: Number,
 | 
				
			||||||
 | 
					        CompletedMission: Boolean,
 | 
				
			||||||
 | 
					        JobManifest: String,
 | 
				
			||||||
 | 
					        Challenges: [String],
 | 
				
			||||||
 | 
					        ChallengesReset: Boolean,
 | 
				
			||||||
 | 
					        WeekCount: Number
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    { _id: false }
 | 
				
			||||||
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const affiliationsSchema = new Schema<IAffiliation>(
 | 
					const affiliationsSchema = new Schema<IAffiliation>(
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Initiated: Boolean,
 | 
					        Initiated: Boolean,
 | 
				
			||||||
@ -452,6 +465,7 @@ const affiliationsSchema = new Schema<IAffiliation>(
 | 
				
			|||||||
        Title: Number,
 | 
					        Title: Number,
 | 
				
			||||||
        FreeFavorsEarned: { type: [Number], default: undefined },
 | 
					        FreeFavorsEarned: { type: [Number], default: undefined },
 | 
				
			||||||
        FreeFavorsUsed: { type: [Number], default: undefined },
 | 
					        FreeFavorsUsed: { type: [Number], default: undefined },
 | 
				
			||||||
 | 
					        WeeklyMissions: { type: [weeklyMissionSchema], default: undefined },
 | 
				
			||||||
        Tag: String
 | 
					        Tag: String
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    { _id: false }
 | 
					    { _id: false }
 | 
				
			||||||
 | 
				
			|||||||
@ -60,6 +60,23 @@ export const updateQuestKey = async (
 | 
				
			|||||||
            inventoryChanges = await addItems(inventory as TInventoryDatabaseDocument, questCompletionItems);
 | 
					            inventoryChanges = await addItems(inventory as TInventoryDatabaseDocument, questCompletionItems);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        inventory.ActiveQuest = "";
 | 
					        inventory.ActiveQuest = "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (questKeyUpdate[0].ItemType == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain") {
 | 
				
			||||||
 | 
					            inventory.Affiliations.push({
 | 
				
			||||||
 | 
					                Title: 1,
 | 
				
			||||||
 | 
					                Standing: 1,
 | 
				
			||||||
 | 
					                WeeklyMissions: [
 | 
				
			||||||
 | 
					                    {
 | 
				
			||||||
 | 
					                        MissionIndex: 0,
 | 
				
			||||||
 | 
					                        CompletedMission: false,
 | 
				
			||||||
 | 
					                        JobManifest: "/Lotus/Syndicates/Kahl/KahlJobManifestVersionThree",
 | 
				
			||||||
 | 
					                        WeekCount: 0,
 | 
				
			||||||
 | 
					                        Challenges: []
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                ],
 | 
				
			||||||
 | 
					                Tag: "KahlSyndicate"
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return inventoryChanges;
 | 
					    return inventoryChanges;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
@ -354,9 +354,19 @@ export interface IAffiliation {
 | 
				
			|||||||
    Title?: number;
 | 
					    Title?: number;
 | 
				
			||||||
    FreeFavorsEarned?: number[];
 | 
					    FreeFavorsEarned?: number[];
 | 
				
			||||||
    FreeFavorsUsed?: number[];
 | 
					    FreeFavorsUsed?: number[];
 | 
				
			||||||
 | 
					    WeeklyMissions?: IWeeklyMission[]; // Kahl
 | 
				
			||||||
    Tag: string;
 | 
					    Tag: string;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export interface IWeeklyMission {
 | 
				
			||||||
 | 
					    MissionIndex: number;
 | 
				
			||||||
 | 
					    CompletedMission: boolean;
 | 
				
			||||||
 | 
					    JobManifest: string;
 | 
				
			||||||
 | 
					    Challenges: string[];
 | 
				
			||||||
 | 
					    ChallengesReset?: boolean;
 | 
				
			||||||
 | 
					    WeekCount: number;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export interface IAlignment {
 | 
					export interface IAlignment {
 | 
				
			||||||
    Wisdom: number;
 | 
					    Wisdom: number;
 | 
				
			||||||
    Alignment: number;
 | 
					    Alignment: number;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user