mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Merge pull request #2488 from TheMas3212/fix-2124
log key for gang.ascendMember is 'gang.ascendMember' not 'gang.ascend'
This commit is contained in:
commit
8e816e9110
@ -25,8 +25,9 @@ import { GangMember } from "./GangMember";
|
|||||||
import { WorkerScript } from "../Netscript/WorkerScript";
|
import { WorkerScript } from "../Netscript/WorkerScript";
|
||||||
import { IPlayer } from "../PersonObjects/IPlayer";
|
import { IPlayer } from "../PersonObjects/IPlayer";
|
||||||
import { PowerMultiplier } from "./data/power";
|
import { PowerMultiplier } from "./data/power";
|
||||||
|
import { IGang } from "./IGang";
|
||||||
|
|
||||||
export class Gang {
|
export class Gang implements IGang {
|
||||||
facName: string;
|
facName: string;
|
||||||
members: GangMember[];
|
members: GangMember[];
|
||||||
wanted: number;
|
wanted: number;
|
||||||
@ -353,7 +354,7 @@ export class Gang {
|
|||||||
const res = member.ascend();
|
const res = member.ascend();
|
||||||
this.respect = Math.max(1, this.respect - res.respect);
|
this.respect = Math.max(1, this.respect - res.respect);
|
||||||
if (workerScript) {
|
if (workerScript) {
|
||||||
workerScript.log("gang.ascend", () => `Ascended Gang member ${member.name}`);
|
workerScript.log("gang.ascendMember", () => `Ascended Gang member ${member.name}`);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
Loading…
Reference in New Issue
Block a user