Closed joligario closed 1 year ago
Thanks, I will take a look at the overall logic when I get a moment and re-write it. Looks like this was written to try and mirror step for step the perl version.
Cleaned up the logic and added a quick flip for negative secondary roll arguments.
https://github.com/ProjectEQ/projecteqquests/blob/9302f35f04c386df998e1f58f0d89a71411cf93a/lua_modules/npc_ext.lua#L46
This call needs to be re-evaluated. In
math.random(a, b)
, Lua will select a number from a up to b. If b is empty or lower than a, it will throw an error such as:quests/lua_modules/npc_ext.lua:46: bad argument #2 to 'random' (interval is empty)
from the logs on Discordcc: @fryguy503