mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
fix typo
This commit is contained in:
parent
7eb4494ac1
commit
42dcbf889e
@ -487,16 +487,8 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
|
||||
}
|
||||
player.loseMoney(CONSTANTS.TorRouterCost, "other");
|
||||
|
||||
const darkweb = safetlyCreateUniqueServer({
|
||||
ip: createUniqueRandomIp(),
|
||||
hostname: "darkweb",
|
||||
organizationName: "",
|
||||
isConnectedTo: false,
|
||||
adminRights: false,
|
||||
purchasedByPlayer: false,
|
||||
maxRam: 1,
|
||||
});
|
||||
AddToAllServers(darkweb);
|
||||
const darkweb = GetServer(SpecialServers.DarkWeb);
|
||||
if (!darkweb) throw _ctx.makeRuntimeErrorMsg("DarkWeb was not a server but should have been");
|
||||
|
||||
player.getHomeComputer().serversOnNetwork.push(darkweb.hostname);
|
||||
darkweb.serversOnNetwork.push(player.getHomeComputer().hostname);
|
||||
|
@ -1110,7 +1110,7 @@ export class Sleeve extends Person {
|
||||
this.gainRatesForTask.cha =
|
||||
2 * BladeburnerConstants.BaseStatGain * (p.bladeburner?.getRecruitmentTime(this) ?? 0) * 1000;
|
||||
this.currentTaskLocation = `(Success Rate: ${numeralWrapper.formatPercentage(
|
||||
this.recrutmentSuccessChance(p),
|
||||
this.recruitmentSuccessChance(p),
|
||||
)})`;
|
||||
break;
|
||||
case "Diplomacy":
|
||||
@ -1138,7 +1138,7 @@ export class Sleeve extends Person {
|
||||
return true;
|
||||
}
|
||||
|
||||
recrutmentSuccessChance(p: IPlayer): number {
|
||||
recruitmentSuccessChance(p: IPlayer): number {
|
||||
return Math.max(0, Math.min(1, p.bladeburner?.getRecruitmentSuccessChance(this) ?? 0));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user