DNET: Adjust balance from player feedback (#2512)

This commit is contained in:
Michael Ficocelli
2026-02-18 16:41:48 -05:00
committed by GitHub
parent 8f77dc2df0
commit 9279b16729
9 changed files with 83 additions and 26 deletions
+4 -4
View File
@@ -41,12 +41,11 @@ export const handleSuccessfulAuth = (server: DarknetServer, threads: number, pid
server.hasAdminRights = true;
addClue(server);
// TODO: balance coding contract chance
if (Math.random() < 0.1 && server.difficulty > 2) {
const cctChance = Math.min(0.12, 0.02 * (server.difficulty - 1));
if (Math.random() < cctChance) {
generateContract({ server: server.hostname });
}
// TODO: balance cache chance
const chance = 0.1 * 1.05 ** server?.difficulty;
if (Math.random() < chance && !isLabyrinthServer(server.hostname)) {
addCacheToServer(server);
@@ -231,7 +230,8 @@ export const scaleDarknetVolatilityIncreases = (scalar: number) => {
export const getStasisLinkLimit = (): number => {
const brokenWingLimitIncrease = Player.hasAugmentation(AugmentationName.TheBrokenWings) ? 1 : 0;
const hammerLimitIncrease = Player.hasAugmentation(AugmentationName.TheHammer) ? 1 : 0;
return 1 + brokenWingLimitIncrease + hammerLimitIncrease;
const staffLimitIncrease = Player.hasAugmentation(AugmentationName.TheStaff) ? 1 : 0;
return 1 + brokenWingLimitIncrease + hammerLimitIncrease + staffLimitIncrease;
};
export const getSetStasisLinkDuration = (): number => {