mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
work to make documentation unified.
This commit is contained in:
@@ -190,10 +190,12 @@ export class WorkerScript {
|
||||
|
||||
log(func: string, txt: string): void {
|
||||
if(this.shouldLog(func)) {
|
||||
if(func !== "" && txt !== ""){
|
||||
if(func && txt){
|
||||
this.scriptRef.log(`${func}: ${txt}`);
|
||||
} else if(func) {
|
||||
this.scriptRef.log(func);
|
||||
} else {
|
||||
this.scriptRef.log(func+txt);
|
||||
this.scriptRef.log(txt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user