mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 07:02:26 +01:00
Improved error handling for Faction Banning mechanism
This commit is contained in:
parent
2f716b5b23
commit
bfed8c91e2
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -155,7 +155,9 @@ function joinFaction(faction) {
|
||||
//Determine what factions you are banned from now that you have joined this faction
|
||||
for(const i in factionInfo.enemies) {
|
||||
const enemy = factionInfo.enemies[i];
|
||||
Factions[enemy].isBanned = true;
|
||||
if (Factions[enemy] instanceof Faction) {
|
||||
Factions[enemy].isBanned = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -589,8 +589,6 @@ PlayerObject.prototype.gainIntelligenceExp = function(exp) {
|
||||
}
|
||||
if (hasAISF || this.intelligence > 0) {
|
||||
this.intelligence_exp += exp;
|
||||
} else {
|
||||
console.log("Not gaining intelligence experience bc it hasn't been unlocked yet");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ function factionInvitationBoxCreate(faction) {
|
||||
//Remove from invited factions
|
||||
var i = Player.factionInvitations.findIndex((facName)=>{return facName === faction.name});
|
||||
if (i === -1) {
|
||||
console.log("ERROR: Could not find faction in Player.factionInvitations");
|
||||
console.error("Could not find faction in Player.factionInvitations");
|
||||
} else {
|
||||
Player.factionInvitations.splice(i, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user