mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
Added crimes mechanic
This commit is contained in:
@@ -771,4 +771,18 @@ displayFactionAugmentations = function(factionName) {
|
||||
|
||||
augmentationsList.appendChild(item);
|
||||
}
|
||||
}
|
||||
|
||||
function processPassiveFactionRepGain(numCycles) {
|
||||
var numTimesGain = numCycles / 600;
|
||||
for (var name in Factions) {
|
||||
if (Factions.hasOwnProperty(name)) {
|
||||
var faction = Factions[name];
|
||||
|
||||
//TODO Get hard value of 1 rep per "rep gain cycle"" for now..
|
||||
//maybe later make this based on
|
||||
//a player's 'status' like how powerful they are and how much money they have
|
||||
if (faction.isMember) {faction.playerReputation += numTimesGain;}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user