mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
19 lines
567 B
TypeScript
19 lines
567 B
TypeScript
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(' - ');
|
|
}
|
|
}
|