npm.io
2.0.0 • Published 3 weeks ago

@0xcap/loot-table

Licence
MIT
Version
2.0.0
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
6

loot-table

MIT License GitHub issues open

A simple loot table implementation in TypeScript.

Installation

Using yarn

yarn add @0xcap/loot-table

Using pnpm

pnpm add @0xcap/loot-table

Using npm

npm install @0xcap/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();

Keywords