Skip to content

Commit

Permalink
Merge pull request #5475 from IllianiCBT/resupply_smugglersDialogBug
Browse files Browse the repository at this point in the history
Fixed Resupply Smuggler Dialog Formatting
  • Loading branch information
HammerGS authored Dec 22, 2024
2 parents 245e761 + 08dd0b1 commit fe9a00e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,16 +319,14 @@ private static String getInitialDescription(Resupply resupply) {
yield String.format(message, value);
}
case RESUPPLY_SMUGGLER -> {
String message = String.format(
resources.getString("guerrillaSupplies" + randomInt(25) + ".text"),
campaign.getCommanderAddress(true), getEnemyFactionReference(resupply),
resupply.getConvoyContentsValueCalculated().toAmountAndSymbolString());

String value = String.format(resources.getString("supplyCostFull.text"),
resupply.getConvoyContentsValueCalculated().toAmountAndSymbolString(),
resupply.getConvoyContentsValueBase().toAmountAndSymbolString());

yield String.format(message, value);
yield String.format(
resources.getString("guerrillaSupplies" + randomInt(25) + ".text"),
campaign.getCommanderAddress(true), getEnemyFactionReference(resupply),
resupply.getConvoyContentsValueCalculated().toAmountAndSymbolString(), value);
}
};
}
Expand Down

0 comments on commit fe9a00e

Please sign in to comment.