From cdb0e2eb7a5065e5a1163fe695fbf870ed628c10 Mon Sep 17 00:00:00 2001 From: dvize Date: Wed, 19 Oct 2022 16:00:30 -0700 Subject: [PATCH] Removed so it can be regenerated --- Props-InRaidModding/src/mod.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Props-InRaidModding/src/mod.js diff --git a/Props-InRaidModding/src/mod.js b/Props-InRaidModding/src/mod.js deleted file mode 100644 index 45a6bb3..0000000 --- a/Props-InRaidModding/src/mod.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const modName = "Props In-Raid Modding"; -class ModInRaid { - postDBLoad(container) { - const logger = container.resolve("WinstonLogger"); - const databaseServer = container.resolve("DatabaseServer"); - let database = databaseServer.getTables(); - let items = database.templates.items; - logger.info("In-Raid Modding Loop Started"); - this.SetAllModdableProps(logger, items); - logger.info("In-Raid Modding Loop Finished"); - } - SetAllModdableProps(logger, items) { - for (let id in items) { - //if undefined raid moddable, make it moddable. - items[id]._props.RaidModdable = true; - //if undefined tool moddable, made it tool moddable. - items[id]._props.ToolModdable = true; - //if it has slots make sure they are all set no requirements - for (let slot in items[id]._props.Slots) { - items[id]._props.Slots[slot]._required = false; - } - } - } -} -module.exports = { mod: new ModInRaid() };