mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
Merge pull request #4039 from ezylot/patch-1
GANG: Added weight to GangMemberTask construction call
This commit is contained in:
@@ -578,7 +578,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user