From 96a152f457d42a80ed0769962b9dd050166ca660 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 2 Dec 2023 10:42:53 +0000 Subject: [PATCH] Update comments --- TypeScript/2EditDatabase/src/mod.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TypeScript/2EditDatabase/src/mod.ts b/TypeScript/2EditDatabase/src/mod.ts index 166ef1b..acd014b 100644 --- a/TypeScript/2EditDatabase/src/mod.ts +++ b/TypeScript/2EditDatabase/src/mod.ts @@ -40,6 +40,9 @@ class Mod implements IPostDBLoadMod const itemHelper: ItemHelper = container.resolve("ItemHelper"); // Get all items in the database as an array so we can loop over them later + // tables.templates.items is a dictionary, the key being the items template id, the value being the objects data, + // we want to convert it into an array so we can loop over all the items easily + // Object.values lets us grab the 'value' part as an array and ignore the 'key' part const items = Object.values(tables.templates.items); // Use the itemHelper class to assist us in getting only magazines