Added crimes mechanic

This commit is contained in:
Daniel Xie
2017-05-04 00:05:48 -05:00
parent 97c132418a
commit a934205d08
6 changed files with 216 additions and 33 deletions
+14
View File
@@ -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;}
}
}
}