Merge pull request #2488 from TheMas3212/fix-2124

log key for gang.ascendMember is 'gang.ascendMember' not 'gang.ascend'
This commit is contained in:
hydroflame 2022-01-09 13:00:10 -05:00 committed by GitHub
commit 8e816e9110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,8 +25,9 @@ import { GangMember } from "./GangMember";
import { WorkerScript } from "../Netscript/WorkerScript";
import { IPlayer } from "../PersonObjects/IPlayer";
import { PowerMultiplier } from "./data/power";
import { IGang } from "./IGang";
export class Gang {
export class Gang implements IGang {
facName: string;
members: GangMember[];
wanted: number;
@ -353,7 +354,7 @@ export class Gang {
const res = member.ascend();
this.respect = Math.max(1, this.respect - res.respect);
if (workerScript) {
workerScript.log("gang.ascend", () => `Ascended Gang member ${member.name}`);
workerScript.log("gang.ascendMember", () => `Ascended Gang member ${member.name}`);
}
return res;
} catch (e: any) {