Fix the rewards of Second Dream #1498

Merged
Sainan merged 5 commits from VampireKitten/SpaceNinjaServerOnlyGit:main into main 2025-04-06 16:05:48 -07:00
Showing only changes of commit 76e40685ab - Show all commits

View File

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