Minty23185Fresh
July 18th, 2022, 02:46
I tripped over the dragdata function call getDiceData() in manager_actions.lua of the CoreRPG ruleset at ~line 368 of the current release, 2022-07.
getDiceData() is not documented in either the original refdoc documents (https://www.fantasygrounds.com/refdoc/dragdata.xcp) nor in Developer Guide (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644741/dragdata) for Unity on atlassian.net
function decodeRollFromDrag(draginfo, i, bFinal)
draginfo.setSlot(i);
.
.
vRoll.nMod = draginfo.getNumberData();
vRoll.aDice = draginfo.getDiceData() or {};
vRoll.nTotal = vRoll.aDice.total;
.
.
.
return vRoll;
end
getDiceData() is not documented in either the original refdoc documents (https://www.fantasygrounds.com/refdoc/dragdata.xcp) nor in Developer Guide (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644741/dragdata) for Unity on atlassian.net
function decodeRollFromDrag(draginfo, i, bFinal)
draginfo.setSlot(i);
.
.
vRoll.nMod = draginfo.getNumberData();
vRoll.aDice = draginfo.getDiceData() or {};
vRoll.nTotal = vRoll.aDice.total;
.
.
.
return vRoll;
end