Fix acquiring blueprints as rewards
Some checks failed
Build / build (20) (pull_request) Failing after 38s
Build / build (18) (pull_request) Failing after 1m5s
Build / build (22) (pull_request) Failing after 1m14s

Fixes the acquisition of blueprints as rewards, such as those rewarded by the Junctions.
This commit is contained in:
VampireKitten 2025-02-25 17:59:23 +01:00
parent 93afc2645c
commit 76e40685ab

View File

@ -351,7 +351,7 @@ export const addFixedLevelRewards = (
if (rewards.items) {
for (const item of rewards.items) {
MissionRewards.push({
StoreItem: `/Lotus/StoreItems${item.substring("Lotus/".length)}`,
StoreItem: item.includes(`/StoreItems/`) ? item : `/Lotus/StoreItems${item.substring("Lotus/".length)}`,
ItemCount: 1
});
}
@ -359,7 +359,7 @@ export const addFixedLevelRewards = (
if (rewards.countedItems) {
for (const item of rewards.countedItems) {
MissionRewards.push({
StoreItem: `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
StoreItem: item.ItemType.includes(`/StoreItems/`) ? item.ItemType : `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
ItemCount: item.ItemCount
});
}