import { LocationGenerator } from "https://deno.land/x/sptaki@1.2.0/generators/LocationGenerator.d.ts";
Constructors
Properties
Methods
Add forced spawn point loot into loot parameter array
Choose loot to put into a static container based on weighting Handle forced items + seasonal item removal when not in season
Create array of item (with child items) and return
Get a 2d grid of a containers item slots
Choose a number of containers based on their probabilty value to fulfil the desired count in containerData.chosenCount
Get a mapping of each groupid and the containers in that group + count of containers to spawn on map
Get containers with 100% spawn rate or have a type on the randomistion ignore list
Find an item in array by its _tpl, handle differently if chosenTpl is a weapon
Get all possible loot items that can be placed into a container Do not add seasonal items if found + current date is inside seasonal event
Get containers with a non-100% chance to spawn OR are NOT on the container type randomistion blacklist
Look up a containers itemcountDistribution data and choose an item count based on the found weights
Replace the _id value for base item + all children items parentid value
Create array of loose + forced loot using probability system
Create an array of container objects with randomised loot