bmos
July 13th, 2022, 11:30
I just noticed something about the relatively-new ActionAttack.onAttackResolve in 3.5E (and therefore PFRPG).
It has these two sections that check for variables (nDefenseVal and nAtkEffectsBonus) that are not available within their scope.
if nDefenseVal then
rCritConfirmRoll.sDesc = rCritConfirmRoll.sDesc .. " [AC " .. nDefenseVal .. "]";
end
if nAtkEffectsBonus and nAtkEffectsBonus ~= 0 then
local sFormat = "[" .. Interface.getString("effects_tag") .. " %+d]";
rCritConfirmRoll.sDesc = rCritConfirmRoll.sDesc .. " " .. string.format(sFormat, nAtkEffectsBonus);
end
This could be intentional, but I thought it was worth mentioning.
The new ruleset update looks great btw. The new addNPC/addPC stuff is neat.
It has these two sections that check for variables (nDefenseVal and nAtkEffectsBonus) that are not available within their scope.
if nDefenseVal then
rCritConfirmRoll.sDesc = rCritConfirmRoll.sDesc .. " [AC " .. nDefenseVal .. "]";
end
if nAtkEffectsBonus and nAtkEffectsBonus ~= 0 then
local sFormat = "[" .. Interface.getString("effects_tag") .. " %+d]";
rCritConfirmRoll.sDesc = rCritConfirmRoll.sDesc .. " " .. string.format(sFormat, nAtkEffectsBonus);
end
This could be intentional, but I thought it was worth mentioning.
The new ruleset update looks great btw. The new addNPC/addPC stuff is neat.