"
- var msg="| ";
+ var msg_head=" |
"; // Coup déchirant
- if (d_vars.technique_m!=0) msg_adds+="| Technique martiale: "+d_vars.technique_result+" |
"; // Technique martiale
- if (d_vars.relances!=0) msg_adds+="| Relances: "+d_vars.relances+" |
"; // Technique martiale
- if (d_vars.encaissement!=0) msg_adds+="| Encaissement: "+d_vars.encaissement_result+" |
"; // Technique martiale
+ if (d_vars.coup_d!=0) msg_adds+="| Coup déchirant: "+d_vars.coup_d_results.join(" ")+" |
"; // Coup déchirant
+ if (d_vars.technique_m!=0) msg_adds+="| Technique martiale: "+d_vars.technique_result+" |
"; // Technique martiale
+ if (d_vars.relances!=0) msg_adds+="| Relances: "+d_vars.relances+" |
"; // Technique martiale
+ if (d_vars.encaissement!=0) msg_adds+="| Encaissement: "+d_vars.encaissement_result+" |
"; // Technique martiale
- if (dice_stats.is_crit==1) msg+="| L'action est une réussite critique |
";
+ if (dice_stats.is_crit==1) msg+="| L'action est une réussite critique |
";
if (dice_stats.is_hit==1){
if (d_vars.seuil!=0){
if (d_vars.action=="a"){
- msg+="| L'attaque parvient à toucher sa cible |
";
+ msg+="| L'attaque parvient à toucher sa cible |
";
} else if (d_vars.action=="d"||d_vars.action=="e"){
// Can't miss a block or a dodge, can be a shitty roll tho
} else {
- msg+="| L'action est un succes |
";
+ msg+="| L'action est un succes |
";
}
}
} else {
if (d_vars.action=="a"){
- msg+="| L'attaque ne touche pas sa cible |
";
+ msg+="| L'attaque ne touche pas sa cible |
";
} else if (d_vars.action=="d"||d_vars.action=="e"){
// Can't miss a block or a dodge
} else {
- msg+="| L'action est un echec |
";
+ msg+="| L'action est un echec |
";
}
}
msg+=msg_adds;
- sendChat(who,msg_head+msg+msg_foot+msg_relance);
+ sendChat(who,msg_head+msg+msg_foot+msg_relance+"");
//logit(msg_head+msg+msg_foot);
}
function add_thoose_dices(d_vars,results,name,m_esq,m_crit){
logit(results);
- var dices="| "+name;
+ var dices=" |
"+name;
var is_below=0,is_acrit=0;
var sum=0;
var t_hit=d_vars.seuil,t_crit=Math.max(7,d_vars.seuil); //The crit threshold can change if the hit threshold is higher
@@ -254,7 +254,7 @@ function add_thoose_dices(d_vars,results,name,m_esq,m_crit){
for (var i=0,len=results.length;i"; //Start greying everithing
+ dices+=""; //Start greying everything
is_below=1;
}
if (results[i]>t_hit && is_below==1){
@@ -262,7 +262,7 @@ function add_thoose_dices(d_vars,results,name,m_esq,m_crit){
is_below=2;
}
if (results[i]>t_crit&&is_acrit==0){
- dices+=""; //Start greening everithing
+ dices+=""; //Start greening everything
is_acrit=1;
}
// Only add to the sum if you pass the threshold
@@ -292,7 +292,7 @@ function add_thoose_dices(d_vars,results,name,m_esq,m_crit){
sum=Math.floor(((sum*m_esq+d_vars.on_hit_c+d_vars.attribute))*m_crit)+d_vars.nb_2add-d_vars.nb_2sub;
sum+=d_vars.defense_i_0+d_vars.exploiter_p_0+d_vars.charge+d_vars.technique_result+d_vars.encaissement_result;
- dices+="| Total: "+sum+" | | ";
+ dices+="
| Total: "+sum+" |
";
//logit(dices);
return dices;
diff --git a/feuille_sysd10.html b/feuille_sysd10.html
index 318a90c..222b23a 100644
--- a/feuille_sysd10.html
+++ b/feuille_sysd10.html
@@ -850,7 +850,7 @@
-
+
| {{name}} — {{roll_name}} |
| Test au d{{dice_name}} seuil {{threshold}} |
diff --git a/style.css b/style.css
index 42554c7..9e15424 100644
--- a/style.css
+++ b/style.css
@@ -27,7 +27,6 @@ input.sheet-secondary_skills_tab3:checked ~ div.sheet-secondary_skills_tab3
display:block;
}
-
input.sheet-tab{
-moz-appearance: none;
width:150px;
@@ -42,12 +41,10 @@ input.sheet-tab{
input.sheet-tab::before{
-moz-appearance: none;
content: attr(title);
-
border-radius:.5em;
border:2px solid black;
text-align: center;
display: inline-block;
-
background: black;
color:white;
width: 150px;
@@ -73,7 +70,6 @@ input.sheet-small_tab{
input.sheet-small_tab::before{
-moz-appearance: none;
content: attr(title);
-
border-radius:.5em;
text-align: center;
display: inline-block;
@@ -83,7 +79,6 @@ input.sheet-small_tab::before{
width: 120px;
height:20px;
font-size: 14px;
-
}
input.sheet-small_tab:checked::before{
-moz-appearance: none;
@@ -104,7 +99,6 @@ div.sheet-tab-content{
border-top-color: #000;
margin: 2px 0 0 0;
}
-
select.sheet-skill_select{
width:55px;
margin-bottom:-1px;
@@ -113,7 +107,6 @@ select.sheet-dice_select{
width:85px;
margin-bottom:-1px;
}
-
.sheet-trait{
width: 30px;
}
@@ -121,39 +114,50 @@ select.sheet-dice_select{
width: 50px;
}
-
.sheet-rolltemplate-d10skillcheck table {
border-radius: 6px;
width:100%;
- border: 2px solid #898989;
- background-color: #999999;
+ padding:0px;
+ margin:0px;
padding: 2px;
border: 1px solid;
background-color: #ffffff;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #000;
+ border-image-source: none;
}
+.sheet-rolltemplate-d10skillcheck .sheet-roll-title,
.sheet-rolltemplate-d10skillcheck th {
color: rgb(42, 42, 42);
+ padding:0px;
+ margin:0px;
padding-left: 5px;
font-size: 1.2em;
text-align: left;
font-family: "Times New Roman", Times, serif;
font-variant: small-caps;
text-transform: capitalize;
+ border-width: 0px;
}
.sheet-rolltemplate-d10skillcheck .sheet-roll-sucess ,
.sheet-rolltemplate-d10skillcheck .sheet-roll-fail {
+ padding:0px;
+ margin:0px;
+ border-width: 0px;
padding-left: 5px;
- margin-bottom: 5px;
}
.sheet-rolltemplate-d10skillcheck .sheet-roll-crit {
+ padding:0px;
+ margin:0px;
+ border-width: 0px;
padding-left: 5px;
- margin-bottom: 5px;
background-color:#b0d6ad;
}
.sheet-rolltemplate-d10skillcheck .sheet-roll-fumble {
padding-left: 5px;
- margin-bottom: 8px;
+ border-width: 0px;
background-color:#d6adad;
}
@@ -163,7 +167,10 @@ select.sheet-dice_select{
font-style: italic;
padding-left: 9px;
padding-top: 0px;
+ border-width: 0px;
margin-top: -10px;
+ padding:0px;
+ margin:0px;
}
.sheet-rolltemplate-d10skillcheck .sheet-inline,
@@ -179,13 +186,95 @@ select.sheet-dice_select{
color: #3FB315;
border: none;
}
-
.sheet-rolltemplate-d10skillcheck .sheet-inline.sheet-fullfail,
.sheet-rolltemplate-d10skillcheck .inlinerollresult.fullfail {
color: #B31515;
- border: none;
+ border: none;
}
.sheet-rolltemplate-d10skillcheck .inlinerollresult.importantroll {
color: #4A57ED;
- border: none;
+ border: none;
+}
+
+
+
+.sheet-rolltemplate-d10fight-blob{
+ border-radius: 6px;
+ border: 1px solid #898989;
+ z-index: 1;
+}
+.sheet-rolltemplate-d10fight table{
+ padding:0px;
+ margin:0px;
+ text-align: left;
+ width:100%;
+ border:none;
+ cellpadding:3px;
+ cellspacing:0px;
+}
+.sheet-rolltemplate-d10fight .sheet-sum{
+ padding:0px;
+ margin:0px;
+ border:none;
+ text-align: right;
+ padding-right:10px;
+}
+.sheet-rolltemplate-d10fight .sheet-sucess,
+.sheet-rolltemplate-d10fight .sheet-line{
+ padding:0px;
+ margin:0px;
+ padding-left: 3px;
+ border:none;
+}
+.sheet-rolltemplate-d10fight .sheet-critical{
+ padding:0px;
+ margin:0px;
+ border:none;
+ padding-left: 3px;
+ border-radius: 4px;
+ background-color:#b0d6ad;
+}
+.sheet-rolltemplate-d10fight .sheet-hit{
+ padding:0px;
+ margin:0px;
+ padding-left: 3px;
+ border-radius: 4px;
+ background-color:#b0d6ad;
+ border:none;
+}
+.sheet-rolltemplate-d10fight .sheet-miss{
+ padding:0px;
+ margin:0px;
+ padding-left: 3px;
+ border:none;
+ border-radius: 4px;
+ background-color:#d6adad;
+}
+.sheet-rolltemplate-d10fight .sheet-name{
+ padding:0px;
+ padding-left: 3px;
+ margin:0px;
+ border:none;
+ border-radius: 4px;
+ border-bottom-left-radius: 2px;
+ border-bottom-right-radius: 2px;
+ background-color: #999999;
+}
+.sheet-rolltemplate-d10fight .sheet-additional{
+ padding:0px;
+ margin:0px;
+ border:none;
+ padding-left:10px;
+}
+.sheet-rolltemplate-d10fight-grey{
+ color: #999999;
+}
+.sheet-rolltemplate-d10fight-green{
+ color: #009900;
+}
+.sheet-rolltemplate-d10fight a,
+.sheet-rolltemplate-d10fight a[href^="!"],
+.sheet-rolltemplate-d10fight a[href^="~"]{
+ text-align:right;
+ background-color: #999999; !important
}