1.0.1 • Published 2 years ago

@0xcap/loot-table v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

loot-table

MIT License GitHub issues open

A simple loot table implementation in TypeScript.

Installation

Using yarn

yarn add loot-table

Using pnpm

pnpm add loot-table

Using npm

npm install loot-table

Usage

import LootTable from "0xcap/loot-table";

const lootTable = new LootTable();

lootTable.addItem("item1", 2);
lootTable.addItem("item2", 4);

const drop = lootTable.dropItem();
1.0.1

2 years ago

1.0.0

2 years ago

0.2.0

4 years ago

0.1.0

4 years ago