uc896 fix commit history

This commit is contained in:
Cassie Levett
2019-12-16 16:17:21 -06:00
2 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
.sheet-container {
max-width:1100px;
min-width:1100px;
border-image-source: url(https://i.goopics.net/bv23p.png);
border-image-source: url(http://imgsrv.roll20.net/?src=raw.githubusercontent.com/Roll20/roll20-character-sheets/master/FACES%2520%28French%29/FACES_png.png);
border-image-slice: 45 55 50 55;
border-image-width: 2%;
border-image-outset: 10px 20px 10px 20px;
+11 -2
View File
@@ -18,7 +18,7 @@
<button type="roll" name="roll_minisheet" title="%{selected ou nom du personnage|minisheet}" value="/w @{character_name} &{template:minisheet} {{name=@{character_name}}} {{value1=@{hp}}} {{value1_max=@{hp|max}}} {{value2=@{nrj}}} {{value2_max=@{nrj|max}}} {{buttons_name=Attributs}} {{buttons=[Force](~force}) [Agilité](~agilite}) [Caractère](~caractere}) [Esprit](~esprit}) [Sens](~sens})}} {{buttons2_name=Talents}} {{buttons2=@{talent_buttons}}} {{buttons3_name=Mêlée}} {{buttons3=@{melee_buttons}}} {{buttons4_name=Distance}} {{buttons4=@{distance_buttons}}}" style="font-family: Pictos; font-size: 20px; float:right">N</button>
</div>
<div class="flex logo-flex">
<img alt="logo" src="https://i.goopics.net/XZ9pa.png">
<img alt="logo" src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/FACES%20(French)/Faces_logo.png">
</div>
<div class="flex info-flex">
<div class="grid grid-tab-inputs">
@@ -61,7 +61,7 @@
<span style="font-weight:bold; font-size: 25px; padding:5px">/</span>
<input type="number" name="attr_hp_max" title="@{hp|max}">
<span style="font-weight:bold; font-size: 20px; padding:5px">PV/2</span>
<input type="number" name="attr_wound" value="@{hp|max}/2" disabled="true">
<input type="number" name="attr_wound" value="0">
</div>
<!-- NRJ -->
<div class="flex pc-flex" style="margin-bottom:5px">
@@ -513,6 +513,15 @@ const setAttributes = (update, silent) => {
return newString
};
// === UPDATE WOUND
on("change:hp_max", function() {
getAttrs(["hp_max"], function(values) {
setAttrs({
wound: Math.floor(values.hp_max / 2)
});
});
});
// === REROLL TALENT ROW ID VALUE
on("change:repeating_talents", function() {
getSectionIDs("repeating_talents", function(idArray) {