class InventoryTarget: Target

InventoryTarget is an extension of the Target class injected into the prism namespace by the Inventory module. This overrides the standard range builder function, and treats items in inventory as always being in range.

__new(self: Target, ...: unknown)

Creates a new Target and accepts components and sends them to with().

inInventory(self: InventoryTarget): InventoryTarget

Checks if the target is in the owner’s inventory.

outsideInventory(self: InventoryTarget): InventoryTarget

Checks that the target is not in the owner’s inventory.