Home Reference Source Repository
public class | source

Shortsword

Extends:

EntityItemWeapon → Shortsword

Method Summary

Public Methods
public

getDamage(): *

public
public
public

Inherited Summary

From class Entity
public
public

getId(): *

public

getName(): *

public
public

toString(): *

From class Item
public
From class Weapon
public
public

Magical damage is less likely to be reduced

public

Returns a number >= 1.

public
public

isMelee(): *

public

False if the weapon is currently inoperable

public

onAttack(dungeon: *, attacker: *, defender: *)

public

onHit(dungeon: *, attacker: *, defender: *)

Public Methods

public getDamage(): * source

Override:

Weapon#getDamage

Return:

*

public getDamageType(): * source

Override:

Weapon#getDamageType

Return:

*

public getFriendlyDescription(): string source

Override:

Entity#getFriendlyDescription

Return:

string

public getRange(): number source

Override:

Weapon#getRange

Return:

number