Added favor system for companies and factions

This commit is contained in:
Daniel Xie
2017-06-20 11:11:33 -05:00
parent e2fbca1ef0
commit 0449460c4f
13 changed files with 508 additions and 137 deletions
+1
View File
@@ -278,6 +278,7 @@ scriptCalculateOfflineProduction = function(runningScriptObj) {
runningScriptObj.log(runningScriptObj.filename + " generated $" + production + " while offline by hacking " + serv.hostname);
serv.moneyAvailable -= production;
if (serv.moneyAvailable < 0) {serv.moneyAvailable = 0;}
if (isNaN(serv.moneyAvailable)) {serv.moneyAvailable = 0;}
}
}