fix giveKeyChainTriggeredItems itemType
This commit is contained in:
parent
1ad3899955
commit
7679ddec16
@ -81,11 +81,9 @@ export const giveKeyChainTriggeredItems = async (accountId: string, keyChain: st
|
|||||||
if (quest.chainStages) {
|
if (quest.chainStages) {
|
||||||
const stage = quest.chainStages[chainStage];
|
const stage = quest.chainStages[chainStage];
|
||||||
if (stage.itemsToGiveWhenTriggered.length > 0) {
|
if (stage.itemsToGiveWhenTriggered.length > 0) {
|
||||||
let itemType = stage.itemsToGiveWhenTriggered[0];
|
const itemType = stage.itemsToGiveWhenTriggered[0];
|
||||||
if (itemType.indexOf("") > 0) {
|
|
||||||
itemType = itemType.replace("/Lotus/StoreItems/", "/Lotus/");
|
await addItem(accountId, itemType.replace("/Lotus/StoreItems/", "/Lotus/"), 1);
|
||||||
}
|
|
||||||
await addItem(accountId, itemType, 1);
|
|
||||||
|
|
||||||
if (itemType in ExportRecipes) {
|
if (itemType in ExportRecipes) {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user