Class ArmorAbstract

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

class Chest extends Armor {
name = "chest";
id = "chest";
armor = 0.08; // 8%
}

Hierarchy

  • Base
    • Armor

Constructors

Properties

Methods

Constructors

  • Returns Armor

Properties

armor: number = 0.05

Armor's effectiveness in the form of percentage. The percentage represents how much of damage will be blocked when opponent attacks you.

id: string

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

imageUrl?: string

Armor image

name: string

The name of the entity

owner?: Player

References Player who owns this armor

Methods

  • MessageEmbed that represents Armor

    Returns EmbedBuilder

Generated using TypeDoc