mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 23:22:29 +01:00
Added weight to GangMemberTask construction call
Added hackWeight: 100 to GangMember Task construction call to prevent error messages from the constructor checks. Since we only compare with roughlyIs() this will have no impact on functionality
This commit is contained in:
parent
ccbca5c38c
commit
0c93764ef8
@ -554,7 +554,7 @@ function gangMember(ctx: NetscriptContext, m: unknown): GangMember {
|
||||
}
|
||||
|
||||
function gangTask(ctx: NetscriptContext, t: unknown): GangMemberTask {
|
||||
if (!roughlyIs(new GangMemberTask("", "", false, false, {}), t))
|
||||
if (!roughlyIs(new GangMemberTask("", "", false, false, { hackWeight: 100 }), t))
|
||||
throw makeRuntimeErrorMsg(ctx, `task should be a GangMemberTask.`);
|
||||
return t as GangMemberTask;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user