added item.description() to itemlib, and update docs

This commit is contained in:
GHOST11111100
2025-07-26 17:21:00 +03:00
parent b4d41a59e4
commit 59d706323a
5 changed files with 55 additions and 0 deletions
+14
View File
@@ -98,6 +98,13 @@ inventory.set_all_data(...)
```
for moving is inefficient, use inventory.move or inventory.move_range.
```lua
-- Get item caption
inventory.get_caption(
-- id of inventory
invid: int,
-- slot id
slot: int
)
-- Set item caption
inventory.set_caption(
-- id of inventory
@@ -107,6 +114,13 @@ inventory.set_caption(
-- Item Caption
caption: string
)
-- Get item description
inventory.get_description(
-- id of inventory
invid: int,
-- slot id
slot: int
)
-- Set item description
inventory.set_description(
-- id of inventory