@0xcap/loot-table
v1.0.1
Published
A simple loot table implementation in TypeScript.
Downloads
21
Readme
loot-table
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();