Merge pull request #964 from argonui/ability-token

Ability Tokens: Turned "randomize" into a context menu entry instead of using the TTS event
This commit is contained in:
dscarpac 2024-11-07 18:57:58 -06:00 committed by GitHub
commit 8a4909bf85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,6 +248,8 @@ function addContextMenu()
end
end)
end)
self.addContextMenuItem("Randomize", randomize)
end
function updateClass(newClass)
@ -292,7 +294,7 @@ function isClassName(str)
return false
end
function onRandomize()
function randomize()
local newSymbol = listOfSymbols[math.random(1, #listOfSymbols)]
while newSymbol == "None" do