import { InventoryController } from "https://deno.land/x/sptaki@1.2.0/controllers/mod.ts";
Constructors
Properties
Methods
Get a event router response with inventory trader message
Get the tplid of an item from the examine request object
Strip out characters from note string that are not: letter/numbers/unicode/spaces
Bind an inventory item to the quick access menu at bottom of player screen Handle bind event
Add note to a map
Delete a map marker
Handle Remove event Implements functionality "Discard" from Main menu (Stash etc.) Removes item from PMC Profile
Edit an existing map marker
Handles examining an item
Handles folding of Weapons
Fully merge 2 inventory stacks together into one stack (merging where both stacks remain is called 'transfer')
Deletes item from body.item
and adding number of stacks into body.with
Move Item change location of item with parentId and slotId transfers items from one profile to another if fromOwner/toOwner is set in the body. otherwise, move is contained within the same profile_f.
Handle OpenRandomLootContainer event Handle event fired when a container is unpacked (currently only the halloween pumpkin)
Handle ApplyInventoryChanges Sorts supplied items.
Split Item spliting 1 stack into 2
Swap Item its used for "reload" if you have weapon in hands and magazine is somewhere else in rig or backpack in equipment Also used to swap items using quick selection on character screen
Add a tag to an inventory item
Toggles "Toggleable" items like night vision goggles and face shields.
TODO: Adds no data to output to send to client, is this by design? Transfer items from one stack into another while keeping original stack Used to take items from scav inventory into stash or to insert ammo into mags (shotgun ones) and reloading weapon by clicking "Reload"
Unbind an inventory item from quick access menu at bottom of player screen Handle unbind event