mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-04 14:47:53 +02:00
bladeburner slowly being converted to typescript, added ScriptHackMoneyGain multiplier which is the money you actually gain from script hacks, not money drained, important for BN8
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import { Operation, IOperationParams } from "./Operation";
|
||||
import { Generic_fromJSON, Generic_toJSON, Reviver } from "../../utils/JSONReviver";
|
||||
|
||||
export class BlackOperation extends Operation {
|
||||
constructor(params: IOperationParams | null = null) {
|
||||
super(params);
|
||||
this.count = 1;
|
||||
this.countGrowth = 0;
|
||||
}
|
||||
|
||||
// To be implemented by subtypes
|
||||
getActionTimePenalty(): number {
|
||||
return 1.5;
|
||||
}
|
||||
|
||||
getChaosCompetencePenalty(inst: any, params: any): number {
|
||||
return 1;
|
||||
}
|
||||
|
||||
getChaosDifficultyBonus(inst: any, params: any): number {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static fromJSON(value: any): Operation {
|
||||
return Generic_fromJSON(BlackOperation, value.data);
|
||||
}
|
||||
|
||||
toJSON(): any {
|
||||
return Generic_toJSON("BlackOperation", this);
|
||||
}
|
||||
}
|
||||
|
||||
Reviver.constructors.BlackOperation = BlackOperation;
|
||||
Reference in New Issue
Block a user