Skip to content

Commit 0dcbf46

Browse files
authored
Update keyitemapi.md
1 parent 6dadb00 commit 0dcbf46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

keyitemapi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ Global shortcut functions are available for common operations:
259259
totalSlots: 100, // Total available slots
260260
usedSlots: 45, // Slots with items
261261
emptySlots: 55, // Empty slots
262-
uniqueItems: 30, // Number of unique item types
262+
uniqueItems: 30, // Number of unique item types (should be equal to usedSlots....)
263263
items: [ // Array of non-empty items
264264
{
265265
name: "Yo-kai Watch",
266266
id: 12345,
267-
count: 1
267+
count: 1 // should ideally never be 2+
268268
}
269-
// ... more items
269+
// ... more items here lol
270270
]
271271
}
272272
```
@@ -286,7 +286,7 @@ watches.forEach(watch => {
286286
console.log(`${watch.name} at slot ${watch.index}`);
287287
});
288288

289-
// Give player 99 of first item
289+
// set num1 to 99 (will usually nuke (invalidate/delete) the item :<<<)
290290
if (stats.usedSlots > 0) {
291291
SaveAPI.setItem(0, { num1: 99 });
292292
}

0 commit comments

Comments
 (0)