workerscript log takes a function now, hopefully this will increase performance.

This commit is contained in:
Olivier Gagnon
2021-11-26 18:30:58 -05:00
parent fe3aa5a357
commit c05518e162
14 changed files with 376 additions and 316 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ export class Gang {
const res = member.ascend();
this.respect = Math.max(1, this.respect - res.respect);
if (workerScript) {
workerScript.log("ascend", `Ascended Gang member ${member.name}`);
workerScript.log("ascend", () => `Ascended Gang member ${member.name}`);
}
return res;
} catch (e: any) {