Change fallback reward priorities (#2481)

This commit is contained in:
gmcew
2026-02-07 16:50:40 +00:00
committed by GitHub
parent 60a8996707
commit 95d08d7722

View File

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