mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
Converted Programs and DarkWeb implementations to Typescript
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { formatNumber } from "../../utils/StringHelperFunctions";
|
||||
|
||||
export class DarkWebItem {
|
||||
program: string;
|
||||
price: number;
|
||||
description: string;
|
||||
|
||||
constructor(program: string, price: number, description: string) {
|
||||
this.program = program;
|
||||
this.price = price;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
// Formats the item to print out to terminal (e.g. BruteSSH.exe -$500,000 - Opens up SSH Ports)
|
||||
toString(): string {
|
||||
return [this.program, "$" + formatNumber(this.price, 0), this.description].join(' - ');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user