This commit is contained in:
Olivier Gagnon 2022-05-20 17:28:21 -04:00
parent 7eb4494ac1
commit 42dcbf889e
2 changed files with 4 additions and 12 deletions

@ -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));
}