From 95d08d77223ea4498e20a266b45202fd54bb9c28 Mon Sep 17 00:00:00 2001 From: gmcew <97335456+gmcew@users.noreply.github.com> Date: Sat, 7 Feb 2026 16:50:40 +0000 Subject: [PATCH] Change fallback reward priorities (#2481) --- src/CodingContract/ContractGenerator.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CodingContract/ContractGenerator.ts b/src/CodingContract/ContractGenerator.ts index 238d60115..9c2cbbeeb 100644 --- a/src/CodingContract/ContractGenerator.ts +++ b/src/CodingContract/ContractGenerator.ts @@ -179,13 +179,14 @@ function sanitizeRewardType(rewardType: CodingContractRewardType): CodingContrac return false; } }); + if (type === CodingContractRewardType.CompanyReputation && Object.keys(Player.jobs).length === 0) { + type = + Math.random() < 0.5 ? CodingContractRewardType.FactionReputation : CodingContractRewardType.FactionReputationAll; + } if (type === CodingContractRewardType.FactionReputation && factionsThatAllowHacking.length === 0) { - type = CodingContractRewardType.CompanyReputation; + type = CodingContractRewardType.Money; } if (type === CodingContractRewardType.FactionReputationAll && factionsThatAllowHacking.length === 0) { - type = CodingContractRewardType.CompanyReputation; - } - if (type === CodingContractRewardType.CompanyReputation && Object.keys(Player.jobs).length === 0) { type = CodingContractRewardType.Money; }