Fix favor threshold for donateToFaction

This commit is contained in:
Risenafis 2022-02-14 22:56:54 +09:00
parent 9ddb1c4379
commit 04cfdc76ae

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