Merge pull request #4237 from Jakob002/Jakob002-patch-2

MISC: message formatting
This commit is contained in:
hydroflame
2022-10-12 23:46:53 -04:00
committed by GitHub

View File

@@ -1149,7 +1149,7 @@ export function gainCodingContractReward(
if (!Factions[facName]) continue;
Factions[facName].playerReputation += gainPerFaction;
}
return `Gained ${gainPerFaction} reputation for each of the following factions: ${factions.toString()}`;
return `Gained ${gainPerFaction} reputation for each of the following factions: ${factions.join(", ")}`;
case CodingContractRewardType.CompanyReputation: {
if (reward.name == null || !Companies[reward.name]) {
//If no/invalid company was designated, just give rewards to all factions