mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +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,24 @@
|
||||
// import { BladeburnerConstants } from "./data/Constants";
|
||||
import { Action, IActionParams } from "./Action";
|
||||
import { Generic_fromJSON, Generic_toJSON, Reviver } from "../../utils/JSONReviver";
|
||||
|
||||
export class Contract extends Action {
|
||||
|
||||
constructor(params: IActionParams | null = null) {
|
||||
super(params);
|
||||
}
|
||||
|
||||
getActionTypeSkillSuccessBonus(inst: any): number {
|
||||
return inst.skillMultipliers.successChanceContract;
|
||||
}
|
||||
|
||||
static fromJSON(value: any): Contract {
|
||||
return Generic_fromJSON(Contract, value.data);
|
||||
}
|
||||
|
||||
toJSON(): any {
|
||||
return Generic_toJSON("Contract", this);
|
||||
}
|
||||
}
|
||||
|
||||
Reviver.constructors.Contract = Contract;
|
||||
Reference in New Issue
Block a user