From 04cfdc76ae2493e8aaccdd495e64459e13af9ffc Mon Sep 17 00:00:00 2001 From: Risenafis Date: Mon, 14 Feb 2022 22:56:54 +0900 Subject: [PATCH] Fix favor threshold for donateToFaction --- src/NetscriptFunctions/Singularity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index 94bbcdc55..338835203 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -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",