HelperLib: add require methods

This commit is contained in:
Van
2026-02-27 20:34:37 +03:00
parent c47ab6ac3c
commit 51e6763457
12 changed files with 54 additions and 52 deletions

View File

@@ -2,10 +2,7 @@ local getInstance, extend = Class.getInstance, Class.extend
local tableCopy, tableMerge, colorize = table.copy, table.merge, core.colorize
local modInfo = Mod.getInfo('smc__core__item')
local require = modInfo.require
local ItemFactory = Mod.getInfo('smc__core__item_factory').require('ItemFactory')
local ItemFactory = Smc.requireItemFactory()
---Determines whether common rarity will be shown in item descriptions or not.
local SHOW_COMMON_RARITY = true