Added unalias command. Updated to v0.22.0

This commit is contained in:
Daniel Xie
2017-06-21 12:12:08 -05:00
parent fd7796f5d1
commit 8a95fb4df7
6 changed files with 51 additions and 31 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ Company.prototype.hasPosition = function(pos) {
Company.prototype.gainFavor = function() {
if (this.favor == null || this.favor == undefined) {this.favor = 0;}
this.favor += (this.playerReputation / CONSTANTS.CompanyReputationToFavor);
this.favor += Math.max(0, (this.playerReputation-1) / CONSTANTS.CompanyReputationToFavor);
}
Company.prototype.toJSON = function() {