Skip to content

Commit

Permalink
Fix incorrect variable used in smuggler resupply cost calculation
Browse files Browse the repository at this point in the history
Updated the cost calculation to use `buyValue` instead of `sellValue` for smuggler resupplies. This ensures the correct pricing logic is applied when determining convoy contents value.
  • Loading branch information
IllianiCBT committed Jan 9, 2025
1 parent 4879492 commit 1a30a50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private static void calculateConvoyWorth(Resupply resupply) {

// Smugglers always double the cost of the supplies they're offering
if (resupplyType.equals(ResupplyType.RESUPPLY_SMUGGLER)) {
resupply.setConvoyContentsValueCalculated(sellValue.multipliedBy(2));
resupply.setConvoyContentsValueCalculated(buyValue.multipliedBy(2));
return ;
}

Expand Down

0 comments on commit 1a30a50

Please sign in to comment.