Skip to content

Commit

Permalink
Merge pull request #13619 from Calmacil/master
Browse files Browse the repository at this point in the history
[Lames du Cardinal v2] Fixed bad values in swordbar and added version field for future updates
  • Loading branch information
NorWhal authored Dec 19, 2024
2 parents 0206bdc + a76752a commit 3b05ac0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
22 changes: 14 additions & 8 deletions Lames du Cardinal v2/lames_cardinal.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

<input name="attr_version" type="hidden" value="1.0"/>
<input name="attr_page" type="hidden" value="personnage"/>
<main>
<nav class="menu" id="menu">
Expand All @@ -20,49 +21,49 @@
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_1" type="hidden" value=""/>
<button name="act_health_1_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_1_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div><span>V</span>
</label>
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_2" type="hidden" value=""/>
<button name="act_health_2_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_2_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div>
</label>
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_3" type="hidden" value=""/>
<button name="act_health_3_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_3_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div>
</label>
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_4" type="hidden" value=""/>
<button name="act_health_4_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_4_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div>
</label>
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_5" type="hidden" value=""/>
<button name="act_health_5_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_5_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div>
</label>
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_6" type="hidden" value=""/>
<button name="act_health_6_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_6_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div>
</label>
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_7" type="hidden" value=""/>
<button name="act_health_7_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_7_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div>
</label>
<label class="healthboxwrapper">
<div class="nstate healthbox">
<input name="attr_health_8" type="hidden" value=""/>
<button name="act_health_8_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity">&#x27CB</span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity">&#x27CD</span>
<button name="act_health_8_cycle" type="action" value=""></button><span class="nstateopt health_ok"> </span><span class="nstateopt health_tenacity"></span><span class="nstateopt health_wound">X</span><span class="nstateopt health_longTenacity"></span>
</div><span>T</span>
</label>
</div>
Expand Down Expand Up @@ -721,5 +722,10 @@ <h4 class="blue">Relations<span>Niveau</span></h4>

setCursedArcana('arcane1')
setCursedArcana('arcane2')

// Here make the version magic
setAttrs({
'version': 1.0
})
})
</script>
4 changes: 2 additions & 2 deletions Lames du Cardinal v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lames-du-cardinal-2ed",
"verson": "0.1.0",
"version": "1.0.0",
"description": "Fiche pour la seconde édition du jeu les Lames du Cardinal.",
"scripts": {
"start": "npm-run-all --parallel compile:sass compile:pug",
Expand All @@ -9,7 +9,7 @@
},
"dependencies": {
"npm-run-all": "^4.1.5",
"pug": "^3.0.3",
"pug": "^3.0.2",
"pug-cli": "^1.0.0-alpha6",
"sass": "^1.75.0"
}
Expand Down
4 changes: 2 additions & 2 deletions Lames du Cardinal v2/src/components/nstatebox/nstatebox.pug
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ mixin healthBox(name, letter=none)
label.healthboxwrapper
+nstateBox(name).healthbox
+nstateOption(' ').health_ok
+nstateOption('&#x27CB').health_tenacity
+nstateOption('').health_tenacity
+nstateOption('X').health_wound
+nstateOption('&#x27CD').health_longTenacity
+nstateOption('').health_longTenacity
if letter != none
span!= letter
5 changes: 5 additions & 0 deletions Lames du Cardinal v2/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ on('sheet:opened', ev => {

setCursedArcana('arcane1')
setCursedArcana('arcane2')

// Here make the version magic
setAttrs({
'version': 1.0
})
})
1 change: 1 addition & 0 deletions Lames du Cardinal v2/src/lames_cardinal.pug
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include components/components

+hiddenInput('version', '1.0')
+hiddenInput('page', 'personnage')
main
nav#menu.menu
Expand Down

0 comments on commit 3b05ac0

Please sign in to comment.