diff --git a/Ordem Paranormal/Fonts/DanteMTStd-Bold.otf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-Bold.otf similarity index 100% rename from Ordem Paranormal/Fonts/DanteMTStd-Bold.otf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-Bold.otf diff --git a/Ordem Paranormal/Fonts/DanteMTStd-BoldItalic.otf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-BoldItalic.otf similarity index 100% rename from Ordem Paranormal/Fonts/DanteMTStd-BoldItalic.otf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-BoldItalic.otf diff --git a/Ordem Paranormal/Fonts/DanteMTStd-Italic.otf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-Italic.otf similarity index 100% rename from Ordem Paranormal/Fonts/DanteMTStd-Italic.otf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-Italic.otf diff --git a/Ordem Paranormal/Fonts/DanteMTStd-Regular.otf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-Regular.otf similarity index 100% rename from Ordem Paranormal/Fonts/DanteMTStd-Regular.otf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/DanteMTStd-Regular.otf diff --git a/Ordem Paranormal/Fonts/Iowan Old Style.ttc b/Ordem Paranormal - Oficial Jambo Editora/Fonts/Iowan Old Style.ttc similarity index 100% rename from Ordem Paranormal/Fonts/Iowan Old Style.ttc rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/Iowan Old Style.ttc diff --git a/Ordem Paranormal/Fonts/Raizen.otf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/Raizen.otf similarity index 100% rename from Ordem Paranormal/Fonts/Raizen.otf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/Raizen.otf diff --git a/Ordem Paranormal/Fonts/SourceSansPro-Bold.otf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/SourceSansPro-Bold.otf similarity index 100% rename from Ordem Paranormal/Fonts/SourceSansPro-Bold.otf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/SourceSansPro-Bold.otf diff --git a/Ordem Paranormal/Fonts/SourceSansPro-Regular.otf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/SourceSansPro-Regular.otf similarity index 100% rename from Ordem Paranormal/Fonts/SourceSansPro-Regular.otf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/SourceSansPro-Regular.otf diff --git a/Ordem Paranormal/Fonts/Spiral Initials.ttf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/Spiral Initials.ttf similarity index 100% rename from Ordem Paranormal/Fonts/Spiral Initials.ttf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/Spiral Initials.ttf diff --git a/Ordem Paranormal/Fonts/Tormenta20x.ttf b/Ordem Paranormal - Oficial Jambo Editora/Fonts/Tormenta20x.ttf similarity index 100% rename from Ordem Paranormal/Fonts/Tormenta20x.ttf rename to Ordem Paranormal - Oficial Jambo Editora/Fonts/Tormenta20x.ttf diff --git a/Ordem Paranormal/assets/AtributosOPBolinha.png b/Ordem Paranormal - Oficial Jambo Editora/assets/AtributosOPBolinha.png similarity index 100% rename from Ordem Paranormal/assets/AtributosOPBolinha.png rename to Ordem Paranormal - Oficial Jambo Editora/assets/AtributosOPBolinha.png diff --git a/Ordem Paranormal/assets/Escudo.png b/Ordem Paranormal - Oficial Jambo Editora/assets/Escudo.png similarity index 100% rename from Ordem Paranormal/assets/Escudo.png rename to Ordem Paranormal - Oficial Jambo Editora/assets/Escudo.png diff --git a/Ordem Paranormal/assets/Logo OrdemParanormal.png b/Ordem Paranormal - Oficial Jambo Editora/assets/Logo OrdemParanormal.png similarity index 100% rename from Ordem Paranormal/assets/Logo OrdemParanormal.png rename to Ordem Paranormal - Oficial Jambo Editora/assets/Logo OrdemParanormal.png diff --git a/Ordem Paranormal/assets/OrdoRealitas.png b/Ordem Paranormal - Oficial Jambo Editora/assets/OrdoRealitas.png similarity index 100% rename from Ordem Paranormal/assets/OrdoRealitas.png rename to Ordem Paranormal - Oficial Jambo Editora/assets/OrdoRealitas.png diff --git a/Ordem Paranormal/ordemparanormal.css b/Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.css similarity index 96% rename from Ordem Paranormal/ordemparanormal.css rename to Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.css index 78709447d9..f3706fb746 100644 --- a/Ordem Paranormal/ordemparanormal.css +++ b/Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.css @@ -50,6 +50,7 @@ } .sheet-container-sheet-main { + position: relative; margin: 0 auto; font-family: 'PT Sans', sans-serif; font-size: 13px; @@ -76,7 +77,7 @@ margin: 0 auto; border: 5px solid black; padding: 15px; - min-width: 856px; + min-width: 925px; } .sheet-rituals-title { @@ -107,10 +108,22 @@ .sheet-rituals-dt-input{ border: 3px solid black; height: 39px !important; + font-size: 20px !important; } .sheet-main{ width: 1000px; + overflow: hidden; + position: relative; +} + +.sheet-ordo-bg { + opacity: 0.2; + position: absolute; + left: 75px; + top: 150px; + width: 100%; + height: auto; } .sheet-main * { @@ -264,10 +277,10 @@ text-align: center; } -.sheet-for-position {position: relative; top: 137px; left: 55px; height: 65px; width: 65px;} -.sheet-agi-position {position: relative; top: -30px; left: 203px; height: 65px; width: 65px;} -.sheet-int-position {position: relative; top: 6px; left: 355px; height: 65px; width: 65px;} -.sheet-pre-position {position: relative; top: 120px; left: 99px; height: 65px; width: 65px;} +.sheet-for-position {position: relative; top: 140px; left: 75px; height: 65px; width: 65px;} +.sheet-agi-position {position: relative; top: -10px; left: 215px; height: 65px; width: 65px;} +.sheet-int-position {position: relative; top: 11px; left: 357px; height: 65px; width: 65px;} +.sheet-pre-position {position: relative; top: 117px; left: 120px; height: 65px; width: 65px;} .sheet-vig-position {position: relative; top: 55px; left: 310px; height: 65px; width: 65px;} .sheet-main .sheet-header-info { @@ -284,7 +297,7 @@ width: 100%; height: 500px; margin-bottom: 10px; - background-image: url(https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-new-character-sheet/Ordem%20Paranormal/assets/AtributosOP.png); + background-image: url(https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-new-character-sheet/Ordem%20Paranormal/assets/AtributosOPBolinha.png); background-size: 500px; background-repeat: no-repeat; width: 500px; @@ -364,6 +377,7 @@ height: 35px; margin-left: -5px; margin-bottom: 3px; + font-size: 20px; } .sheet-patent input{ @@ -375,6 +389,7 @@ height: 35px; margin-left: -5px; margin-bottom: 3px; + font-size: 20px; } .sheet-description-grid textarea{ @@ -399,6 +414,7 @@ display: flex; align-content: center; align-items: center; + margin-bottom: 15px; } .sheet-item-limit input, .sheet-credit-limit input, .sheet-load-limit input{ @@ -408,6 +424,11 @@ text-align: center; margin-left: 5px; margin-right: 5px; + font-size: 20px; +} + +.sheet-edit-input { + background-color: transparent; } .sheet-credit-limit input{ @@ -438,6 +459,9 @@ margin-bottom: 5px; } +.sheet-trilha-span{ background-color: transparent !important; color: black !important; } +.sheet-class-input{ border: 3px solid black !important; } + .sheet-label-nex-desloc{ margin-top: 11px !important; margin-bottom: 11px !important; @@ -445,6 +469,7 @@ .sheet-label-with-input input { border: 2px solid; width: 90%; + font-size: 20px; } .sheet-nex-desloc, .sheet-nex { @@ -499,14 +524,16 @@ border: 2px solid; width: 100%; height: 50px; + font-size: 20px; } -.sheet-atuais { +.sheet-atuais, .sheet-classe-trilha { position: relative; padding: 5px; } -.sheet-atuais:after, .sheet-atuais:before{ +.sheet-atuais:after, .sheet-atuais:before, +.sheet-classe-trilha:after, .sheet-classe-trilha:before{ border: .2em solid black; border-right-color: black; border-right-style: solid; @@ -530,14 +557,26 @@ left: 0; } -.sheet-atuais label { +.sheet-classe-trilha:after{ + border-left: none; + right: 5px; + top: 5px; +} +.sheet-classe-trilha:before{ + border-right: none; + left: 5px; + top: 5px; +} + +.sheet-atuais label, .sheet-classe-trilha label { font-weight: initial; font-size: 12px; color: black; } -.sheet-atuais input { +.sheet-atuais input, .sheet-classe-trilha input { width: 100%; border: none; + font-size: 20px; } .sheet-san-value { @@ -615,7 +654,7 @@ .sheet-resist{ display:grid; grid-template-columns: 100px auto; } .sheet-protec label, .sheet-resist label { margin:0px; color: black;} -.sheet-protec input, .sheet-resist input { width: 100%; background-color: transparent; border:none; border-bottom:2px solid black;} +.sheet-protec input, .sheet-resist input { width: 100%; background-color: transparent; border:none; border-bottom:2px solid black; font-size: 20px;} .sheet-origin, .sheet-class, .sheet-pv-pe, .sheet-def-san{ margin-bottom: 15px; @@ -623,7 +662,7 @@ .sheet-nex-desloc { margin-bottom: 25px; } -.sheet-pe-rodada input{ width: 80%; height: 100%; } +.sheet-pe-rodada input{ width: 80%; height: 100%; font-size: 20px;} .sheet-pe-label{ display: block; @@ -823,8 +862,8 @@ input:checked + .sheet-slider:before { display: grid; padding-left: 10px; padding-right: 10px; - column-gap: 7px; - grid-template-columns: 24px auto 40px 40px 60px 58px 24px; + column-gap: 10px; + grid-template-columns: 24px auto 40px 40px 60px 58px 50px 25px; grid-template-rows: 24px auto } @@ -900,7 +939,7 @@ input:checked + .sheet-slider:before { .sheet-attacks-container .sheet-attacksgrid .sheet-moreinfo { position: relative; margin-top: 7px; - grid-column: 1/8; + grid-column: 1/9; display: flex; justify-content: center; flex-wrap: wrap; @@ -1859,8 +1898,8 @@ input:checked + .sheet-slider:before { input.sheet-fake-mod{ border: none; - height: 65px; - width: 65px; + height: 55px; + width: 55px; background-color: transparent; justify-content: center; align-items: center; @@ -1994,6 +2033,10 @@ input.sheet-fake-mod{ width: 100% } +.sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-container-ability-power { + grid-template-columns: auto 100px 20px; +} + .sheet-main .repcontainer[data-groupname="repeating_powers"] .sheet-container-ability-power .sheet-buttonshowinfo, .sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-container-ability-power .sheet-buttonshowinfo { background-color: transparent; @@ -2083,6 +2126,10 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai border: solid 2px black } +.sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-container-ability-power .sheet-extra { + grid-column: 1/4; +} + .sheet-main .repcontainer[data-groupname="repeating_powers"] .sheet-container-ability-power .sheet-extra textarea, .sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-container-ability-power .sheet-extra textarea { width: 100%; @@ -2539,7 +2586,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai font-size: 13px } -.sheet-rolltemplate-ordem-paranormal-info { +.sheet-rolltemplate-ordem-paranormal-info, +.sheet-rolltemplate-ordem-paranormal-skill { font-size: 12px; box-sizing: border-box; width: 100%; @@ -2548,14 +2596,16 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai overflow: hidden } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container { width: 100%; position: relative; box-sizing: border-box; border: 2px solid black } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container::before { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container::before, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container::before { position: absolute; content: ''; background-color: #d3e5f5; @@ -2572,7 +2622,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai transform: rotate(-90deg) } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container::after { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container::after, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container::after { content: ''; position: absolute; background-color: #d3e5f5; @@ -2589,7 +2640,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai transform: rotate(180deg) } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox { padding: 5px; font-family: 'PT Sans'; position: relative; @@ -2601,7 +2653,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai row-gap: 5px } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox::before { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox::before, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox::before { position: absolute; content: ''; background-color: #d3e5f5; @@ -2617,7 +2670,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai left: -16px } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox::after { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox::after, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox::after { content: ''; position: absolute; background-color: #d3e5f5; @@ -2634,7 +2688,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai transform: rotate(90deg) } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-roll-title { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-roll-title, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox .sheet-roll-title { font-weight: bold; width: 100%; min-height: 16px; @@ -2645,7 +2700,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai text-transform: uppercase } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-info-title { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-info-title, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox .sheet-info-title { width: 100%; font-style: italic; display: flex; @@ -2655,7 +2711,12 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai font-size: 13px } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-descricao { +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox .sheet-custo span { + font-weight: bolder; +} + +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-descricao, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox .sheet-descricao { box-sizing: border-box; width: 100%; padding: 10px; @@ -2665,7 +2726,8 @@ sheet-main .repcontainer[data-groupname="repeating_investigation"] .sheet-contai overflow-y: auto } -.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-descricao span { +.sheet-rolltemplate-ordem-paranormal-info .sheet-rollbox-container .sheet-rollbox .sheet-descricao span, +.sheet-rolltemplate-ordem-paranormal-skill .sheet-rollbox-container .sheet-rollbox .sheet-descricao span { margin: 0; padding: 0 3px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; diff --git a/Ordem Paranormal/ordemparanormal.html b/Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.html similarity index 78% rename from Ordem Paranormal/ordemparanormal.html rename to Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.html index b5ca8e8dea..d9ab4929c4 100644 --- a/Ordem Paranormal/ordemparanormal.html +++ b/Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.html @@ -1,4 +1,5 @@
+
    @@ -32,7 +33,7 @@
    - + Personagem
    @@ -45,88 +46,96 @@
    - +
    - - + +
    - +
    - - + +
    - - + +
    - +
    - +
    - +
    + + +
    +
    + + +
    - + +
    - + PE/Rodada
    - +
    - +
    - +
    - +
    - +
    - +
    =
    @@ -135,19 +144,19 @@
    AGI
    +
    - + Equip.
    +
    - + Outros
    - +
    @@ -155,7 +164,7 @@
    - +
    @@ -163,11 +172,11 @@
    - +
    - +
    @@ -206,14 +215,14 @@
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    - + - +
    -
    =
    - +
    +
    +
    - +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    - @@ -575,14 +584,14 @@
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    - @@ -806,25 +815,25 @@
    - - +
    - +
    =
    - +
    +
    -
    +
    - +
    - @@ -844,7 +853,7 @@
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    -
    =
    - +
    +
    - @@ -953,17 +962,17 @@
    -
    =
    - +
    +
    - @@ -982,14 +991,14 @@
    -
    =
    - +
    +
    -
    =
    - +
    +
    @@ -1088,9 +1097,9 @@
    Perícia utilizada
    @@ -1106,39 +1115,14 @@
    Atributo no Dano -
    - -
    - - Crítico -
    - -
    - - Chance de Erro -
    -
    - - Melhor Dado -
    -
    - - Pior Dado -
    - - +
    @@ -1164,7 +1148,7 @@
    - + @@ -1186,7 +1170,7 @@
    PATENTE - +
@@ -1201,10 +1185,17 @@ LIMITE DE CRÉDITO
-
- CARGA MAX. - - +
+
+ CARGA ATUAL
E EXTRA
+ + +
+
+ CARGA MAX. + + +
@@ -1257,7 +1248,7 @@
Dificuldade do Teste - +
@@ -1270,17 +1261,17 @@
- + W
Execução @@ -1309,17 +1300,17 @@
- + W
Execução @@ -1348,17 +1339,17 @@
- + W
Execução @@ -1385,17 +1376,17 @@
- + W
Execução @@ -1433,7 +1424,6 @@
- W @@ -1573,6 +1563,26 @@
+ +
+
+
+ {{infoname}} +
+ {{#cost}} +
+ Custo: {{cost}} +
+ {{/cost}} + {{#description}} +
+ {{description}} +
+ {{/description}} +
+
+
+
@@ -1585,7 +1595,7 @@
{{#type}}
- Tipo: {{type}} + Elemento: {{type}}
{{/type}} @@ -1714,10 +1724,97 @@ } setAttrs({[`roll_${stat}`]: stat_value > 0 ? `&{template:ordem-paranormal}{{character=@{character_name}}}{{rollname=${dict_atribute[stat]}}}{{theroll=[[@{${stat}}d20kh1]]}}` : `&{template:ordem-paranormal}{{character=@{character_name}}}{{rollname=${dict_atribute[stat]}}}{{theroll=[[2d20kl1]]}}`}) + + if(stat == 'for'){ + repeatingSumModified("carga","equipment",["equipquantity","equipslot"], ""); + } }); }); }); +//Skills +//Perícias +['acrobacia','adestramento','artes','atletismo','atualidades','ciencias','crime','diplomacia','enganacao','fortitude','furtividade', +'iniciativa','intimidacao','intuicao','investigacao','luta','medicina','ocultismo','percepcao','pilotagem','pontaria', +'profissao1','profissao2','reflexos','religiao','sobrevivencia','tatica','tecnologia','vontade', +].forEach(skill => { + on(`sheet:opened change:for change:agi change:vig change:int change:pre + change:${skill}atributo2 change:${skill}treino change:${skill}outros change:${skill}bonus change:protecaopenalidade1 change:protecaopenalidade2 change:protecaopenalidade3 change:penalidades_protecao_carga`, function(){ + getAttrs([ + `${skill}atributo2`, `${skill}bonus`, `${skill}outros`, `${skill}treino`, + "for", "agi", "int", "pre", "vig", + "protecaopenalidade1","protecaopenalidade2","protecaopenalidade3", + "penalidades_protecao_carga" + ], function(x){ + const penalidade1 = !isNaN(x[`protecaopenalidade1`]) ? parseInt(x['protecaopenalidade1']) : 0 + const penalidade2 = !isNaN(x[`protecaopenalidade2`]) ? parseInt(x['protecaopenalidade2']) : 0 + const penalidade3 = !isNaN(x[`protecaopenalidade3`]) ? parseInt(x['protecaopenalidade3']) : 0 + + const penalidadeCarga = !isNaN(x[`penalidades_protecao_carga`]) ? parseInt(x['penalidades_protecao_carga']) : 0 + + //const totalPenalidades = penalidade1 + penalidade2 + penalidade3 + + let dict_skills = { + 'acrobacia':"Acrobacia", 'adestramento': "Adestramento", 'artes': "Artes", 'atletismo': "Atletismo", 'atualidades': "Atualidades", + 'ciencias': "Ciências", 'crime': "Crime", 'diplomacia': "Diplomacia", 'enganacao': "Enganação", 'fortitude': "Fortitude", 'furtividade': "Furtividade", + 'iniciativa': "Iniciativa", 'intimidacao': "Intimidação", 'intuicao': "Intuição", 'investigacao': 'Investigação', 'luta': "Luta", + 'medicina': "Medicina", 'ocultismo': "Ocultismo", 'percepcao': "Percepção", 'pilotagem': "Pilotagem", 'pontaria': "Pontaria", + 'profissao1': "Profissão",'profissao2': "Profissão2", 'reflexos': "Reflexos", 'religiao': "Religião", + 'sobrevivencia': "Sobrevivência", 'tatica': "Tática", 'tecnologia': "Tecnologia", 'vontade': "Vontade" + } + + let rawAttr = x[`${skill}atributo2`].replace('@{','').replace('}', '').trim(); + let bonus = x[`${skill}bonus`]; + let outros = x[`${skill}outros`]; + + let skillTotal = `${bonus} - ${penalidadeCarga}`; + + console.log(x[`rawAttr`], x[`${skill}atributo2`], skill); + + setAttrs({[`roll${skill}`]: x[`${rawAttr}`] > 0 ? + `&{template:ordem-paranormal}{{character=@{character_name}}}{{rollname=${dict_skills[skill]}}}{{theroll=[[(${x[`${rawAttr}`]})d20kh1+${skillTotal}]]}}` : + `&{template:ordem-paranormal}{{character=@{character_name}}}{{rollname=${dict_skills[skill]}}}{{theroll=[[2d20kl1+${skillTotal}]]}}` + }); + + + }); + }); +}); + +//PERODADA +on("sheet:opened change:totalnex", function(e){ + getAttrs(["totalnex", "perodada"], function(x){ + let pe_rodada = x["totalnex"] == 99 ? 20 : Math.floor(x["totalnex"]/5); + setAttrs({["perodada"]: pe_rodada}); + }); +}); + +//DEFESA +on("sheet:opened change:agi change:defequip change:defoutros", function(e){ + getAttrs(["agi", "defesa", "defequip", "defoutros"], function(x){ + let agi = isNaN(parseInt(x["agi"])) ? 0 : parseInt(x["agi"]); + let defequip = isNaN(parseInt(x["defequip"])) ? 0 : parseInt(x["defequip"]); + let defoutros = isNaN(parseInt(x["defoutros"])) ? 0 : parseInt(x["defoutros"]); + + console.log(agi, defequip, defoutros); + + let defesa_total = 10 + agi + defequip + defoutros; + setAttrs({["defense"]: defesa_total}); + }); +}); + +//DT +on("sheet:opened change:pre change:perodada", function(e){ + getAttrs(["pre", "dt", "perodada"], function(x){ + let pre = isNaN(parseInt(x["pre"])) ? 0 : parseInt(x["pre"]); + let perodada = isNaN(parseInt(x["perodada"])) ? 0 : parseInt(x["perodada"]); + + let dt_final = 10 + pre + perodada; + setAttrs({["dt"]: dt_final}); + }); +}); + + //Navegação on("sheet:opened change:cstype change:resistemp", function(e){ getAttrs(["cstype"], function(v){ @@ -1771,6 +1868,146 @@ on("sheet:opened change:cstype change:resistemp", function(e){ }); }); + +//ATK E DANO +on("change:repeating_attacks:danoataque change:repeating_attacks:multiplicadorcriticoataque change:repeating_attacks:danoextraataque change:repeating_attacks:modatributodano", function() { + getAttrs([ + "repeating_attacks_danoataque", + "repeating_attacks_multiplicadorcriticoataque", + "repeating_attacks_danoextraataque", + "repeating_attacks_modatributodano", + "for", "agi", "vig", "int", "pre" + ], function(v) { + let dano = ''; + + if(typeof v.repeating_attacks_danoataque === 'string'){ + dano = v.repeating_attacks_danoataque; + } else { + dano = v.repeating_attacks_danoataque.toString(); + } + + let multiplicador = parseInt(v.repeating_attacks_multiplicadorcriticoataque) - 1; + let resultado = dano; + + for(let i=0; i < multiplicador; i++){ + resultado = resultado + " + " + dano; + } + + console.log("Resultado:"+resultado); + + setAttrs({ + "repeating_attacks_danocriticoataque": resultado + }); + }); +}); + +on("sheet:opened change:repeating_attacks:ataquepericia", function() { + getAttrs([ + "repeating_attacks_ataquepericia", + "repeating_attacks_bonusataque", + "repeating_attacks_roll_attack", + "for", "agi", "vig", "int", "pre", + "lutaatributo2", "lutabonus", "lutaoutros", + "pontariaatributo2", "pontariabonus", "pontariaoutros", + "ocultismoatributo2", "ocultismobonus", "ocultismooutros" + ], function(v) { + getSectionIDs("attacks", function(idarray) { + for(var i=0; i < idarray.length; i++) { + let dict_skills = { + 'luta': "Luta", 'ocultismo': "Ocultismo", 'pontaria': "Pontaria" + } + + let skill = v.repeating_attacks_ataquepericia; + console.log(skill); + let rawAttr = v[`${skill}atributo2`].replace('@{','').replace('}', '').trim(); + console.log(rawAttr); + let bonus = v[`${skill}bonus`]; + console.log(bonus); + let bonusataque = v.repeating_attacks_bonusataque; + console.log(bonusataque); + + console.log("repeating_attacks_"+idarray[i]+"_roll_attack"); + + setAttrs({["repeating_attacks_"+idarray[i]+"_roll_attack"]: v[`${rawAttr}`] > 0 ? + `&{template:ordem-paranormal-attack}{{character=@{character_name}}}{{attackname=@{nomeataque}}}{{attackroll=[[(${v[`${rawAttr}`]})d20kh1cs>@{margemcriticoataque}+[[${bonus}]]+${bonusataque}]]}} {{damageroll=[[@{danoataque}+@{modatributodano}+@{danoextraataque}]]}} {{criticaldamageroll=[[@{danocriticoataque}+@{dadoextraataque}+@{modatributodano}]]}}{{typeofdamage=@{ataquetipodedano}}}{{description=@{ataquedescricao}}}` : + `&{template:ordem-paranormal-attack}{{character=@{character_name}}}{{attackname=@{nomeataque}}}{{attackroll=[[2d20kl1cs>@{margemcriticoataque}+[[${bonus}]]+${bonusataque}]]}} {{damageroll=[[@{danoataque}+@{modatributodano}+@{danoextraataque}]]}} {{criticaldamageroll=[[@{danocriticoataque}+@{dadoextraataque}+@{modatributodano}]]}}{{typeofdamage=@{ataquetipodedano}}}{{description=@{ataquedescricao}}}` + }); + } + }); + }); +}); + +//Patentes +on("sheet:opened change:prestigypoints", function(e){ + getAttrs(["prestigypoints", "patent"], function(v){ + let prestigy = parseInt(v["prestigypoints"]); + let pattent = "Recruta"; + + if(prestigy > 19){ pattent = "Operador"; } + if(prestigy > 49){ pattent = "Agente Especial"; } + if(prestigy > 99){ pattent = "Oficial de Operações"; } + if(prestigy > 199){ pattent = "Agente de Elite"; } + + setAttrs({["patent"]: pattent}); + }); +}) + +//CARGA +on("sheet:opened change:extraslot", function(e){ + repeatingSumModified("carga","equipment",["equipquantity","equipslot"], ""); +}); + +//Calculando carga e seus efeitos: +on('sheet:opened change:repeating_equipment remove:repeating_equipment', function() { + repeatingSumModified("carga","equipment",["equipquantity","equipslot"], ""); +}); + +const repeatingSumModified = (destination,section, fields, appendText = '', multiplier = 1) => { + if (!Array.isArray(fields)) fields = [fields]; + getSectionIDs(`repeating_${section}`, idArray => { + const attrArray = idArray.reduce( (m,id) => [...m, ...(fields.map(field => `repeating_${section}_${id}_${field}`))],[]); + + let pesoMoeda = 0; + let slotExtra = 0; + getAttrs(["extraslot"], function(v){ + slotExtra = parseInt(v.extraslot) + pesoMoeda = Math.floor((tibar + tibouro)/1000); + }); + + getAttrs(["for", ...attrArray], v => { + //console.log("===== values of v: "+ JSON.stringify(v) +" ====="); + // getValue: if not a number, returns 1 if it is 'on' (checkbox), otherwise returns 0.. + const getValue = (section, id,field) => parseFloat(v[`repeating_${section}_${id}_${field}`]) || (v[`repeating_${section}_${id}_${field}`] === 'on' ? 1 : 0); + const sumTotal = idArray.reduce((total, id) => total + fields.reduce((subtotal,field) => subtotal * getValue(section, id,field),1),0); + + let for_mod = parseInt(v.for); + + let cargalimit = for_mod > 0 ? (5 * for_mod) : parseInt(2); + cargalimit += slotExtra; + let cargamax = cargalimit * 2; + + let setObj = {} + + let finalTotal = (sumTotal * multiplier) + pesoMoeda; + + finalTotal = finalTotal.toString() + appendText; + + //setObj['penalidades_armadura_carga'] = 0; + + setObj[destination] = finalTotal; + + setObj['limite'] = cargalimit; + setObj['maxima'] = cargamax; + + //if(sumTotal * multiplier > cargalimit){ + // setObj['penalidades_armadura_carga'] = 5; + // setObj[destination] = finalTotal + "!" ; + //} + + setAttrs(setObj); + }); + }); +}; \ No newline at end of file diff --git a/Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.png b/Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.png new file mode 100644 index 0000000000..16a3cfd21e Binary files /dev/null and b/Ordem Paranormal - Oficial Jambo Editora/ordemparanormal.png differ diff --git a/Ordem Paranormal/sheet.json b/Ordem Paranormal - Oficial Jambo Editora/sheet.json similarity index 100% rename from Ordem Paranormal/sheet.json rename to Ordem Paranormal - Oficial Jambo Editora/sheet.json diff --git a/Ordem Paranormal/translation.json b/Ordem Paranormal - Oficial Jambo Editora/translation.json similarity index 98% rename from Ordem Paranormal/translation.json rename to Ordem Paranormal - Oficial Jambo Editora/translation.json index a462aead20..efe46a78f6 100644 --- a/Ordem Paranormal/translation.json +++ b/Ordem Paranormal - Oficial Jambo Editora/translation.json @@ -7,7 +7,7 @@ "mod_forca": "FORÇA", "mod_agilidade": "AGILIDADE", "mod_vigor": "VIGOR", - "mod_inteligencia": "INTELECTO", + "mod_intelecto": "INTELECTO", "mod_presenca": "PRESENÇA", "pontos_de_vida": "Pontos de Vida", "pv_maximos": "Máximos", @@ -21,6 +21,7 @@ "bonus_ataque": "Bônus de Ataque", "dano": "Dano", "dano_extra": "Dano Extra", + "dado_extra": "Dados Extra", "critico": "Crítico", "descricao_macros": "Descrição / Macros", "pericia_utilizada": "Perícia utilizada", diff --git a/Ordem Paranormal/translations/af.json b/Ordem Paranormal - Oficial Jambo Editora/translations/af.json similarity index 100% rename from Ordem Paranormal/translations/af.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/af.json diff --git a/Ordem Paranormal/translations/ca.json b/Ordem Paranormal - Oficial Jambo Editora/translations/ca.json similarity index 100% rename from Ordem Paranormal/translations/ca.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/ca.json diff --git a/Ordem Paranormal/translations/cs.json b/Ordem Paranormal - Oficial Jambo Editora/translations/cs.json similarity index 100% rename from Ordem Paranormal/translations/cs.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/cs.json diff --git a/Ordem Paranormal/translations/da.json b/Ordem Paranormal - Oficial Jambo Editora/translations/da.json similarity index 100% rename from Ordem Paranormal/translations/da.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/da.json diff --git a/Ordem Paranormal/translations/de.json b/Ordem Paranormal - Oficial Jambo Editora/translations/de.json similarity index 100% rename from Ordem Paranormal/translations/de.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/de.json diff --git a/Ordem Paranormal/translations/el.json b/Ordem Paranormal - Oficial Jambo Editora/translations/el.json similarity index 100% rename from Ordem Paranormal/translations/el.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/el.json diff --git a/Ordem Paranormal/translations/en.json b/Ordem Paranormal - Oficial Jambo Editora/translations/en.json similarity index 100% rename from Ordem Paranormal/translations/en.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/en.json diff --git a/Ordem Paranormal/translations/es.json b/Ordem Paranormal - Oficial Jambo Editora/translations/es.json similarity index 100% rename from Ordem Paranormal/translations/es.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/es.json diff --git a/Ordem Paranormal/translations/fi.json b/Ordem Paranormal - Oficial Jambo Editora/translations/fi.json similarity index 100% rename from Ordem Paranormal/translations/fi.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/fi.json diff --git a/Ordem Paranormal/translations/fr.json b/Ordem Paranormal - Oficial Jambo Editora/translations/fr.json similarity index 100% rename from Ordem Paranormal/translations/fr.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/fr.json diff --git a/Ordem Paranormal/translations/he.json b/Ordem Paranormal - Oficial Jambo Editora/translations/he.json similarity index 100% rename from Ordem Paranormal/translations/he.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/he.json diff --git a/Ordem Paranormal/translations/hu.json b/Ordem Paranormal - Oficial Jambo Editora/translations/hu.json similarity index 100% rename from Ordem Paranormal/translations/hu.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/hu.json diff --git a/Ordem Paranormal/translations/it.json b/Ordem Paranormal - Oficial Jambo Editora/translations/it.json similarity index 100% rename from Ordem Paranormal/translations/it.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/it.json diff --git a/Ordem Paranormal/translations/ja.json b/Ordem Paranormal - Oficial Jambo Editora/translations/ja.json similarity index 100% rename from Ordem Paranormal/translations/ja.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/ja.json diff --git a/Ordem Paranormal/translations/ko.json b/Ordem Paranormal - Oficial Jambo Editora/translations/ko.json similarity index 100% rename from Ordem Paranormal/translations/ko.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/ko.json diff --git a/Ordem Paranormal/translations/nl.json b/Ordem Paranormal - Oficial Jambo Editora/translations/nl.json similarity index 100% rename from Ordem Paranormal/translations/nl.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/nl.json diff --git a/Ordem Paranormal/translations/pb.json b/Ordem Paranormal - Oficial Jambo Editora/translations/pb.json similarity index 100% rename from Ordem Paranormal/translations/pb.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/pb.json diff --git a/Ordem Paranormal/translations/pl.json b/Ordem Paranormal - Oficial Jambo Editora/translations/pl.json similarity index 100% rename from Ordem Paranormal/translations/pl.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/pl.json diff --git a/Ordem Paranormal/translations/pt.json b/Ordem Paranormal - Oficial Jambo Editora/translations/pt.json similarity index 100% rename from Ordem Paranormal/translations/pt.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/pt.json diff --git a/Ordem Paranormal/translations/ru.json b/Ordem Paranormal - Oficial Jambo Editora/translations/ru.json similarity index 100% rename from Ordem Paranormal/translations/ru.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/ru.json diff --git a/Ordem Paranormal/translations/sl.json b/Ordem Paranormal - Oficial Jambo Editora/translations/sl.json similarity index 100% rename from Ordem Paranormal/translations/sl.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/sl.json diff --git a/Ordem Paranormal/translations/sv.json b/Ordem Paranormal - Oficial Jambo Editora/translations/sv.json similarity index 100% rename from Ordem Paranormal/translations/sv.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/sv.json diff --git a/Ordem Paranormal/translations/tr.json b/Ordem Paranormal - Oficial Jambo Editora/translations/tr.json similarity index 100% rename from Ordem Paranormal/translations/tr.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/tr.json diff --git a/Ordem Paranormal/translations/uk.json b/Ordem Paranormal - Oficial Jambo Editora/translations/uk.json similarity index 100% rename from Ordem Paranormal/translations/uk.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/uk.json diff --git a/Ordem Paranormal/translations/zh.json b/Ordem Paranormal - Oficial Jambo Editora/translations/zh.json similarity index 100% rename from Ordem Paranormal/translations/zh.json rename to Ordem Paranormal - Oficial Jambo Editora/translations/zh.json