Class WeaponAbstract

Abstract weapon class to be used to increase Fighter's attack attribute. To add your own weapon, extend Weapon class and change the attributes to your liking.

class Sword extends Weapon {
name = "sword";
id = "sword";
attack = 15;
}

Hierarchy

  • Base
    • Weapon

Constructors

Properties

Methods

Constructors

  • Returns Weapon

Properties

attack: number = 10

Attack attribute to be added when player equip this weapon

id: string

The unique id of the entity. Please ensure this id does not contain any spaces

imageUrl?: string

Weapon image

name: string

The name of the entity

owner?: Player

References Player who owns this weapon

Methods

  • MessageEmbed that represents Weapon

    Returns EmbedBuilder

Generated using TypeDoc