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