clik-engine API
    Preparing search index...

    Class LootGenerator

    Generates loot/item placements using weighted rarity tables.

    Usage:

    const loot = new LootGenerator({
    table: [
    { type: 'health_potion', weight: 10 },
    { type: 'speed_boost', weight: 5 },
    { type: 'rare_sword', weight: 1, minDifficulty: 5 },
    ],
    });
    const items = loot.generate(level, difficulty, seededRandom);
    Index

    Constructors

    Methods