handle multiples of the same stripped item
All checks were successful
Build / build (20) (push) Successful in 40s
Build / build (18) (push) Successful in 1m3s
Build / build (22) (push) Successful in 1m10s
Build / build (18) (pull_request) Successful in 44s
Build / build (20) (pull_request) Successful in 1m1s
Build / build (22) (pull_request) Successful in 1m3s
All checks were successful
Build / build (20) (push) Successful in 40s
Build / build (18) (push) Successful in 1m3s
Build / build (22) (push) Successful in 1m10s
Build / build (18) (pull_request) Successful in 44s
Build / build (20) (pull_request) Successful in 1m1s
Build / build (22) (pull_request) Successful in 1m3s
This commit is contained in:
parent
cdd350048e
commit
09c63277a4
@ -416,6 +416,7 @@ export const addMissionRewards = async (
|
||||
if (!droptable) {
|
||||
logger.error(`unknown droptable ${si.DropTable}`);
|
||||
} else {
|
||||
for (let i = 0; i != si.DROP_MOD.length; ++i) {
|
||||
for (const pool of droptable) {
|
||||
const reward = getRandomReward(pool.items)!;
|
||||
logger.debug(`stripped droptable rolled`, reward);
|
||||
@ -429,6 +430,7 @@ export const addMissionRewards = async (
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return { inventoryChanges, MissionRewards, credits };
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user