Merge pull request #2980 from Risenafis/donate-threshold

Fix favor threshold for donateToFaction
This commit is contained in:
hydroflame 2022-03-01 10:37:13 -05:00 committed by GitHub
commit f3ecff2e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1212,7 +1212,7 @@ export function NetscriptSingularity(
);
return false;
}
const repNeededToDonate = Math.round(CONSTANTS.BaseFavorToDonate * BitNodeMultipliers.RepToDonateToFaction);
const repNeededToDonate = Math.floor(CONSTANTS.BaseFavorToDonate * BitNodeMultipliers.RepToDonateToFaction);
if (faction.favor < repNeededToDonate) {
workerScript.log(
"donateToFaction",