mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 03:25:44 +02:00
UI: Share RAM to boost reputation gain (#1862)
This commit is contained in:
@@ -25,6 +25,7 @@ import { Settings } from "../Settings/Settings";
|
||||
|
||||
import type { ScriptKey } from "../utils/helpers/scriptKey";
|
||||
import { objectAssert } from "../utils/helpers/typeAssertion";
|
||||
import { clampNumber } from "../utils/helpers/clampNumber";
|
||||
|
||||
interface IConstructorParams {
|
||||
adminRights?: boolean;
|
||||
@@ -232,7 +233,7 @@ export abstract class BaseServer implements IServer {
|
||||
}
|
||||
|
||||
updateRamUsed(ram: number): void {
|
||||
this.ramUsed = ram;
|
||||
this.ramUsed = clampNumber(ram, 0, this.maxRam);
|
||||
}
|
||||
|
||||
pushProgram(program: ProgramFilePath | CompletedProgramName): void {
|
||||
|
||||
Reference in New Issue
Block a user