From 7fa8fd3626bd2393afb946404f5f3c9bb7433236 Mon Sep 17 00:00:00 2001 From: etojuice <5415811+etojuice@users.noreply.github.com> Date: Sat, 18 Jan 2025 23:18:06 +0300 Subject: [PATCH 1/2] Assign Small radius to crafted Time-Lost Jewels by default --- src/Classes/ItemsTab.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua index 583c5ce8..e94b0e03 100644 --- a/src/Classes/ItemsTab.lua +++ b/src/Classes/ItemsTab.lua @@ -1908,6 +1908,9 @@ function ItemsTabClass:CraftItem() implicitIndex = implicitIndex + 1 end end + if base.base.type == "Jewel" and base.base.subType == "Radius" then + item.jewelRadiusLabel = "Small" + end item:NormaliseQuality() item:BuildAndParseRaw() return item From d314b419f8011b4e5e9ead4562adbb9ae4aaf4af Mon Sep 17 00:00:00 2001 From: etojuice <5415811+etojuice@users.noreply.github.com> Date: Sat, 18 Jan 2025 23:19:17 +0300 Subject: [PATCH 2/2] Add support for 'Upgrades Radius to #' Time-Lost Jewel modifier --- src/Classes/Item.lua | 3 +++ src/Modules/ModParser.lua | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/Classes/Item.lua b/src/Classes/Item.lua index f09e1df5..7fbefdb9 100644 --- a/src/Classes/Item.lua +++ b/src/Classes/Item.lua @@ -885,6 +885,9 @@ function ItemClass:ParseRaw(raw, rarity, highQuality) if deferJewelRadiusIndexAssignment then self.jewelRadiusIndex = self.jewelData.radiusIndex end + if self.jewelData and self.jewelData.timeLostJewelRadiusOverride then + self.jewelRadiusIndex = self.jewelData.timeLostJewelRadiusOverride + end end function ItemClass:NormaliseQuality() diff --git a/src/Modules/ModParser.lua b/src/Modules/ModParser.lua index 71e0c7c7..60ea3ae1 100644 --- a/src/Modules/ModParser.lua +++ b/src/Modules/ModParser.lua @@ -4589,6 +4589,8 @@ local specialModList = { ["only affects passives in large ring"] = { mod("JewelData", "LIST", { key = "radiusIndex", value = 10 }) }, ["only affects passives in very large ring"] = { mod("JewelData", "LIST", { key = "radiusIndex", value = 11 }) }, ["only affects passives in massive ring"] = { mod("JewelData", "LIST", { key = "radiusIndex", value = 12 }) }, + ["upgrades radius to medium"] = { mod("JewelData", "LIST", { key = "timeLostJewelRadiusOverride", value = 2 })}, + ["upgrades radius to large"] = { mod("JewelData", "LIST", { key = "timeLostJewelRadiusOverride", value = 3 })}, ["primordial"] = { mod("Multiplier:PrimordialItem", "BASE", 1) }, ["spectres have a base duration of (%d+) seconds"] = { mod("SkillData", "LIST", { key = "duration", value = 6 }, { type = "SkillName", skillName = "Raise Spectre", includeTransfigured = true }) }, ["flasks applied to you have (%d+)%% increased effect"] = function(num) return { mod("FlaskEffect", "INC", num, { type = "ActorCondition", actor = "player"}) } end,