Skip to main content

neon_crisp / Modules / fightFactory/lootTable / LootTable

Class: LootTable

fightFactory/lootTable.LootTable

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LootTable(«destructured»): LootTable

Parameters

NameType
«destructured»RawLootTable

Returns

LootTable

Defined in

fightFactory/lootTable.ts:62

Properties

actionDefault

actionDefault: null | ActionBtn

Defined in

fightFactory/lootTable.ts:52


actionLoss

actionLoss: DropItem[]

Defined in

fightFactory/lootTable.ts:51


actionWin

actionWin: DropItem[]

Defined in

fightFactory/lootTable.ts:50


cardDefault

cardDefault: null | Card

Defined in

fightFactory/lootTable.ts:49


cardLoss

cardLoss: DropItem[]

Defined in

fightFactory/lootTable.ts:48


cardWin

cardWin: DropItem[]

Defined in

fightFactory/lootTable.ts:47


chestDropChance

chestDropChance: Object

Type declaration

NameType
commonnumber
epicnumber
rarenumber
uncommonnumber

Defined in

fightFactory/lootTable.ts:56


chestWinId

chestWinId: null | string

Defined in

fightFactory/lootTable.ts:53


gemDefault

gemDefault: number

Defined in

fightFactory/lootTable.ts:43


gemLoss

gemLoss: DropItem[]

Defined in

fightFactory/lootTable.ts:42


gemWin

gemWin: DropItem[]

Defined in

fightFactory/lootTable.ts:41


goldDefault

goldDefault: number

Defined in

fightFactory/lootTable.ts:46


goldLoss

goldLoss: DropItem[]

Defined in

fightFactory/lootTable.ts:45


goldWin

goldWin: DropItem[]

Defined in

fightFactory/lootTable.ts:44


id

id: string

Defined in

fightFactory/lootTable.ts:55

Methods

getRandomChest

getRandomChest(): null | string

Returns

null | string

Defined in

fightFactory/lootTable.ts:95


returnLoot

returnLoot(won): ReturnLoot

Parameters

NameType
wonboolean

Returns

ReturnLoot

Defined in

fightFactory/lootTable.ts:133