import { InventoryHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";
Constructors
Properties
Methods
Get a blank two-dimentional representation of a container
Get Players Stash Size
Get a two-dimensional array representation of the players sorting table
Get a two dimensional array to represent stash slots 0 value = free, 1 = taken
Get the players stash items tpl
Internal helper function to handle cartridges in inventory if any of them exist.
Find a location to place an item into inventory and place it
Remove properties from a Upd object used by a trader/ragfair that are unnecessary to a player
Set FiR status for an item + its children
Split an items stack size based on its StackMaxSize value
Update fast panel bindings when an item is moved into a container that doesnt allow quick slot access
Add multiple items to player stash (assuming they all fit)
Add whatever is passed in request.itemWithModsToAdd
into player inventory (if it fits)
Does an item fit into a container grid
Do the provided items all fit into the grid
Can all probided items be added into player inventory
Get a blank two-dimensional array representation of a container
Get the height and width of an item - can have children that alter size
Return the inventory that needs to be modified (scav/pmc etc) Changes made to result apply to character inventory Based on the item action, determine whose inventories we should be looking at for from and to.
Get details for how a random loot container should be handled, max rewards, possible reward tpls
Recursively checks if the given item is inside the stash, that is it has the stash as ancestor with slotId=hideout
Internal helper function to move item within the same profile_f.
Internal helper function to transfer an item from one profile to another.
Find a free location inside a container to fit the item
Handle Remove event Remove item from player inventory + insured items array Also deletes child items
Delete desired item from a player profiles mail
Find item by id in player inventory and remove x of its count