Fixed the gen

At last
This commit is contained in:
Maximilien Rigaut 2020-01-24 00:34:32 +01:00
parent 9f298f8298
commit 2840646473
8 changed files with 3493 additions and 1168 deletions

File diff suppressed because it is too large Load Diff

604
helpers/base.py Normal file
View File

@ -0,0 +1,604 @@
head="""<head>
<link rel="stylesheet" type="text/css" href="style.css"/>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"/>
"""
script=""" <script type="text/worker">
// Perfection
on("change:skill_Perfection_activation change:general_skilllevel_Perfection", function() {
getAttrs(["skill_Perfection_activation", "general_skilllevel_Perfection"], function(values) {
setAttrs({"general_effective_Perfection":values.skill_Perfection_activation*values.general_skilllevel_Perfection});
});
});
// Fauchage
on("change:skill_Fauchage_activation change:general_skilllevel_Fauchage", function() {
getAttrs(["skill_Fauchage_activation", "general_skilllevel_Fauchage"], function(values) {
setAttrs({"general_effective_Fauchage":values.skill_Fauchage_activation*values.general_skilllevel_Fauchage});
});
});
// Coup_dechirant
on("change:skill_Coup_dechirant_activation change:general_skilllevel_Coup_dechirant", function() {
getAttrs(["skill_Coup_dechirant_activation", "general_skilllevel_Coup_dechirant"], function(values) {
setAttrs({"general_effective_Coup_dechirant":values.skill_Coup_dechirant_activation*values.general_skilllevel_Coup_dechirant});
});
});
// Exploiter_les_points_faibles
on("change:skill_Exploiter_les_points_faibles_activation change:general_skilllevel_Exploiter_les_points_faibles", function() {
getAttrs(["skill_Exploiter_les_points_faibles_activation", "general_skilllevel_Exploiter_les_points_faibles"], function(values) {
setAttrs({"general_effective_Exploiter_les_points_faibles":values.skill_Exploiter_les_points_faibles_activation*values.general_skilllevel_Exploiter_les_points_faibles});
});
});
// Technique_martiale
on("change:skill_Technique_martiale_activation change:general_skilllevel_Technique_martiale change:base-Agilite", function() {
getAttrs(["skill_Technique_martiale_activation", "general_skilllevel_Technique_martiale",'base-Agilite'], function(values) {
setAttrs({"general_effective_Technique_martiale":values.skill_Technique_martiale_activation*(Number(values.general_skilllevel_Technique_martiale)+Number(values['base-Agilite']))});
});
});
// Defense_impenetrable
on("change:skill_Defense_impenetrable_activation change:general_skilllevel_Defense_impenetrable", function() {
getAttrs(["skill_Defense_impenetrable_activation", "general_skilllevel_Defense_impenetrable"], function(values) {
setAttrs({"general_effective_Defense_impenetrable":values.skill_Defense_impenetrable_activation*values.general_skilllevel_Defense_impenetrable});
});
});
// Rempart_parfait
on("change:skill_Rempart_parfait_activation change:general_skilllevel_Rempart_parfait", function() {
getAttrs(["skill_Rempart_parfait_activation", "general_skilllevel_Rempart_parfait"], function(values) {
setAttrs({"general_effective_Rempart_parfait":values.skill_Rempart_parfait_activation*values.general_skilllevel_Rempart_parfait});
});
});
// Endurance_surnaturelle
on("change:skill_Endurance_surnaturelle_activation change:general_skilllevel_Endurance_surnaturelle", function() {
getAttrs(["skill_Endurance_surnaturelle_activation", "general_skilllevel_Endurance_surnaturelle"], function(values) {
setAttrs({"general_effective_Endurance_surnaturelle":values.skill_Endurance_surnaturelle_activation*values.general_skilllevel_Endurance_surnaturelle});
});
});
// Encaissement
on("change:skill_Encaissement_activation change:general_skilllevel_Encaissement", function() {
getAttrs(["skill_Encaissement_activation", "general_skilllevel_Encaissement"], function(values) {
setAttrs({"general_effective_Encaissement":values.skill_Encaissement_activation*values.general_skilllevel_Encaissement});
});
});
// Tir_precis
on("change:skill_Tir_precis_activation change:general_skilllevel_Tir_precis", function() {
getAttrs(["skill_Tir_precis_activation", "general_skilllevel_Tir_precis"], function(values) {
setAttrs({"general_effective_Tir_precis":values.skill_Tir_precis_activation*values.general_skilllevel_Tir_precis});
});
});
// Tir_implacable
on("change:skill_Tir_implacable_activation change:general_skilllevel_Tir_implacable", function() {
getAttrs(["skill_Tir_implacable_activation", "general_skilllevel_Tir_implacable"], function(values) {
setAttrs({"general_effective_Tir_implacable":values.skill_Tir_implacable_activation*values.general_skilllevel_Tir_implacable});
});
});
// Charge
on("change:skill_Charge_activation change:general_skilllevel_Charge", function() {
getAttrs(["skill_Charge_activation", "general_skilllevel_Charge"], function(values) {
setAttrs({"general_effective_Charge":values.skill_Charge_activation*values.general_skilllevel_Charge});
});
});
// Charge_indomptable
on("change:skill_Charge_indomptable_activation change:general_skilllevel_Charge_indomptable", function() {
getAttrs(["skill_Charge_indomptable_activation", "general_skilllevel_Charge_indomptable"], function(values) {
setAttrs({"general_effective_Charge_indomptable":values.skill_Charge_indomptable_activation*values.general_skilllevel_Charge_indomptable});
});
});
// weapon1
on("change:item_weapon1_activation change:general_item_weapon1", function() {
getAttrs(["item_weapon1_activation", "general_item_weapon1"], function(values) {
setAttrs({"general_effective_weapon1":values.item_weapon1_activation*values.general_item_weapon1});
});
});
// weapon2
on("change:item_weapon2_activation change:general_item_weapon2", function() {
getAttrs(["item_weapon2_activation", "general_item_weapon2"], function(values) {
setAttrs({"general_effective_weapon2":values.item_weapon2_activation*values.general_item_weapon2});
});
});
// weapon3
on("change:item_weapon3_activation change:general_item_weapon3", function() {
getAttrs(["item_weapon3_activation", "general_item_weapon3"], function(values) {
setAttrs({"general_effective_weapon3":values.item_weapon3_activation*values.general_item_weapon3});
});
});
// shield1
on("change:item_shield1_activation change:general_item_shield1", function() {
getAttrs(["item_shield1_activation", "general_item_shield1"], function(values) {
setAttrs({"general_effective_shield1":values.item_shield1_activation*values.general_item_shield1});
});
});
// shield2
on("change:item_shield2_activation change:general_item_shield2", function() {
getAttrs(["item_shield2_activation", "general_item_shield2"], function(values) {
setAttrs({"general_effective_shield2":values.item_shield2_activation*values.general_item_shield2});
});
});
// shield3
on("change:item_shield3_activation change:general_item_shield3", function() {
getAttrs(["item_shield3_activation", "general_item_shield3"], function(values) {
setAttrs({"general_effective_shield3":values.item_shield3_activation*values.general_item_shield3});
});
});
// Life_Points
on("change:base-Force change:base-Agilite change:base-Volonte change:general_skilllevel_Endurance_surnaturelle", function() {
getAttrs(["base-Force","base-Agilite","base-Volonte","general_skilllevel_Endurance_surnaturelle"], function(values) {
setAttrs({"Life_Points_max":Number(values['base-Force'])+Number(values['base-Volonte'])+Number(values['base-Agilite'])+Number(values.general_skilllevel_Endurance_surnaturelle)*2+10});
setAttrs({"Life_Points_maximum":Number(values['base-Force'])+Number(values['base-Volonte'])+Number(values['base-Agilite'])+Number(values.general_skilllevel_Endurance_surnaturelle)*2+10});
});
});
// Endurance_Points
on("change:base-Force change:base-Agilite change:general_skilllevel_Endurance_surnaturelle", function() {
getAttrs(["base-Force","base-Agilite","general_skilllevel_Endurance_surnaturelle"], function(values) {
setAttrs({"Endurance_Points_maximum":Number(values['base-Force'])*4});
setAttrs({"Endurance_Points_max":Number(values['base-Force'])*4});
});
});
// attr_Grievious_Wounds
on("change:Life_Points change:Life_Points_max change:Grievious_Wounds", function() {
getAttrs(["Life_Points", "Life_Points_maximum","Grievious_Wounds"], function(values) {
setAttrs({"Grievious_Wounds_effective":Math.min(Math.floor(Number(values.Life_Points_maximum)/4),Number(values.Grievious_Wounds)+Math.max(0,Math.floor(Number(values.Life_Points_maximum)/4-Number(values.Life_Points))))});
});
});
// undescored_name
on("change:character_name change:character_race", function() {
getAttrs(["character_name"], function(values) {
setAttrs({"undescored_name":values.character_name.replace(/ /g,"_").replace(/'/g,"/")});
});
});
// dice_with_tanscendance
on("change:tmpdice change:transcendence", function() {
getAttrs(["tmpdice","transcendence"], function(values) {
if(values.transcendence<3){
setAttrs({"dice":Math.floor(values.tmpdice/Math.pow(2,3-values.transcendence))});
} else if (values.transcendence>3) {
setAttrs({"dice":Math.floor(values.tmpdice/Math.pow(2,values.transcendence-3))});
}else {
setAttrs({"dice":values.tmpdice});
};
});
});
</script>
"""
header="""</head>
<div class="sheet-content">
<div class="sheet-center">
<input type="text" class="sheet-bigname" name="attr_character_name" placeholder="Nom"/>
<span style="color:#ffffff;" name="attr_undescored_name" /><span/><br/>
<input type="text" class="sheet-mediumname" name="attr_character_race" placeholder="Race"/>
</div>
<br/>
<div class="sheet-2colrow">
<div class='sheet-col'>
<h3 class="sheet-center">Ressources</h3>
<table class="sheet-center sheet-black">
<tr>
<td><h4>Points de Vie</h4></td>
<td><input type="number" class="sheet-trait" name="attr_Life_Points" value="0"/></td>
<td><input class="sheet-trait" disabled="true" name="attr_mirror_Life_Points" value="@{Life_Points_maximum}"/></td>
</tr>
<tr>
<td><h4>Points de Fatigue</h4></td>
<td><input type="number" class="sheet-trait" name="attr_Endurance_Points" value="0"/></td>
<td><input class="sheet-trait" disabled="true" name="attr_mirror_Endurance_Points" value="@{Endurance_Points_maximum}"/></td>
</tr>
<tr>
<td><h4>Dégats aggravés</h4></td>
<td><input class="sheet-trait" type="number" name="attr_Grievious_Wounds" title="Dégats aggravés supplémentaires" value="0"/></td>
<td><input class="sheet-trait" disabled="true" name="attr_Grievious_Wounds_current" title="Dégats aggravés actuels" value="@{Grievious_Wounds_effective}"/></td>
<td><input class="sheet-trait" disabled="true" name="attr_Grievious_Wounds_max" title="Dégats aggravés maximum" value="floor(@{Life_Points_maximum}/4)"/></td>
</tr>
</table>
</div>
<div class="sheet-col">
<table class="sheet-center sheet-black">
<tr>
<td><h3 class="sheet-center">Points de compétence :</h3></td>
<br/>
</tr>
<tr>
<td><input type="number" class="sheet-trait" name="attr_Character_points_spent" value="0"/> Utilisés</td>
<td rowspan="2">
<select class="sheet-dice_select sheet-dice" name="attr_tmpdice">
<option value="2">d2</option>
<option value="4">d4</option>
<option value="6">d6</option>
<option value="8">d8</option>
<option value="10" selected>d10</option>
<option value="12">d12</option>
<option value="20">d20</option>
<option value="30">d30</option>
<option value="100">d100</option>
<option value="1000">d1000</option>
<option value="10000">d10000</option>
</select>
</td>
</tr>
<tr>
<td><input type="number" class="sheet-trait" name="attr_Character_points_unspent" value="0"/> Restants</td>
</tr>
</table>
</div>
</div>
<div class='sheet-2colrow'>
<div class='sheet-col'>
<h3 class="sheet-center">Caractéristiques</h3>
<table class="">
<tr>
<th>Carac</th>
<th>Valeur</th>
<th>Bonus</th>
<th colspan="2">Lancer</th>
</tr>
<tr>
<td>Force</td>
<td><input type="number" class="sheet-trait" name="attr_base-Force" title="Force de base" value="0" min="0" max="10" /></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Force" title="Modificateur" value="0" /></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Force}} {{dice_name=@{dice}}} {{result=[[(@{base-Force}+@{exal-Force})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Force}+@{exal-Force})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Force brute}} {{dice_name=@{dice}}} {{result=[[(@{base-Force}+@{exal-Force})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Force}+@{exal-Force})]]}}">Brut</button></td>
</tr>
<tr>
<td>Agilité</td>
<td><input type="number" class="sheet-trait" name="attr_base-Agilite" title="Agilité de base" value="0" min="0" max="10"/></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Agilite" title="Modificateur" value="0"/></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Agilité}} {{dice_name=@{dice}}} {{result=[[(@{base-Agilite}+@{exal-Agilite})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Agilite}+@{exal-Agilite})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Agilité}} {{dice_name=@{dice}}} {{result=[[(@{base-Agilite}+@{exal-Agilite})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Agilite}+@{exal-Agilite})]]}}">Brut</button></td>
</tr><tr>
<td>Perception</td>
<td><input type="number" class="sheet-trait" name="attr_base-Perception" title="Perception de base" value="0" min="0" max="10"/></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Perception" title="Modificateur" value="0"/></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Perception}} {{dice_name=@{dice}}} {{result=[[(@{base-Perception}+@{exal-Perception})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Perception}+@{exal-Perception})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Perception}} {{dice_name=@{dice}}} {{result=[[(@{base-Perception}+@{exal-Perception})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Perception}+@{exal-Perception})]]}}">Brut</button></td>
</tr><tr>
<td>Charisme</td>
<td><input type="number" class="sheet-trait" name="attr_base-Charisme" title="Charisme de base" value="0" min="0" max="10"/></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Charisme" title="Modificateur" value="0"/></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Charisme}} {{dice_name=@{dice}}} {{result=[[(@{base-Charisme}+@{exal-Charisme})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Charisme}+@{exal-Charisme})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Charisme}} {{dice_name=@{dice}}} {{result=[[(@{base-Charisme}+@{exal-Charisme})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Charisme}+@{exal-Charisme})]]}}">Brut</button></td>
</tr>
</table>
</div>
<div class='sheet-col'>
<h3 class="sheet-center">&nbsp;</h3>
<table class="">
<tr>
<th>Carac</th>
<th>Valeur</th>
<th>Bonus</th>
<th colspan="2">Lancer</th>
</tr>
<tr>
<td>Intelligence</td>
<td><input type="number" class="sheet-trait" name="attr_base-Intelligence" title="Intelligence de base" value="0" min="0" max="10" /></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Intelligence" title="Modificateur" value="0" /></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Intelligence}} {{dice_name=@{dice}}} {{result=[[(@{base-Intelligence}+@{exal-Intelligence})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Intelligence}+@{exal-Intelligence})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Intelligence brute}} {{dice_name=@{dice}}} {{result=[[(@{base-Intelligence}+@{exal-Intelligence})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Intelligence}+@{exal-Intelligence})]]}}">Brut</button></td>
</tr>
<tr>
<td>Volonté</td>
<td><input type="number" class="sheet-trait" name="attr_base-Volonte" title="Volonté de base" value="0" min="0" max="10"/></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Volonte" title="Modificateur" value="0"/></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Volonté}} {{dice_name=@{dice}}} {{result=[[(@{base-Volonte}+@{exal-Volonte})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Volonte}+@{exal-Volonte})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Volonté}} {{dice_name=@{dice}}} {{result=[[(@{base-Volonte}+@{exal-Volonte})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Volonte}+@{exal-Volonte})]]}}">Brut</button></td>
</tr><tr>
<td>Psyché</td>
<td><input type="number" class="sheet-trait" name="attr_base-Psyche" title="Psyché de base" value="0" min="0" max="10"/></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Psyche" title="Modificateur" value="0"/></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Psyché}} {{dice_name=@{dice}}} {{result=[[(@{base-Psyche}+@{exal-Psyche})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Psyche}+@{exal-Psyche})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Psyché}} {{dice_name=@{dice}}} {{result=[[(@{base-Psyche}+@{exal-Psyche})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Psyche}+@{exal-Psyche})]]}}">Brut</button></td>
</tr><tr>
<td>Chance</td>
<td><input type="number" class="sheet-trait" name="attr_base-Chance" title="Chance de base" value="0" min="0" max="10"/></td>
<td><input type="number" class="sheet-trait" name="attr_exal-Chance" title="Modificateur" value="0"/></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Chance}} {{dice_name=@{dice}}} {{result=[[(@{base-Chance}+@{exal-Chance})*2-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Chance}+@{exal-Chance})*2]]}}"></button></td>
<td><button type='roll' class="sheet-trait_roll" value="&{template:d10skillcheck}{{name=@{character_name}}} {{roll_name=Chance}} {{dice_name=@{dice}}} {{result=[[(@{base-Chance}+@{exal-Chance})-d@{dice}cs1cf@{dice}]]}} {{threshold=[[(@{base-Chance}+@{exal-Chance})]]}}">Brut</button></td>
</tr>
</table>
</div>
</div>
<br/>
"""
footer="""
</div>
<rolltemplate class="sheet-rolltemplate-d10skillcheck">
<table class="">
<tr><th class="roll-title">{{name}} &mdash; {{roll_name}}</th></tr>
<tr><td class="roll-attr"> Test au d{{dice_name}} seuil {{threshold}} </td></tr>
<tr>
{{#rollWasCrit() result}}
<td class="roll-crit">Critique ! {{result}}<span class="inline fullcrit">x2</span> degrés de réussite</td>
{{/rollWasCrit() result}}
{{#^rollWasCrit() result}}
{{#rollWasFumble() result}}
{{#rollGreater() result 1}}
<td class="roll-fumble">Échec critique ! {{result}}<span class="inline fullfail">/2</span> degrés de réussite</td>
{{/rollGreater() result 1}}
{{#rollBetween() result 0 1}}
<td class="roll-fumble">Échec critique ! {{result}}<span class="inline fullfail">/2</span> degré de réussite</td>
{{/rollBetween() result 0 1}}
{{#rollLess() result 0}}
<td class="roll-fumble">Échec critique ! {{result}}<span class="inline fullfail">x2</span> degrés d'échec</td>
{{/rollLess() result 0}}
{{/rollWasFumble() result}}
{{#^rollWasFumble() result}}
{{#rollGreater() result 1}}
<td class="roll-sucess">{{result}} degrés de réussite</td>
{{/rollGreater() result 1}}
{{#rollBetween() result 0 1}}
<td class="roll-sucess">{{result}} degré de réussite</td>
{{/rollBetween() result 0 1}}
{{#rollLess() result 0}}
<td class="roll-fail">{{result}} degrés d'échec</td>
{{/rollLess() result 0}}
{{/^rollWasFumble() result}}
{{/^rollWasCrit() result}}
</tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-d10init">
<table class="">
<tr><th class="roll-title">{{name}} &mdash; {{roll_name}}</th></tr>
<tr><td class="roll-sucess"> 1d10+{{value}} = {{result}}
{{#rollWasCrit() result}}
<span class="inline fullcrit">+{{base}}</span>
{{/rollWasCrit() result}}
{{#rollWasFumble() result}}
{{result}}<span class="inline fullfail">-{{base}}</span>
{{/rollWasFumble() result}}
</td></tr>
</table>
</rolltemplate>
"""
css_footer="""input.sheet-tab{
-moz-appearance: none;
width:150px;
height: 20px;
top: 5px;
left: 6px;
margin: 5px;
cursor: pointer;
z-index: 1;
content: attr(title);
}
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;
height: 20px;
font-size: 18px;
}
input.sheet-tab:checked::before{
-moz-appearance: none;
background:#CCCCCC;
color:black;
border-radius:.5em;
border:2px solid black;
}
input.sheet-small_tab{
-moz-appearance: none;
width:120px;
height: 20px;
cursor: pointer;
z-index: 1;
margin:5px;
}
input.sheet-small_tab::before{
-moz-appearance: none;
content: attr(title);
border-radius:.5em;
text-align: center;
display: inline-block;
color:white;
background:black;
border:2px solid black;
width: 120px;
height:20px;
font-size: 14px;
}
input.sheet-small_tab:checked::before{
-moz-appearance: none;
border:2px solid black;
background:#CCCCCC;
color:black;
border-radius:.5em;
}
input.sheet-skill_name{
-moz-appearance: none;
width:400px;
}
input.sheet-skill_hidden{
visibility: hidden;
}
div.sheet-tab-content{
border-top-color: #000;
margin: 2px 0 0 0;
}
select.sheet-skill_select{
width:55px;
margin-bottom:-1px;
}
select.sheet-dice_select{
width:85px;
margin-bottom:-1px;
}
.sheet-trait{
width: 30px;
}
.sheet-numberbox {
width: 50px;
}
.sheet-rolltemplate-d10init table,
.sheet-rolltemplate-d10skillcheck table {
border-radius: 6px;
width:100%;
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-d10init .sheet-roll-title,
.sheet-rolltemplate-d10init th,
.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-d10init .sheet-roll-attr,
.sheet-rolltemplate-d10skillcheck .sheet-roll-attr{
color: #555555;
font-size: 1em;
font-style: italic;
padding:0px;
margin:0px;
padding-left: 9px;
border-width: 0px;
margin-top: -10px;
}
.sheet-rolltemplate-d10init .sheet-roll-sucess,
.sheet-rolltemplate-d10skillcheck .sheet-roll-sucess ,
.sheet-rolltemplate-d10skillcheck .sheet-roll-fail {
padding:0px;
margin:0px;
border-width: 0px;
padding-left: 5px;
}
.sheet-rolltemplate-d10skillcheck .sheet-roll-crit {
padding:0px;
margin:0px;
border-width: 0px;
padding-left: 5px;
background-color:#b0d6ad;
}
.sheet-rolltemplate-d10skillcheck .sheet-roll-fumble {
padding-left: 5px;
border-width: 0px;
background-color:#d6adad;
}
.sheet-rolltemplate-d10init .sheet-inline,
.sheet-rolltemplate-d10init .inlinerollresult,
.sheet-rolltemplate-d10skillcheck .sheet-inline,
.sheet-rolltemplate-d10skillcheck .inlinerollresult {
background-color: transparent;
border: none;
font-weight: bold;
padding:0px;
font-family: "Times New Roman", Times, serif;
}
.sheet-rolltemplate-d10skillcheck .sheet-inline.sheet-fullcrit,
.sheet-rolltemplate-d10skillcheck .inlinerollresult.fullcrit {
color: #3FB315;
border: none;
}
.sheet-rolltemplate-d10skillcheck .sheet-inline.sheet-fullfail,
.sheet-rolltemplate-d10skillcheck .inlinerollresult.fullfail {
color: #B31515;
border: none;
}
.sheet-rolltemplate-d10skillcheck .inlinerollresult.importantroll {
color: #4A57ED;
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
}
"""

View File

@ -1,126 +1,125 @@
@ Physique
+ Compétences de combat
- : Armes à feu
- : Armes d'assaut
- : Armes de poing
+ Combat
- Armes à feu
- &#8677; Armes d'assaut
- &#8677; Armes de poing
- Armes Lourdes
- : Projectiles autopropulsés
- : Armement laser
- &#8677; Projectiles autopropulsés
- &#8677; Armement laser
- Artillerie
: Guidage de missiles
: Systemes de défences
: Balistique superlative
&#8677; Guidage de missiles
&#8677; Systemes de défences
&#8677; Balistique superlative
- Combat à Mains Nues
: Neo Kwon Do
: Zero-G
&#8677; Neo Kwon Do
&#8677; Zero-G
- Combat Armé
: Armes Contandantes
: Armes Tranchantes
&#8677; Armes Contandantes
&#8677; Armes Tranchantes
- Maniement des Explosifs
+ Compétences physiques
+ Physiques
- Athlétisme
- : Aerien
- : Terrestre
- : Maritime
- : Zero G
- &#8677; Aerien
- &#8677; Terrestre
- &#8677; Maritime
- &#8677; Zero G
- Survie
- : Environnement Sauvage
- : Environnement Urbain
- : Environnement Spacial
- &#8677; Environnement Sauvage
- &#8677; Environnement Urbain
- &#8677; Environnement Spacial
+ Utilisation d’implants
+ Implants
- Utilisation de Cyberware
- : Utilisation de Neuro Accelerateurs
- : Utilisation d'Interfaces de tir
- : Overdrive Physique
- &#8677; Utilisation de Neuro Accelerateurs
- &#8677; Utilisation d'Interfaces de tir
- &#8677; Overdrive Physique
+ Compétences de Pilotage
+ Pilotage
- Pilotage athmosphérique
- : Pilotage de Chasseurs
- : Pilotage de Navettes
- &#8677; Pilotage de Chasseurs
- &#8677; Pilotage de Navettes
- Vehicules Terestres
- : Vehicules Legers
- : Vehicules Lourds
- : Véhicules de Course
- &#8677; Vehicules Legers
- &#8677; Vehicules Lourds
- &#8677; Véhicules de Course
- Vaisseaux Spatiaux
- : Batiments légers
- : Batiments lourds
- : Batiments super lourds
- &#8677; Batiments légers
- &#8677; Batiments lourds
- &#8677; Batiments super lourds
@ Intelectuelles
+ Compétences Techniques
+ Techniques
- Biotech
- : Chirurgie d’implants
- &#8677; Chirurgie d’implants
- Electronique
- : Interconnection des systèmes
- : Verrous magnétiques
- &#8677; Interconnection des systèmes
- &#8677; Verrous magnétiques
- Informatique
- : Hardware
- : Software
- : Systèmes embarqués
- Mecanique
- : Réacteurs à Fusion
- : Réacteurs à Fission
- : Compensateurs d'Inertie
- : Technologie Lightfold
- : Systèmes de Survie
- : Systemes de Propultion
- &#8677; Hardware
- &#8677; Software
- &#8677; Systèmes embarqués
- Mécanique
- &#8677; Réacteurs à Fusion
- &#8677; Réacteurs à Fission
- &#8677; Compensateurs d'Inertie
- &#8677; Technologie Lightfold
- &#8677; Systèmes de Survie
- &#8677; Systemes de Propultion
- Prospection stellaire
- : Corps stellaires
- : Excavation planetaire
- &#8677; Corps stellaires
- &#8677; Excavation planetaire
+ Connaissances
- Bioware
- : Implants Céphaliens
- : Implants Corporels
- &#8677; Implants Céphaliens
- &#8677; Implants Corporels
- Médecine
- : Soins Intensifs
- : Cybernetisation
- &#8677; Soins Intensifs
- &#8677; Cybernetisation
- Sciences
- : Astromathématiques
- : Biologie
- : Xenobiologie
- : Mathématiques
- : Physique/Chimie
- : Lightfold
- : Sociologie
- &#8677; Astromathématiques
- &#8677; Biologie
- &#8677; Xenobiologie
- &#8677; Mathématiques
- &#8677; Physique/Chimie
- &#8677; Lightfold
- &#8677; Sociologie
+ Culture Générale
- Instruction Civique
- : Administratif/Politique/Droit
- : Finances
- : Psychologie
- &#8677; Administratif/Politique/Droit
- &#8677; Finances
- &#8677; Psychologie
- Théorie Militaire
- : Tactique
- : Stratégie
- &#8677; Tactique
- &#8677; Stratégie
@ Social
+ Compétences Sociales
+ Sociales
- Etiquette
- : Alpha Centauri
- : Eridani
- : Banard
- : Tau
- : Sirius
- : C.I.C.
- : Sol
- : Pègre
- &#8677; Alpha Centauri
- &#8677; Eridani
- &#8677; Banard
- &#8677; Tau
- &#8677; Sirius
- &#8677; C.I.C.
- &#8677; Sol
- &#8677; Pègre
- Interrogation
- : Intimidation
- &#8677; Intimidation
- Commandement
- Négociation
- Baratin
+ Competences Clandestines
+ Clandestines
- Discretion
- Crochetage
- Informations
- Larcin
- Marchés noirs
- : Acquisition d’Objets
- : Acquisition d’Informations
- &#8677; Acquisition d’Objets
- &#8677; Acquisition d’Informations
+ Contacts et Réputations
+ Contacts
. Contacts

File diff suppressed because it is too large Load Diff

View File

@ -2,20 +2,276 @@ div.sheet-tab-content { display: none; }
input.sheet-tab1:checked ~ div.sheet-tab1,
input.sheet-tab2:checked ~ div.sheet-tab2,
input.sheet-tab3:checked ~ div.sheet-tab3
{display: block;}
input.sheet-physique1:checked ~ div.sheet-physique1,
input.sheet-physique2:checked ~ div.sheet-physique2,
input.sheet-physique3:checked ~ div.sheet-physique3,
input.sheet-physique4:checked ~ div.sheet-physique4
{display: block;}
input.sheet-intelectuelles1:checked ~ div.sheet-intelectuelles1,
input.sheet-intelectuelles2:checked ~ div.sheet-intelectuelles2,
input.sheet-intelectuelles3:checked ~ div.sheet-intelectuelles3
{display: block;}
input.sheet-social1:checked ~ div.sheet-social1,
input.sheet-social2:checked ~ div.sheet-social2,
input.sheet-social3:checked ~ div.sheet-social3
{display: block;}
{
display: block;
}
input.sheet-secondary_physique_tab1:checked ~ div.sheet-secondary_physique_tab1,
input.sheet-secondary_physique_tab2:checked ~ div.sheet-secondary_physique_tab2,
input.sheet-secondary_physique_tab3:checked ~ div.sheet-secondary_physique_tab3,
input.sheet-secondary_physique_tab4:checked ~ div.sheet-secondary_physique_tab4
{
display: block;
}
input.sheet-secondary_intelectuelles_tab1:checked ~ div.sheet-secondary_intelectuelles_tab1,
input.sheet-secondary_intelectuelles_tab2:checked ~ div.sheet-secondary_intelectuelles_tab2,
input.sheet-secondary_intelectuelles_tab3:checked ~ div.sheet-secondary_intelectuelles_tab3
{
display: block;
}
input.sheet-secondary_social_tab1:checked ~ div.sheet-secondary_social_tab1,
input.sheet-secondary_social_tab2:checked ~ div.sheet-secondary_social_tab2,
input.sheet-secondary_social_tab3:checked ~ div.sheet-secondary_social_tab3
{
display: block;
}input.sheet-tab{
-moz-appearance: none;
width:150px;
height: 20px;
top: 5px;
left: 6px;
margin: 5px;
cursor: pointer;
z-index: 1;
content: attr(title);
}
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;
height: 20px;
font-size: 18px;
}
input.sheet-tab:checked::before{
-moz-appearance: none;
background:#CCCCCC;
color:black;
border-radius:.5em;
border:2px solid black;
}
input.sheet-small_tab{
-moz-appearance: none;
width:120px;
height: 20px;
cursor: pointer;
z-index: 1;
margin:5px;
}
input.sheet-small_tab::before{
-moz-appearance: none;
content: attr(title);
border-radius:.5em;
text-align: center;
display: inline-block;
color:white;
background:black;
border:2px solid black;
width: 120px;
height:20px;
font-size: 14px;
}
input.sheet-small_tab:checked::before{
-moz-appearance: none;
border:2px solid black;
background:#CCCCCC;
color:black;
border-radius:.5em;
}
input.sheet-skill_name{
-moz-appearance: none;
width:400px;
}
input.sheet-skill_hidden{
visibility: hidden;
}
div.sheet-tab-content{
border-top-color: #000;
margin: 2px 0 0 0;
}
select.sheet-skill_select{
width:55px;
margin-bottom:-1px;
}
select.sheet-dice_select{
width:85px;
margin-bottom:-1px;
}
.sheet-trait{
width: 30px;
}
.sheet-numberbox {
width: 50px;
}
.sheet-rolltemplate-d10init table,
.sheet-rolltemplate-d10skillcheck table {
border-radius: 6px;
width:100%;
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-d10init .sheet-roll-title,
.sheet-rolltemplate-d10init th,
.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-d10init .sheet-roll-attr,
.sheet-rolltemplate-d10skillcheck .sheet-roll-attr{
color: #555555;
font-size: 1em;
font-style: italic;
padding:0px;
margin:0px;
padding-left: 9px;
border-width: 0px;
margin-top: -10px;
}
.sheet-rolltemplate-d10init .sheet-roll-sucess,
.sheet-rolltemplate-d10skillcheck .sheet-roll-sucess ,
.sheet-rolltemplate-d10skillcheck .sheet-roll-fail {
padding:0px;
margin:0px;
border-width: 0px;
padding-left: 5px;
}
.sheet-rolltemplate-d10skillcheck .sheet-roll-crit {
padding:0px;
margin:0px;
border-width: 0px;
padding-left: 5px;
background-color:#b0d6ad;
}
.sheet-rolltemplate-d10skillcheck .sheet-roll-fumble {
padding-left: 5px;
border-width: 0px;
background-color:#d6adad;
}
.sheet-rolltemplate-d10init .sheet-inline,
.sheet-rolltemplate-d10init .inlinerollresult,
.sheet-rolltemplate-d10skillcheck .sheet-inline,
.sheet-rolltemplate-d10skillcheck .inlinerollresult {
background-color: transparent;
border: none;
font-weight: bold;
padding:0px;
font-family: "Times New Roman", Times, serif;
}
.sheet-rolltemplate-d10skillcheck .sheet-inline.sheet-fullcrit,
.sheet-rolltemplate-d10skillcheck .inlinerollresult.fullcrit {
color: #3FB315;
border: none;
}
.sheet-rolltemplate-d10skillcheck .sheet-inline.sheet-fullfail,
.sheet-rolltemplate-d10skillcheck .inlinerollresult.fullfail {
color: #B31515;
border: none;
}
.sheet-rolltemplate-d10skillcheck .inlinerollresult.importantroll {
color: #4A57ED;
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
}

View File

@ -4,11 +4,13 @@
# content skills sections and others from a file, on the long run, it should be able to content the whole sheet
import argparse, sys, os
from unidecode import unidecode
import string
# from unidecode import unidecode
# import unicode
def remove_non_ascii(text):
return unidecode(text)
return "".join([c for c in text if c in string.ascii_letters]).strip(" ")
# return unidecode(text)
class Node(object):
"""Generic Node."""
@ -59,14 +61,13 @@ class Root(Node):
for child in self.children:
ret+="\ninput.sheet-tab{node.number}:checked ~ div.sheet-tab{node.number},".format(node=child)
ret=ret[:-1]
ret+="\n{display: block;}\n"
ret+="\n{\n display: block;\n}"
for child in self.children:
ret+=child.css()
return ret
class Tab(Node):
"""Tab node, contains"""
def __init__(self, name,nb):
super(Tab, self).__init__(name,nb)
@ -74,29 +75,30 @@ class Tab(Node):
return '<input type="radio" name="attr_tab" class="sheet-tab sheet-tab{self.number}" value="{self.number}" title="{self.name}" {self.checked}/><span></span>\n'.format(self=self)
def content(self):
ret='<div class="sheet-tab-content sheet-tab{self.number}">\n <div class="sheet-col">\n'.format(self=self) # And add all content
ret='<!-- {self.pname} -->\n<div class="sheet-tab-content sheet-tab{self.number}">\n'.format(self=self) # And add all content
for child in self.children:
ret+=child.header()
ret+=" </div>\n"
for child in self.children:
ret+=child.content()
return ret
def css(self):
ret=" "
for child in self.children:
ret+="\ninput.sheet-{node.pname}{child.number}:checked ~ div.sheet-{node.pname}{child.number},".format(child=child,node=self)
ret+="\ninput.sheet-secondary_{node.pname}_tab{child.number}:checked ~ div.sheet-secondary_{node.pname}_tab{child.number},".format(child=child,node=self)
ret=ret[:-1]
ret+="\n{display: block;}\n"
ret+="\n{\n display: block;\n}"
return ret
class SubTab(Node):
def __init__(self,name,nb):
super(SubTab,self).__init__(name,nb)
def header(self):
return """ <input type="radio" name="secondary_tab_{self.parent.pname}" class="small_tab secondary_tab_{self.parent.pname}{self.number}" {self.checked} value="{self.number}" title="{self.name}" />\n""".format(self=self)
return """ <input type="radio" name="secondary_{self.parent.pname}_tab" class="small_tab secondary_{self.parent.pname}_tab{self.number}" value="{self.number}" {self.checked}title="{self.name}" />\n""".format(self=self)
def content(self):
ret= ' <div class="sheet-tab-content sheet-secondary_tab_{self.parent.pname}{self.number}">\n'.format(self=self)
ret= ' <div class="sheet-tab-content sheet-secondary_{self.parent.pname}_tab{self.number}">\n'.format(self=self)
ret+=" <!-- {self.name} -->\n <h3>{self.name}</h3>\n".format(self=self)
for child in self.children:
ret+=child.content()
@ -130,28 +132,35 @@ class Skill(Node):
<br/>\n""".format(self=self)
return ret
#
# <!--INTELECTUELLES -->
# <h3>Compétences Intellectuelles</h3>
# <fieldset class="repeating_intelect-skills">
# <input class="sheet-skill_name" type="text" name="attr_intelect_skillname" />
# <input type="number" name="attr_intelect_skillcost" title="Coût de la compétence" />
# <input type="number" min="-10" max="10" name="attr_intelect_skilllevel" title="Niveau dans la compétence" />
# <select class="sheet-skill_select" name="attr_intelect_attribute_select">
# <option value="@{{base-Force}} + @{{exal-Force}}">For</option>
# <option value="@{{base-Agilite}} + @{{exal-Agilite}}">Agi</option>
# <option value="@{{base-Perception}} + @{{exal-Perception}}">Per</option>
# <option value="@{{base-Charisme}} + @{{exal-Charisme}}">Cha</option>
# <option value="@{{base-Intelligence}} + @{{exal-Intelligence}}">Int</option>
# <option value="@{{base-Perception}} + @{{exal-Perception}}">Per</option>
# <option value="@{{base-Volonte}} + @{{exal-Volonte}}">Vol</option>
# <option value="@{{base-Psyche}} + @{{exal-Psyche}}">Psy</option>
# <option value="@{{base-Chance}} + @{{exal-Chance}}">Chn</option>
# </select>
# <button type='roll' class="sheet-skillbutton" value="&{template:d10skillcheck}{{name=@{{character_name}}}} {{roll_name=@{{intelect_skillname}}}} {{dice_name=@{{dice}}}} {{result=[[@{{intelect_skilllevel}}+(@{{intelect_attribute_select}})-d@{{dice}}cs1cf@{{dice}}]]}} {{threshold=[[@{{intelect_skilllevel}}+(@{{intelect_attribute_select}})]]}}"></button>
# </fieldset>
# </div>
class Repeating(Node):
"""Repeating section"""
def __init__(self, name,nb):
super(Repeating, self).__init__(name,nb)
def content(self):
ret=""" <!-- {node.pname} -->
<fieldset class="repeating_{node.pname}-skills">
<input class="sheet-skill_name" type="text" name="attr_{node.pname}_skillname" />
<input type="number" name="attr_{node.pname}_skillcost" title="Coût de la compétence" />
<input type="number" min="-10" max="10" name="attr_{node.pname}_skilllevel" title="Niveau dans la compétence" />
<select class="sheet-skill_select" name="attr_{node.pname}_attribute_select">
<option value="@{{base-Force}} + @{{exal-Force}}">For</option>
<option value="@{{base-Agilite}} + @{{exal-Agilite}}">Agi</option>
<option value="@{{base-Perception}} + @{{exal-Perception}}">Per</option>
<option value="@{{base-Charisme}} + @{{exal-Charisme}}">Cha</option>
<option value="@{{base-Intelligence}} + @{{exal-Intelligence}}">Int</option>
<option value="@{{base-Perception}} + @{{exal-Perception}}">Per</option>
<option value="@{{base-Volonte}} + @{{exal-Volonte}}">Vol</option>
<option value="@{{base-Psyche}} + @{{exal-Psyche}}">Psy</option>
<option value="@{{base-Chance}} + @{{exal-Chance}}">Chn</option>
</select>
<button type='roll' class="sheet-skillbutton" value="&{{template:d10skillcheck}}{{{{name=@{{{{character_name}}}}}}}}\
{{{{roll_name=@{{{{{node.pname}_skillname}}}}}}}} {{{{dice_name=@{{dice}}}}}}}} {{{{result=[[@{{{{{node.pname}_skilllevel}}}}\
+(@{{{{{node.pname}_attribute_select}}}})-d@{{{{dice}}}}cs1cf@{{{{dice}}}}]]}}}} {{{{threshold=[[@{{{{{node.pname}_skilllevel}}}}+(@{{{{{node.pname}_attribute_select}}}})]]}}}}"></button>
</fieldset>
<br/>\n""".format(node=self)
return ret
if __name__ == '__main__':
# filen=sys.argv[1]
@ -162,7 +171,7 @@ if __name__ == '__main__':
def parse(filen):
root=Root()
active_tab,active_subtab=None,None
tab_nb,subtab_nb,skill_nb=1,1,1
tab_nb,subtab_nb,skill_nb,repeating_nb=1,1,1,1
try:
with open(filen,encoding="utf-8") as f:
for line in f.readlines():
@ -180,11 +189,21 @@ if __name__ == '__main__':
tech_content=Skill(line[1:-1],skill_nb)
active_subtab.addchild(tech_content)
skill_nb+=1
elif line[0]==".":
tech_content=Repeating(line[1:-1],repeating_nb)
active_subtab.addchild(tech_content)
repeating_nb+=1
except FileNotFoundError:
print(filen,"was not found")
return root
root=parse(filen)
import base
with open(output,"w",encoding="utf-8") as f:
f.write(base.head)
f.write(base.script)
f.write(base.header)
f.write(root.content())
f.write(base.footer)
with open(outcss,"w",encoding="utf-8") as f:
f.write(root.css())
f.write(base.css_footer)

View File

@ -1,3 +1,5 @@
@ Physique
+ Compétences de combat
- : Armes à feu
+ Combat
- Armes à feu
+ Soc
- Charisme

View File

@ -3,29 +3,26 @@ input.sheet-tab1:checked ~ div.sheet-tab1,
input.sheet-tab2:checked ~ div.sheet-tab2,
input.sheet-tab3:checked ~ div.sheet-tab3
{
display: block;
display: block;
}
input.sheet-secondary_tab1:checked ~ div.sheet-secondary_tab1,
input.sheet-secondary_tab2:checked ~ div.sheet-secondary_tab2,
input.sheet-secondary_tab3:checked ~ div.sheet-secondary_tab3,
input.sheet-secondary_tab4:checked ~ div.sheet-secondary_tab4,
input.sheet-secondary_tab5:checked ~ div.sheet-secondary_tab5
input.sheet-secondary_physique_tab1:checked ~ div.sheet-secondary_physique_tab1,
input.sheet-secondary_physique_tab2:checked ~ div.sheet-secondary_physique_tab2,
input.sheet-secondary_physique_tab3:checked ~ div.sheet-secondary_physique_tab3,
input.sheet-secondary_physique_tab4:checked ~ div.sheet-secondary_physique_tab4
{
display:block;
display: block;
}
input.sheet-secondary_magic_tab1:checked ~ div.sheet-secondary_magic_tab1,
input.sheet-secondary_magic_tab2:checked ~ div.sheet-secondary_magic_tab2,
input.sheet-secondary_magic_tab3:checked ~ div.sheet-secondary_magic_tab3,
input.sheet-secondary_magic_tab4:checked ~ div.sheet-secondary_magic_tab4,
input.sheet-secondary_magic_tab5:checked ~ div.sheet-secondary_magic_tab5
input.sheet-secondary_intelectuelles_tab1:checked ~ div.sheet-secondary_intelectuelles_tab1,
input.sheet-secondary_intelectuelles_tab2:checked ~ div.sheet-secondary_intelectuelles_tab2,
input.sheet-secondary_intelectuelles_tab3:checked ~ div.sheet-secondary_intelectuelles_tab3
{
display:block;
display: block;
}
input.sheet-secondary_skills_tab1:checked ~ div.sheet-secondary_skills_tab1,
input.sheet-secondary_skills_tab2:checked ~ div.sheet-secondary_skills_tab2,
input.sheet-secondary_skills_tab3:checked ~ div.sheet-secondary_skills_tab3
input.sheet-secondary_social_tab1:checked ~ div.sheet-secondary_social_tab1,
input.sheet-secondary_social_tab2:checked ~ div.sheet-secondary_social_tab2,
input.sheet-secondary_social_tab3:checked ~ div.sheet-secondary_social_tab3
{
display:block;
display: block;
}
input.sheet-tab{