Item structure

This commit is contained in:
sladecraven 2022-05-29 19:07:25 +02:00
parent 0e7b87738a
commit 342b290a98
11 changed files with 286 additions and 19 deletions

View File

@ -40,9 +40,9 @@
"styles": [ "styles": [
"styles/simple.css" "styles/simple.css"
], ],
"templateVersion": 2, "templateVersion": 3,
"title": "Mournblade", "title": "Mournblade",
"url": "", "url": "",
"version": "0.0.2", "version": "0.0.3",
"background": "./images/ui/mournblade_welcome.webp" "background": "./images/ui/mournblade_welcome.webp"
} }

View File

@ -115,10 +115,6 @@
"prix": 0, "prix": 0,
"templates": [ "base" ] "templates": [ "base" ]
}, },
"predilection": {
"competenceId": "",
"templates": [ "base" ]
},
"competence": { "competence": {
"niveau": 0, "niveau": 0,
"attribut1": "", "attribut1": "",
@ -135,6 +131,7 @@
"templates": [ "base" ] "templates": [ "base" ]
}, },
"pacte": { "pacte": {
"allegeance": "",
"templates": [ "base" ] "templates": [ "base" ]
}, },
"traitchaotique": { "traitchaotique": {
@ -150,6 +147,7 @@
"templates": [ "base" ] "templates": [ "base" ]
}, },
"tendance": { "tendance": {
"allegeance": "",
"templates": [ "base" ] "templates": [ "base" ]
}, },
"rune": { "rune": {

View File

@ -0,0 +1,70 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Type d'arme : </label>
<select class="status-small-label color-class-common" type="text" name="data.typearme" value="{{data.typearme}}" data-dtype="string" >
{{#select data.typearme}}
<option value="contact">Arme de contact</option>
<option value="contactjet">Arme de contact et de Jet</option>
<option value="jet">Arme de Jet</option>
<option value="tir">Arme de Tir</option>
{{/select}}
</select>
</span>
<span class="flexrow">
<label class="generic-label">Bonus de maniement (offensif) : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.bonusmaniementoff" value="{{data.bonusmaniementoff}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Bonus de maniement (défensif) : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.bonusmaniementdef" value="{{data.bonusmaniementdef}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Dégâts : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.degats" value="{{data.degats}}" data-dtype="String" />
</span>
<span class="flexrow">
<label class="generic-label">A deux mains ? </label>
<input class="" type="checkbox" name="data.deuxmains" value="{{data.deuxmains}}" {{checked data.deuxmains}}/>
</span>
<span class="flexrow">
<label class="generic-label">Portée courte </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.courte" value="{{data.courte}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Portée moyenne </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.moyenne" value="{{data.moyenne}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Portée longue </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.longue" value="{{data.longue}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Temps de rechargement </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.tr" value="{{data.tr}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Rareté </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.rarete" value="{{data.rarete}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Prix </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.prix" value="{{data.prix}}" data-dtype="Number" />
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -0,0 +1,37 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Allégeance : </label>
<select class="status-small-label color-class-common" type="text" name="data.allegeance" value="{{data.allegeance}}" data-dtype="string" >
{{#select data.allegeance}}
<option value="chaos">Chaos</option>
<option value="loi">Loi</option>
<option value="betes">Seigneurs de Bêtes</option>
{{/select}}
</select>
</span>
<span class="flexrow">
<label class="generic-label">Prérequis : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.prerequis" value="{{data.prerequis}}" data-dtype="String" />
</span>
<span class="flexrow">
<label class="generic-label">Sacrifice : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.sacrifice" value="{{data.sacrifice}}" data-dtype="String" />
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -0,0 +1,19 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -0,0 +1,29 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Allégeance : </label>
<select class="status-small-label color-class-common" type="text" name="data.allegeance" value="{{data.allegeance}}" data-dtype="string" >
{{#select data.allegeance}}
<option value="chaos">Chaos</option>
<option value="loi">Loi</option>
<option value="betes">Seigneurs de Bêtes</option>
{{/select}}
</select>
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -0,0 +1,44 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Type de protection : </label>
<select class="status-small-label color-class-common" type="text" name="data.typeprotection" value="{{data.typeprotection}}" data-dtype="string" >
{{#select data.typearme}}
<option value="armure">Armure</option>
<option value="bouclier">Bouclier</option>
{{/select}}
</select>
</span>
<span class="flexrow">
<label class="generic-label">Protection : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.protection" value="{{data.protection}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Bonus de maniement (défensif) : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.bonusmaniementdef" value="{{data.bonusmaniementdef}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Rareté </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.rarete" value="{{data.rarete}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Prix </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.prix" value="{{data.prix}}" data-dtype="Number" />
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -0,0 +1,35 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Formule : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.formule" value="{{data.formule}}" data-dtype="String" />
</span>
<span class="flexrow">
<label class="generic-label">Seuil de difficulté : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.seuil" value="{{data.seuil}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Rune prononcée : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.prononcee" value="{{data.prononcee}}" data-dtype="String" />
</span>
<span class="flexrow">
<label class="generic-label">Rune tracée : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="data.tracee" value="{{data.tracee}}" data-dtype="String" />
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -0,0 +1,29 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Allégeance : </label>
<select class="status-small-label color-class-common" type="text" name="data.allegeance" value="{{data.allegeance}}" data-dtype="string" >
{{#select data.allegeance}}
<option value="chaos">Chaos</option>
<option value="loi">Loi</option>
<option value="betes">Seigneurs de Bêtes</option>
{{/select}}
</select>
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -0,0 +1,19 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -1,13 +0,0 @@
<option value="camping">Camping & Survival</option>
<option value="communication">Communication & Information</option>
<option value="equestrian">Equestrian</option>
<option value="spy">Law/Security/Spy/Thief</option>
<option value="medical">Medical</option>
<option value="tools">Tools</option>
<option value="weaponaccess">Weapons accessories</option>
<option value="wizard">Wizards materials</option>
<option value="mount">Mounts</option>
<option value="vehicle">Vehicles</option>
<option value="clothing">Clothing</option>
<option value="ammo">Ammo</option>
<option value="misc">Misc</option>