DNET: Player feedback (#2545)

This commit is contained in:
Michael Ficocelli
2026-03-19 21:07:43 -07:00
committed by GitHub
parent 73b7921ef0
commit 1b6b07faae
38 changed files with 248 additions and 108 deletions
+2 -3
View File
@@ -27,8 +27,7 @@ export const handleRamBlockRemoved = (ctx: NetscriptContext, server: DarknetServ
if (server.blockedRam <= 0) {
handleRamBlockClearedRewards(server);
}
const xpGained =
Player.mults.charisma_exp * threads * 10 * 1.1 ** difficulty * ((200 + Player.skills.charisma) / 200);
const xpGained = Player.mults.charisma_exp * threads * 10 * 1.1 ** difficulty;
Player.gainCharismaExp(xpGained);
const result = `Liberated ${formatNumber(
@@ -48,7 +47,7 @@ export const handleRamBlockRemoved = (ctx: NetscriptContext, server: DarknetServ
*/
export const handleRamBlockClearedRewards = (server: DarknetServer) => {
if (!isLabyrinthServer(server.hostname)) {
addCacheToServer(server);
addCacheToServer(server, false);
}
if (Math.random() < 0.3) {
addClue(server);