Skip to content

Commit c4c3551

Browse files
author
LocalIdentity
committed
Fix Crash when using Bow with +1 Arrow Rune
In the function to try and guess how many of the same rune there are on an item, it expects to see an integer somewhere in the modline The fix sets the value as 1 but should be fine as if a mod has a number in it, the value will be overwritten anyway
1 parent 873f311 commit c4c3551

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/Item.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
809809
local specificItemType = self.base.type:lower()
810810
for runeName, runeMods in pairs(data.itemMods.Runes) do
811811
local addModToGroupedRunes = function (modLine)
812-
local runeValue
812+
local runeValue = 1
813813
local runeStrippedModLine = modLine:gsub("(%d%.?%d*)", function(val)
814814
runeValue = val
815815
return "#"
@@ -835,7 +835,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
835835

836836
local remainingRunes = self.itemSocketCount
837837
for i, modLine in ipairs(self.runeModLines) do
838-
local value
838+
local value = 1
839839
local strippedModLine = modLine.line:gsub("(%d%.?%d*)", function(val)
840840
value = val
841841
return "#"

0 commit comments

Comments
 (0)