UNPKG

ggejs

Version:

A powerful JavaScript library for interacting with the server of Goodgame Empire: Four Kingdoms

40 lines (31 loc) 1.08 kB
const Localize = require("../../tools/Localize"); const HeroBoosterShop = require("./HeroBoosterShop"); const Good = require("../Good"); class CastleMarauderPremiumShop extends HeroBoosterShop { #client; bonusValue = 0.9; /** @param {Client} client*/ constructor(client) { super(client, "dialog_recuit_hireMarauder", "dialog_marauderHire_copy", "dialog_buyMarauder_copy", new Good(client, ["C2", 990]), "marauder", 6); this.#client = client } get durationInSeconds() { return 604800; } get bonus() { return Localize.text(this.#client, "value_percentage", (this.bonusValue * 100).toString()); } get listSortPriority() { return 670 } renewText() { return Localize.text(this.#client, "dialog_booster_renew_generic", Localize.text(this.#client, "marauder")); } get iconMcClass() { return "char_marauder_normal" } get effectIconId() { return "icon_moreloot" } } module.exports = CastleMarauderPremiumShop