Skip to main content

modify_item

Function modify_item 

Source
pub fn modify_item(
    world: &mut AmbleWorld,
    item_id: ItemId,
    patch: &ItemPatch,
) -> Result<()>
Expand description

Modifies multiple properties of an Item at once by applying an ItemPatch.

ยงErrors

Returns an error if the target item cannot be found or if referenced container/item identifiers inside the patch are missing.