@0xcap/loot-table

1.0.1 • Public • Published

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();

Readme

Keywords

Package Sidebar

Install

npm i @0xcap/loot-table

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

5.31 kB

Total Files

13

Last publish

Collaborators

  • 0xcap