mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Merge pull request #942 from danielyxie/dev
Another build for the quick and easy stuff.
This commit is contained in:
commit
8be63be17b
4
dist/engine.bundle.js
vendored
4
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/vendor.bundle.js
vendored
2
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -238,6 +238,11 @@ export function processPassiveFactionRepGain(numCycles) {
|
||||
if (!Factions.hasOwnProperty(name)) continue;
|
||||
const faction = Factions[name];
|
||||
if (!faction.isMember) continue;
|
||||
// No passive rep for special factions
|
||||
const info = faction.getInfo();
|
||||
if(!info.offersWork()) continue;
|
||||
// No passive rep for gangs.
|
||||
if(Player.getGangName() === name) continue;
|
||||
// 0 favor = 1%/s
|
||||
// 50 favor = 6%/s
|
||||
// 100 favor = 11%/s
|
||||
|
@ -57,6 +57,13 @@ export class FactionInfo {
|
||||
this.augmentationPriceMult = 1;
|
||||
this.augmentationRepRequirementMult = 1;
|
||||
}
|
||||
|
||||
offersWork(): boolean {
|
||||
return this.offerFieldWork ||
|
||||
this.offerHackingMission ||
|
||||
this.offerHackingWork ||
|
||||
this.offerSecurityWork;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -264,7 +264,7 @@ export class FactionRoot extends React.Component<IProps, IState> {
|
||||
/>
|
||||
}
|
||||
{
|
||||
!isPlayersGang &&
|
||||
!isPlayersGang && factionInfo.offersWork() &&
|
||||
<DonateOption
|
||||
faction={this.props.faction}
|
||||
p={this.props.p}
|
||||
|
@ -30,7 +30,7 @@ export const Milestones: Milestone[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Join the faction hinted at in j1.msg",
|
||||
title: "Join the faction hinted at in csec-test.msg",
|
||||
fulfilled: (p: IPlayer): boolean => {
|
||||
return p.factions.includes("CyberSec");
|
||||
},
|
||||
@ -42,7 +42,7 @@ export const Milestones: Milestone[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Join the faction hinted at in j2.msg",
|
||||
title: "Join the faction hinted at in nitesec-test.msg",
|
||||
fulfilled: (p: IPlayer): boolean => {
|
||||
return p.factions.includes("NiteSec");
|
||||
},
|
||||
@ -66,7 +66,7 @@ export const Milestones: Milestone[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Join the faction hinted at in j4.msg",
|
||||
title: "Join the faction hinted at in 19dfj3l1nd.msg",
|
||||
fulfilled: (p: IPlayer): boolean => {
|
||||
return p.factions.includes("BitRunners");
|
||||
},
|
||||
@ -78,8 +78,9 @@ export const Milestones: Milestone[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Join the final faction",
|
||||
title: "Complete fl1ght.exe",
|
||||
fulfilled: (p: IPlayer): boolean => {
|
||||
// technically wrong but whatever
|
||||
return p.factions.includes("Daedalus");
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user