Added feature to display preview results when having the Spindown Dice equipped
This commit is contained in:
1 parent
82a01fcda7
commit
51b22b38b4
6 files changed
+57
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user