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:
commit
8a4909bf85
@ -248,6 +248,8 @@ function addContextMenu()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
self.addContextMenuItem("Randomize", randomize)
|
||||||
end
|
end
|
||||||
|
|
||||||
function updateClass(newClass)
|
function updateClass(newClass)
|
||||||
@ -292,7 +294,7 @@ function isClassName(str)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
function onRandomize()
|
function randomize()
|
||||||
local newSymbol = listOfSymbols[math.random(1, #listOfSymbols)]
|
local newSymbol = listOfSymbols[math.random(1, #listOfSymbols)]
|
||||||
|
|
||||||
while newSymbol == "None" do
|
while newSymbol == "None" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user