MISC: message formatting

Replaced someArray.toString() with someArray.join(", "). This will return "foo, bar, baz" (with spaces) instead of "foo,bar,baz" (no spaces).
This commit is contained in:
Jakob002 2022-10-12 15:16:10 +02:00 committed by GitHub
parent 1d5d839cd9
commit c2ed9067e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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