mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
ajustes de perícias
This commit is contained in:
+91
-21
@@ -520,10 +520,10 @@
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-rows: 110px auto;
|
||||
grid-template-rows: 70px auto;
|
||||
row-gap: 22px;
|
||||
min-height: 176px;
|
||||
margin-bottom: 22px
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-box-proficiencies {
|
||||
@@ -539,15 +539,67 @@
|
||||
height: 150px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield {
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-defense {
|
||||
height: 76px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-defense .sheet-inside-negative-corner {
|
||||
height: 76px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
display: grid;
|
||||
grid-template-rows: 1fr;
|
||||
row-gap: 22px
|
||||
grid-template-columns: auto 10px 20px 7px 46px 7px 40px 7px 40px 7px 38px;
|
||||
grid-template-rows: 28px auto;
|
||||
row-gap: 5px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-defense .sheet-inside-negative-corner .sheet-signal {
|
||||
font-family: Arial, Verdana;
|
||||
width: 100%;
|
||||
height: 26px;
|
||||
display: flex;
|
||||
font-weight: bold;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 10px !important
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-defense .sheet-inside-negative-corner .sheet-big-signal {
|
||||
font-size: 14px !important;
|
||||
font-family: Arial, Verdana;
|
||||
width: 100%;
|
||||
height: 26px;
|
||||
display: flex;
|
||||
font-weight: bold;
|
||||
justify-content: center;
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-defense .sheet-inside-negative-corner input {
|
||||
height: 26px;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
line-height: 26px;
|
||||
border: 0;
|
||||
border-bottom: 2px solid black;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-defense .sheet-inside-negative-corner select {
|
||||
height: 26px;
|
||||
margin: 0;
|
||||
font-size: 10px;
|
||||
padding: 2px;
|
||||
padding-right: 1px;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
border-bottom: 2px solid black
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-armor-shield .sheet-inside-negative-corner {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
padding-bottom: 10px;
|
||||
display: grid;
|
||||
column-gap: 10px;
|
||||
grid-template-columns: auto 38px 38px 50px;
|
||||
@@ -561,7 +613,7 @@
|
||||
line-height: 20px;
|
||||
border: 0;
|
||||
border-bottom: 2px solid black;
|
||||
width: 100%
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-defense-and-proeficience-container .sheet-container-defense-armor-shield .sheet-container-armor-shield .sheet-inside-negative-corner select {
|
||||
@@ -1101,6 +1153,20 @@
|
||||
border-bottom: 1px solid black
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-skills-container .sheet-inside-negative-corner .sheet-skill-grid-template .sheet-oficio .sheet-sup-treinada {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-skills-container .sheet-inside-negative-corner .sheet-skill-grid-template .sheet-oficio .sheet-sup-treinada::before {
|
||||
content: "*";
|
||||
position: absolute;
|
||||
height: 20px;
|
||||
top: -3px;
|
||||
width: 5px;
|
||||
right: -5px;
|
||||
vertical-align: super
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-skills-container .sheet-inside-negative-corner .sheet-skill-grid-template .sheet-oficio .sheet-skill-button {
|
||||
width: auto;
|
||||
text-align: left;
|
||||
@@ -1200,21 +1266,6 @@
|
||||
vertical-align: super
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-languages-container {
|
||||
width: 100%;
|
||||
display: block;
|
||||
margin-bottom: 22px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-languages-container .sheet-inside-negative-corner {
|
||||
padding: 5px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-languages-container textarea {
|
||||
width: 100%;
|
||||
height: 70px !important;
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-equipment-container {
|
||||
width: 100%;
|
||||
display: block;
|
||||
@@ -2512,3 +2563,22 @@
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 13px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-languages-container {
|
||||
width: 100%;
|
||||
display: block;
|
||||
margin-bottom: 22px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-right-container .sheet-languages-container .sheet-inside-negative-corner {
|
||||
padding: 5px
|
||||
}
|
||||
|
||||
.sheet-main .sheet-left-container .sheet-languages-container textarea {
|
||||
width: 100%;
|
||||
height: 70px !important;
|
||||
}
|
||||
|
||||
.sheet-defesa-total {
|
||||
font-size: 17px !important;
|
||||
}
|
||||
+163
-81
@@ -45,7 +45,7 @@
|
||||
<button type="roll" name="roll_for" value="&{template:t20}{{character=@{character_name}}}{{rollname=Força}}{{theroll=[[1d20+@{for_mod}]]}}" class="button-title-attribute">FOR</button>
|
||||
<input name="attr_for_mod_fake" type="text" spellcheck="false" maxlength="2" class="fake-mod" title="@{for_mod}" value="@{for_mod}" disabled="true" />
|
||||
<input type="hidden" name="attr_for_mod" />
|
||||
|
||||
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
@@ -63,7 +63,7 @@
|
||||
<button type="roll" name="roll_des" value="&{template:t20}{{character=@{character_name}}}{{rollname=Destreza}}{{theroll=[[1d20+@{des_mod}]]}}" class="button-title-attribute">DES</button>
|
||||
<input name="attr_des_mod_fake" type="text" spellcheck="false" maxlength="2" class="fake-mod" title="@{des_mod}" value="@{des_mod}" disabled="true" />
|
||||
<input type="hidden" name="attr_des_mod" />
|
||||
|
||||
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
@@ -81,7 +81,7 @@
|
||||
<button type="roll" name="roll_con" value="&{template:t20}{{character=@{character_name}}}{{rollname=Constituição}}{{theroll=[[1d20+@{con_mod}]]}}" class="button-title-attribute">CON</button>
|
||||
<input name="attr_con_mod_fake" type="text" spellcheck="false" maxlength="2" class="fake-mod" title="@{con_mod}" value="@{con_mod}" disabled="true" />
|
||||
<input type="hidden" name="attr_con_mod" />
|
||||
|
||||
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
@@ -99,7 +99,7 @@
|
||||
<button type="roll" name="roll_int" value="&{template:t20}{{character=@{character_name}}}{{rollname=Inteligência}}{{theroll=[[1d20+@{int_mod}]]}}" class="button-title-attribute">INT</button>
|
||||
<input name="attr_int_mod_fake" type="text" spellcheck="false" maxlength="2" class="fake-mod" title="@{int_mod}" value="@{int_mod}" disabled="true" />
|
||||
<input type="hidden" name="attr_int_mod" />
|
||||
|
||||
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
@@ -117,7 +117,7 @@
|
||||
<button type="roll" name="roll_sab" value="&{template:t20}{{character=@{character_name}}}{{rollname=Sabedoria}}{{theroll=[[1d20+@{sab_mod}]]}}" class="button-title-attribute">SAB</button>
|
||||
<input name="attr_sab_mod_fake" type="text" spellcheck="false" maxlength="2" class="fake-mod" title="@{sab_mod}" value="@{sab_mod}" disabled="true" />
|
||||
<input type="hidden" name="attr_sab_mod" />
|
||||
|
||||
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
@@ -135,7 +135,7 @@
|
||||
<button type="roll" name="roll_car" value="&{template:t20}{{character=@{character_name}}}{{rollname=Carisma}}{{theroll=[[1d20+@{car_mod}]]}}" class="button-title-attribute">CAR</button>
|
||||
<input name="attr_car_mod_fake" type="text" spellcheck="false" maxlength="2" class="fake-mod" title="@{car_mod}" value="@{car_mod}" disabled="true" />
|
||||
<input type="hidden" name="attr_car_mod" />
|
||||
|
||||
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
@@ -146,7 +146,7 @@
|
||||
<input name="attr_car" maxlength="2" type="text" spellcheck="false" value="10"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pseudo-attributes">
|
||||
<!-- Pontos de Vida -->
|
||||
@@ -197,7 +197,7 @@
|
||||
<div class="corner bottom-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Pontos de Sombra -->
|
||||
<div class="container-negative-corner container-pvs-mps sombra-catarse">
|
||||
<div class="inside-negative-corner">
|
||||
@@ -252,7 +252,7 @@
|
||||
<div class="small-title">Crítico</div>
|
||||
</div>
|
||||
<!-- Ataques -->
|
||||
<fieldset class="repeating_attacks">
|
||||
<fieldset class="repeating_attacks">
|
||||
<div class="attacksgrid">
|
||||
<button type="roll" name="roll_attack" class="buttonrollataque" value="&{template:t20-attack}{{character=@{character_name}}}{{attackname=@{nomeataque}}}{{attackroll=[[1d20cs>@{margemcriticoataque}+[[@{ataquepericia}]]+@{bonusataque}]]}} {{damageroll=[[@{danoataque}+@{modatributodano}+@{danoextraataque}]]}} {{criticaldamageroll=[[@{danocriticoataque}+@{modatributodano}+@{danoextraataque}]]}}{{typeofdamage=@{ataquetipodedano}}}{{description=@{ataquedescricao}}}">T</button>
|
||||
<input name="attr_nomeataque" type="text" spellcheck="false" class="" value="">
|
||||
@@ -281,7 +281,7 @@
|
||||
<div class="inputtextbellow">
|
||||
<select name="attr_ataquepericia">
|
||||
<option value="@{atuacaototal}">Atuação</option>
|
||||
<option value="@{lutatotal}" selected="">Agressão</option>
|
||||
<option value="@{lutatotal}" selected="">Luta</option>
|
||||
<option value="@{pontariatotal}">Pontaria</option>
|
||||
</select>
|
||||
<span class="title">Perícia utilizada</span>
|
||||
@@ -294,7 +294,7 @@
|
||||
<input name="attr_ataquealcance" type="text" spellcheck="false" value=""/>
|
||||
<span class="title">Alcance</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="inputtextbellow">
|
||||
<select name="attr_modatributodano">
|
||||
<option value="0" selected="">Nenhum</option>
|
||||
@@ -308,13 +308,13 @@
|
||||
<span class="title">Atributo no Dano</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!-- <div class="bottomline"></div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
<!-- Ataques -->
|
||||
@@ -327,9 +327,54 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="defense-and-proeficience-container">
|
||||
<div class="container-defense-armor-shield">
|
||||
<div class="container-negative-corner container-defense">
|
||||
<div class="inside-negative-corner">
|
||||
<div class="grid-title">Defesa</div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div class="small-title">Mod. Destreza</div>
|
||||
<div></div>
|
||||
<div class="small-title">Bônus de Armadura</div>
|
||||
<div></div>
|
||||
<div class="small-title">Bônus de Escudo</div>
|
||||
<div></div>
|
||||
<div class="small-title">Outros</div>
|
||||
|
||||
<div>
|
||||
<input class="defesa-total" name="attr_defesafake" disabled="true" value="@{defesatotal}" maxlength="3" type="text" spellcheck="false" title="@{defesatotal}">
|
||||
</div>
|
||||
<div class="signal">=</div>
|
||||
<div class="big-signal">10</div>
|
||||
<div class="signal">+</div>
|
||||
<select name="attr_defesadestreza">
|
||||
<option value="0">Não</option>
|
||||
<option value="1" selected>Sim</option>
|
||||
</select>
|
||||
<div class="signal">+</div>
|
||||
<div>
|
||||
<input name="attr_defesaarmadura" type="text" spellcheck="false" value="@{armaduradefesa1}" disabled="true">
|
||||
</div>
|
||||
<div class="signal">+</div>
|
||||
<div>
|
||||
<input name="attr_defesaescudo" type="text" spellcheck="false" value="@{armaduradefesa2}" disabled="true">
|
||||
</div>
|
||||
<div class="signal">+</div>
|
||||
<div>
|
||||
<input name="attr_defesaoutros" type="text" spellcheck="false" value="@{armaduradefesa3}" disabled="true">
|
||||
</div>
|
||||
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
<div class="corner bottom-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-defense-armor-shield">
|
||||
<div class="container-negative-corner container-armor-shield">
|
||||
<div class="inside-negative-corner">
|
||||
@@ -418,7 +463,7 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="container-reapeater">
|
||||
<fieldset class="repeating_powers">
|
||||
<div class="container-ability-power">
|
||||
@@ -454,7 +499,7 @@
|
||||
</div>
|
||||
<div class="sheet-containerspelllist">
|
||||
<fieldset class="repeating_spells1">
|
||||
|
||||
|
||||
<div class="container-single-spell">
|
||||
<button type="roll" name="roll_spell1" class="buttonspell" value="&{template:spell}{{character=@{character_name}}}{{spellname=@{namespell}}}{{type=@{spelltipo}}}{{execution=@{spellexecucao}}}{{duration=@{spellduracao}}}{{range=@{spellalcance}}}{{targetarea=@{spellalvoarea}}}{{resistance=@{spellresistencia}}}{{description=@{spelldescription}}}{{cd=@{spellcd}}}">T</button>
|
||||
<input name="attr_namespell" type="text" spellcheck="false" value=""/>
|
||||
@@ -486,7 +531,7 @@
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="cicloheader">
|
||||
<div class="ciclo-title">3º Círculo</div>
|
||||
@@ -626,7 +671,7 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="corner top-left"></div>
|
||||
@@ -636,9 +681,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="right-container">
|
||||
<div class="logo-level">
|
||||
<div class="container-logo">
|
||||
@@ -648,7 +693,7 @@
|
||||
<div class="total-level">
|
||||
<span>Nível do Personagem</span>
|
||||
<input name="attr_charnivel" maxlength="2" type="text" spellcheck="false" value="1"/>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -696,7 +741,7 @@
|
||||
<input name="attr_acrobaciatreino" type="text" spellcheck="false" maxlength="3" title="@{acrobaciatreino}" value="@{bonus_treino}*@{acrobacia_treinada}" disabled="true">
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_acrobaciaoutros" maxlength="3" type="text" spellcheck="false" title="@{acrobaciaoutros}" value="0">
|
||||
|
||||
|
||||
<!-- Adestramento -->
|
||||
<div class="signal">
|
||||
<label class="fake-checkbox">
|
||||
@@ -724,35 +769,7 @@
|
||||
<input name="attr_adestramentotreino" type="text" spellcheck="false" maxlength="3" title="@{adestramentotreino}" value="@{bonus_treino}*@{adestramento_treinada}" disabled="true">
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_adestramentooutros" maxlength="3" type="text" spellcheck="false" title="@{adestramentooutros}" value="0">
|
||||
|
||||
<!-- Agressão -->
|
||||
<div class="signal">
|
||||
<label class="fake-checkbox">
|
||||
<input type="checkbox" name="attr_luta_treinada" title="@{luta_treinada}" value="1">
|
||||
<div class="fake-checkbox-status"></div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="skill-name">
|
||||
<button type="roll" name="roll_luta" value="&{template:t20}{{character=@{character_name}}}{{rollname=Agressão}}{{theroll=[[1d20+[[@{lutatotal}]]]]}}" class="skill-button">
|
||||
<span>Agressão</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="signal"></div>
|
||||
<input class="total last" name="attr_lutatotal" maxlength="2" type="text" spellcheck="false" title="@{lutatotal}" value="@{metade_do_nivel} + @{lutaatributo2} + @{lutatreino} + @{lutaoutros}" disabled="true">
|
||||
<div class="signal">=</div>
|
||||
<select name="attr_lutaatributo2">
|
||||
<option value="@{for_mod}" selected>FOR*</option>
|
||||
<option value="@{des_mod}">DES</option>
|
||||
<option value="@{con_mod}">CON</option>
|
||||
<option value="@{int_mod}">INT</option>
|
||||
<option value="@{sab_mod}">SAB</option>
|
||||
<option value="@{car_mod}">CAR</option>
|
||||
</select>
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_lutatreino" type="text" spellcheck="false" maxlength="3" title="@{lutatreino}" value="@{bonus_treino}*@{luta_treinada}" disabled="true">
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_lutaoutros" maxlength="3" type="text" spellcheck="false" title="@{lutaoutros}" value="0">
|
||||
|
||||
|
||||
<!-- Atletismo -->
|
||||
<div class="signal">
|
||||
<label class="fake-checkbox">
|
||||
@@ -865,6 +882,7 @@
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_conhecimentooutros" maxlength="3" type="text" spellcheck="false" title="@{conhecimentooutros}" value="0">
|
||||
|
||||
|
||||
<!-- Conjuração -->
|
||||
<div class="signal">
|
||||
<label class="fake-checkbox">
|
||||
@@ -1258,6 +1276,34 @@
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_ladinagemoutros" maxlength="3" type="text" spellcheck="false" title="@{ladinagemoutros}" value="0">
|
||||
|
||||
<!-- Luta -->
|
||||
<div class="signal">
|
||||
<label class="fake-checkbox">
|
||||
<input type="checkbox" name="attr_luta_treinada" title="@{luta_treinada}" value="1">
|
||||
<div class="fake-checkbox-status"></div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="skill-name">
|
||||
<button type="roll" name="roll_luta" value="&{template:t20}{{character=@{character_name}}}{{rollname=Luta}}{{theroll=[[1d20+[[@{lutatotal}]]]]}}" class="skill-button">
|
||||
<span>Luta</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="signal"></div>
|
||||
<input class="total last" name="attr_lutatotal" maxlength="2" type="text" spellcheck="false" title="@{lutatotal}" value="@{metade_do_nivel} + @{lutaatributo2} + @{lutatreino} + @{lutaoutros}" disabled="true">
|
||||
<div class="signal">=</div>
|
||||
<select name="attr_lutaatributo2">
|
||||
<option value="@{for_mod}" selected>FOR*</option>
|
||||
<option value="@{des_mod}">DES</option>
|
||||
<option value="@{con_mod}">CON</option>
|
||||
<option value="@{int_mod}">INT</option>
|
||||
<option value="@{sab_mod}">SAB</option>
|
||||
<option value="@{car_mod}">CAR</option>
|
||||
</select>
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_lutatreino" type="text" spellcheck="false" maxlength="3" title="@{lutatreino}" value="@{bonus_treino}*@{luta_treinada}" disabled="true">
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_lutaoutros" maxlength="3" type="text" spellcheck="false" title="@{lutaoutros}" value="0">
|
||||
|
||||
<!-- Nobreza -->
|
||||
<div class="signal">
|
||||
<label class="fake-checkbox">
|
||||
@@ -1294,7 +1340,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<div class="skill-name">
|
||||
<button type="roll" name="roll_misticismo" value="&{template:t20}{{character=@{character_name}}}{{rollname=Misticismo}}{{theroll=[[1d20+[[@{misticismototal}]]]]}}" class="skill-button">
|
||||
<button type="roll" name="roll_misticismo" value="&{template:t20}{{character=@{character_name}}}{{rollname=Ocultismo}}{{theroll=[[1d20+[[@{misticismototal}]]]]}}" class="skill-button">
|
||||
<span class="sup-treinada">Ocultismo</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -1427,7 +1473,7 @@
|
||||
<input name="attr_pilotagemtreino" type="text" spellcheck="false" maxlength="3" title="@{pilotagemtreino}" value="@{bonus_treino}*@{pilotagem_treinada}" disabled="true">
|
||||
<div class="signal">+</div>
|
||||
<input name="attr_pilotagemoutros" maxlength="3" type="text" spellcheck="false" title="@{pilotagemoutros}" value="0">
|
||||
|
||||
|
||||
<!-- Pontaria -->
|
||||
<div class="signal">
|
||||
<label class="fake-checkbox">
|
||||
@@ -1570,7 +1616,7 @@
|
||||
|
||||
|
||||
<div class="legenda-pericias">
|
||||
<i>+</i> Penalidade de Armadura
|
||||
<i>+</i> Penalidade de Armadura
|
||||
<i>*</i> Somente Treinada
|
||||
</div>
|
||||
|
||||
@@ -1616,13 +1662,17 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="container-money">
|
||||
<span>T$:</span>
|
||||
<input name="attr_ts" type="text" spellcheck="false" value="0">
|
||||
<span>TO:</span>
|
||||
<input name="attr_to" type="text" spellcheck="false" value="0">
|
||||
<span class="cargaspan">Carga:</span>
|
||||
<input class="cargainput" name="attr_carga" type="text" spellcheck="false" value="0" readonly="1">
|
||||
</div>
|
||||
<div class="container-money">
|
||||
<span>T$:</span>
|
||||
<input name="attr_ts" type="text" spellcheck="false" value="0">
|
||||
<span>P$:</span>
|
||||
<input name="attr_to" type="text" spellcheck="false" value="0">
|
||||
<span>K$:</span>
|
||||
<input name="attr_tk" type="text" spellcheck="false" value="0">
|
||||
</div>
|
||||
<div class="corner top-left"></div>
|
||||
<div class="corner top-right"></div>
|
||||
<div class="corner bottom-left"></div>
|
||||
@@ -1647,7 +1697,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Bonus de Treino -->
|
||||
<input type="hidden" name="attr_bonus_treino" value="0" readonly="1">
|
||||
@@ -1891,9 +1940,9 @@
|
||||
getAttrs([stat], function(v){
|
||||
let mod = calc_mod(v[stat] ||10);
|
||||
setAttrs({
|
||||
[`${stat}_mod`]: mod
|
||||
[`${stat}_mod`]: mod
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1910,9 +1959,9 @@
|
||||
bonusnivel = 2;
|
||||
}
|
||||
setAttrs({
|
||||
"bonus_treino": bonusnivel
|
||||
"bonus_treino": bonusnivel
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
//Penalidades de Armadura:
|
||||
@@ -1921,11 +1970,11 @@
|
||||
let penalidade1 = isNaN(v.armadurapenalidade1) ? 0 : v.armadurapenalidade1;
|
||||
let penalidade2 = isNaN(v.armadurapenalidade2) ? 0 : v.armadurapenalidade2;
|
||||
|
||||
let total = parseInt(penalidade1) + parseInt(penalidade2);
|
||||
let total = parseInt(penalidade1) + parseInt(penalidade2);
|
||||
setAttrs({
|
||||
"penalidades_armadura": total
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
//Calculando o dano de um acerto critico
|
||||
@@ -1936,7 +1985,7 @@
|
||||
"repeating_attacks_multiplicadorcriticoataque"
|
||||
], function(v) {
|
||||
let dano = '';
|
||||
|
||||
|
||||
if(typeof v.repeating_attacks_danoataque === 'string'){
|
||||
dano = v.repeating_attacks_danoataque;
|
||||
}else{
|
||||
@@ -1949,13 +1998,13 @@
|
||||
for(let i=0; i < multiplicador - 1; i++){
|
||||
resultado = resultado + " + " + dano;
|
||||
}
|
||||
|
||||
|
||||
setAttrs({
|
||||
"repeating_attacks_danocriticoataque": resultado
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//Importador:
|
||||
on("sheet:opened", function(e){
|
||||
setAttrs({
|
||||
@@ -1987,7 +2036,7 @@
|
||||
"created_by_linki": ""
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
//Repeating Sum [https://wiki.roll20.net/RepeatingSum]
|
||||
@@ -1998,9 +2047,9 @@
|
||||
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 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 cargalimit = 3 * parseInt(v.for);
|
||||
let cargamax = 10 * parseInt(v.for);
|
||||
|
||||
@@ -2027,7 +2076,7 @@
|
||||
|
||||
//Calculando carga e seus efeitos:
|
||||
on('sheet:opened change:repeating_equipment remove:repeating_equipment', function() {
|
||||
repeatingSumModified("carga","equipment",["equipquantity","equipweight"], " kg");
|
||||
repeatingSumModified("carga","equipment",["equipquantity","equipweight"], " kg");
|
||||
});
|
||||
|
||||
/* // Usar para adicionar uma arma ao criar a ficha
|
||||
@@ -2037,19 +2086,52 @@
|
||||
*/
|
||||
|
||||
|
||||
//Calculando Defesa Total:
|
||||
on("sheet:opened change:defesadestreza change:armaduradefesa1 change:armaduradefesa2 change:armaduradefesa3 change:des_mod", function(e){
|
||||
getAttrs(["defesadestreza", "armaduradefesa1", "armaduradefesa2", "armaduradefesa3", "des_mod"], function(v){
|
||||
|
||||
let total = 10;
|
||||
|
||||
console.error(v);
|
||||
|
||||
//Armadura
|
||||
if(!isNaN(v.armaduradefesa1)){
|
||||
total = total + parseInt(v.armaduradefesa1);
|
||||
}
|
||||
//Escudo
|
||||
if(!isNaN(v.armaduradefesa2)){
|
||||
total = total + parseInt(v.armaduradefesa2);
|
||||
}
|
||||
//Outros
|
||||
if(!isNaN(v.armaduradefesa3)){
|
||||
total = total + parseInt(v.armaduradefesa3);
|
||||
}
|
||||
//Mod de Destreza
|
||||
if(!isNaN(v.des_mod) && v.defesadestreza == '1'){
|
||||
total = total + parseInt(v.des_mod);
|
||||
}
|
||||
|
||||
console.error("total final", total);
|
||||
|
||||
setAttrs({
|
||||
"defesatotal": total
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
//Compatibilidade para o nome (FAZ O BOTÃO DE EDITAR A FICHA SUMIR)
|
||||
/*on("sheet:opened", function(e){
|
||||
getAttrs(["charname"], function(v){
|
||||
|
||||
|
||||
if(v.charname != '' || v.charname.length < 1){
|
||||
let newname = v.charname;
|
||||
let newname = v.charname;
|
||||
setAttrs({
|
||||
"character_name": newname
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
|
||||
['vida', 'mana'].forEach(max => {
|
||||
on(`change:${max}total change:${max}temp`, () => {
|
||||
getAttrs([`${max}total`, `${max}temp`], v => {
|
||||
@@ -2061,7 +2143,7 @@
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
Reference in New Issue
Block a user