kahl syndicate parity
All checks were successful
Build / build (18) (push) Successful in 1m14s
Build / build (22) (push) Successful in 1m14s
Build / build (20) (push) Successful in 40s
Build / build (18) (pull_request) Successful in 41s
Build / build (20) (pull_request) Successful in 1m11s
Build / build (22) (pull_request) Successful in 38s
All checks were successful
Build / build (18) (push) Successful in 1m14s
Build / build (22) (push) Successful in 1m14s
Build / build (20) (push) Successful in 40s
Build / build (18) (pull_request) Successful in 41s
Build / build (20) (pull_request) Successful in 1m11s
Build / build (22) (pull_request) Successful in 38s
This commit is contained in:
parent
2aa8219bf6
commit
5ffb4744e4
@ -1338,3 +1338,20 @@ const createCalendar = (): ICalendarProgress => {
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export const setupKahlSyndicate = (inventory: TInventoryDatabaseDocument): void => {
|
||||
inventory.Affiliations.push({
|
||||
Title: 1,
|
||||
Standing: 1,
|
||||
WeeklyMissions: [
|
||||
{
|
||||
MissionIndex: 0,
|
||||
CompletedMission: false,
|
||||
JobManifest: "/Lotus/Syndicates/Kahl/KahlJobManifestVersionThree",
|
||||
WeekCount: 0,
|
||||
Challenges: []
|
||||
}
|
||||
],
|
||||
Tag: "KahlSyndicate"
|
||||
});
|
||||
};
|
||||
|
@ -2,7 +2,7 @@ import { IKeyChainRequest } from "@/src/controllers/api/giveKeyChainTriggeredIte
|
||||
import { isEmptyObject } from "@/src/helpers/general";
|
||||
import { TInventoryDatabaseDocument } from "@/src/models/inventoryModels/inventoryModel";
|
||||
import { createMessage } from "@/src/services/inboxService";
|
||||
import { addItem, addItems, addKeyChainItems } from "@/src/services/inventoryService";
|
||||
import { addItem, addItems, addKeyChainItems, setupKahlSyndicate } from "@/src/services/inventoryService";
|
||||
import {
|
||||
fromStoreItem,
|
||||
getKeyChainMessage,
|
||||
@ -62,20 +62,7 @@ export const updateQuestKey = async (
|
||||
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"
|
||||
});
|
||||
setupKahlSyndicate(inventory as TInventoryDatabaseDocument);
|
||||
}
|
||||
}
|
||||
return inventoryChanges;
|
||||
@ -219,6 +206,10 @@ export const completeQuest = async (inventory: TInventoryDatabaseDocument, quest
|
||||
}
|
||||
|
||||
inventory.ActiveQuest = "";
|
||||
|
||||
if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain") {
|
||||
setupKahlSyndicate(inventory);
|
||||
}
|
||||
};
|
||||
|
||||
export const giveKeyChainItem = async (
|
||||
|
Loading…
x
Reference in New Issue
Block a user