Added feature to display preview results when having the Spindown Dice equipped

This commit is contained in:
Wofsauge committed 2021-04-18 18:50:56 +02:00
1 parent 82a01fcda7
commit 51b22b38b4
6 files changed
+57 -1

No files matched your search

+9
View File
@@ -699,6 +699,15 @@ function EID:updateDescriptionsViaTable(changeTable, tableToUpdate)
end
end
-- Converts a given CollectibleID into the respective Spindown dice result
function EID:getSpindownResult(collectibleID)
local newID = collectibleID
repeat
newID = newID - 1
until( EID.SpindownDiceSkipIDs[newID] == nil)
return newID
end
-- Creates a copy of a KColor object. This prevents overwriting existing
function EID:copyKColor(colorObj)
return KColor(colorObj.Red, colorObj.Green, colorObj.Blue, colorObj.Alpha)