Skip to content

Commit

Permalink
Merge pull request #122 from KevinRyanSF/master
Browse files Browse the repository at this point in the history
Corrigindo erro na função de rolar perícias, onde alguns valores não iam para o resultado final
  • Loading branch information
alyssonrpg authored Aug 15, 2024
2 parents adebe19 + 9de9433 commit e9982a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<rectangle width="1308" height="1754" color="white">&#xD;
<script>
local function rolarPericia(nomePericia, dados, bonus, treino, outros)
local soma;
local soma =0;
local aux = {};
local personagem = Firecast.getPersonagemDe(sheet);
if (personagem ~= nil) then
Expand All @@ -18,13 +18,16 @@
local roll = Firecast.interpretarRolagem(dadosR);

if (bonus~= nil) then
roll:concatenar(bonus)
roll:concatenar(bonus);
soma = soma + tonumber(bonus);
end;
if (treino ~= nil) then
roll:concatenar(treino)
roll:concatenar(treino);
soma = soma + tonumber(treino);
end;
if (outros ~= nil) then
roll:concatenar(outros)
roll:concatenar(outros);
soma = soma + tonumber(outros);
end;


Expand All @@ -41,13 +44,6 @@
for j = 1, #op.resultados, 1 do
aux[#aux + 1] = op.resultados[j];
end;
elseif op.tipo == "imediato" then
if op.valor ~= nil then
soma = op.valor;

else
soma = 0;
end;
end;
end;

Expand Down
Binary file modified Plugins/Sheets/Ordem Paranormal V1.1/output/Ficha.rpk
Binary file not shown.

0 comments on commit e9982a4

Please sign in to comment.