mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
Change fallback reward priorities (#2481)
This commit is contained in:
@@ -179,13 +179,14 @@ function sanitizeRewardType(rewardType: CodingContractRewardType): CodingContrac
|
|||||||
return false;
|
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) {
|
if (type === CodingContractRewardType.FactionReputation && factionsThatAllowHacking.length === 0) {
|
||||||
type = CodingContractRewardType.CompanyReputation;
|
type = CodingContractRewardType.Money;
|
||||||
}
|
}
|
||||||
if (type === CodingContractRewardType.FactionReputationAll && factionsThatAllowHacking.length === 0) {
|
if (type === CodingContractRewardType.FactionReputationAll && factionsThatAllowHacking.length === 0) {
|
||||||
type = CodingContractRewardType.CompanyReputation;
|
|
||||||
}
|
|
||||||
if (type === CodingContractRewardType.CompanyReputation && Object.keys(Player.jobs).length === 0) {
|
|
||||||
type = CodingContractRewardType.Money;
|
type = CodingContractRewardType.Money;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user