Skip to content

Commit

Permalink
Merge pull request #964 from argonui/ability-token
Browse files Browse the repository at this point in the history
Ability Tokens: Turned "randomize" into a context menu entry instead of using the TTS event
  • Loading branch information
dscarpac authored Nov 8, 2024
2 parents b1b690d + 4f132c2 commit 8a4909b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/UniversalActionAbilityToken.ttslua
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ function addContextMenu()
end
end)
end)

self.addContextMenuItem("Randomize", randomize)
end

function updateClass(newClass)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a4909b

Please sign in to comment.