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
commit 70fa66c3e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1149,7 +1149,7 @@ export function gainCodingContractReward(
if (!Factions[facName]) continue; if (!Factions[facName]) continue;
Factions[facName].playerReputation += gainPerFaction; 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: { case CodingContractRewardType.CompanyReputation: {
if (reward.name == null || !Companies[reward.name]) { if (reward.name == null || !Companies[reward.name]) {
//If no/invalid company was designated, just give rewards to all factions //If no/invalid company was designated, just give rewards to all factions