fix: factor all conservation rewards by count
This commit is contained in:
parent
d027e7f26e
commit
052b3106ac
@ -527,7 +527,7 @@ export const addMissionInventoryUpdates = async (
|
|||||||
addMiscItems(inventory, [
|
addMiscItems(inventory, [
|
||||||
{
|
{
|
||||||
ItemType: meta.itemReward,
|
ItemType: meta.itemReward,
|
||||||
ItemCount: capturedAnimal.NumTags
|
ItemCount: capturedAnimal.NumTags * capturedAnimal.Count
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -536,7 +536,7 @@ export const addMissionInventoryUpdates = async (
|
|||||||
addMiscItems(inventory, [
|
addMiscItems(inventory, [
|
||||||
{
|
{
|
||||||
ItemType: meta.woundedAnimalReward,
|
ItemType: meta.woundedAnimalReward,
|
||||||
ItemCount: capturedAnimal.NumExtraRewards
|
ItemCount: capturedAnimal.NumExtraRewards * capturedAnimal.Count
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
@ -548,8 +548,9 @@ export const addMissionInventoryUpdates = async (
|
|||||||
if (meta.standingReward) {
|
if (meta.standingReward) {
|
||||||
const syndicateTag =
|
const syndicateTag =
|
||||||
inventoryUpdates.Missions!.Tag == "SolNode129" ? "SolarisSyndicate" : "CetusSyndicate";
|
inventoryUpdates.Missions!.Tag == "SolNode129" ? "SolarisSyndicate" : "CetusSyndicate";
|
||||||
logger.debug(`adding ${meta.standingReward} standing to ${syndicateTag} for conservation`);
|
const standing = meta.standingReward * capturedAnimal.Count;
|
||||||
addStanding(inventory, syndicateTag, meta.standingReward);
|
logger.debug(`adding ${standing} standing to ${syndicateTag} for conservation`);
|
||||||
|
addStanding(inventory, syndicateTag, standing);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn(`ignoring conservation of unknown AnimalType: ${capturedAnimal.AnimalType}`);
|
logger.warn(`ignoring conservation of unknown AnimalType: ${capturedAnimal.AnimalType}`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user