Ajout Artefacts et syntaxe item/acteurs
This commit is contained in:
parent
dd3f13f095
commit
b9d12843a5
31
lang/fr.json
Normal file
31
lang/fr.json
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"ACTOR": {
|
||||||
|
"TypePersonnage": "Personnage",
|
||||||
|
"TypeCellule": "Cellule",
|
||||||
|
"TypeCreature": "Créature"
|
||||||
|
},
|
||||||
|
|
||||||
|
"ITEM": {
|
||||||
|
"TypeArtefact": "Artefact",
|
||||||
|
"TypeArme": "Arme",
|
||||||
|
"TypeTalent": "Talent",
|
||||||
|
"TypeHistorique": "Historique",
|
||||||
|
"TypeProfil": "Profil",
|
||||||
|
"TypeCompetence": "Compétence",
|
||||||
|
"TypeProtection": "Protection",
|
||||||
|
"TypeMonnaie": "Monnaie",
|
||||||
|
"TypeEquipement": "Equipement",
|
||||||
|
"TypeRessource": "Ressource",
|
||||||
|
"TypeContact": "Contact"
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
"HAWKMOON": {
|
||||||
|
"ui": {
|
||||||
|
"editContact": "Modifier le contact",
|
||||||
|
"deleteContact": "Supprimer le contact",
|
||||||
|
"editTrait": "Modifier le trait",
|
||||||
|
"deleteTrait": "Supprimer le trait"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -48,6 +48,7 @@ export class HawkmoonActorSheet extends ActorSheet {
|
|||||||
profils: duplicate(this.actor.getProfils() || {}),
|
profils: duplicate(this.actor.getProfils() || {}),
|
||||||
combat: this.actor.getCombatValues(),
|
combat: this.actor.getCombatValues(),
|
||||||
equipements: duplicate(this.actor.getEquipments()),
|
equipements: duplicate(this.actor.getEquipments()),
|
||||||
|
artefacts: duplicate(this.actor.getArtefacts()),
|
||||||
monnaies: duplicate(this.actor.getMonnaies()),
|
monnaies: duplicate(this.actor.getMonnaies()),
|
||||||
richesse: this.actor.computeRichesse(),
|
richesse: this.actor.computeRichesse(),
|
||||||
valeurEquipement: this.actor.computeValeurEquipement(),
|
valeurEquipement: this.actor.computeValeurEquipement(),
|
||||||
|
@ -117,6 +117,10 @@ export class HawkmoonActor extends Actor {
|
|||||||
return this.items.filter(item => item.type == "equipement")
|
return this.items.filter(item => item.type == "equipement")
|
||||||
}
|
}
|
||||||
/* ----------------------- --------------------- */
|
/* ----------------------- --------------------- */
|
||||||
|
getArtefacts() {
|
||||||
|
return this.items.filter(item => item.type == "artefact")
|
||||||
|
}
|
||||||
|
/* ----------------------- --------------------- */
|
||||||
getMonnaies() {
|
getMonnaies() {
|
||||||
return this.items.filter(item => item.type == "monnaie")
|
return this.items.filter(item => item.type == "monnaie")
|
||||||
}
|
}
|
||||||
|
12
system.json
12
system.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "fvtt-hawkmoon-cyd",
|
"id": "fvtt-hawkmoon-cyd",
|
||||||
"description": "Hawmoon RPG for FoundryVTT (CYD system - French)",
|
"description": "Hawmoon RPG for FoundryVTT (CYD system - French)",
|
||||||
"version": "10.1.4",
|
"version": "10.1.5",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Uberwald/LeRatierBretonnien",
|
"name": "Uberwald/LeRatierBretonnien",
|
||||||
@ -35,7 +35,15 @@
|
|||||||
"gridUnits": "m",
|
"gridUnits": "m",
|
||||||
"license": "LICENSE.txt",
|
"license": "LICENSE.txt",
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/raw/branch/master/system.json",
|
"manifest": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/raw/branch/master/system.json",
|
||||||
"download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-10.1.4.zip",
|
"download": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd/archive/fvtt-hawkmoon-cyd-10.1.5.zip",
|
||||||
|
"languages": [
|
||||||
|
{
|
||||||
|
"lang": "fr",
|
||||||
|
"name": "French",
|
||||||
|
"path": "lang/fr.json",
|
||||||
|
"flags": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
"packs": [
|
"packs": [
|
||||||
{
|
{
|
||||||
"type": "Item",
|
"type": "Item",
|
||||||
|
@ -428,6 +428,41 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="sheet-box color-bg-archetype">
|
||||||
|
<ul class="item-list alternate-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header">
|
||||||
|
<h3><label class="items-title-text">Artefacts</label></h3>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">Quantité</label>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-add" data-type="arme" title="Ajouter une arme"><i
|
||||||
|
class="fas fa-plus"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{#each artefacts as |artefact key|}}
|
||||||
|
<li class="item flexrow " data-item-id="{{artefact._id}}" data-item-type="artefact">
|
||||||
|
<img class="item-name-img" src="{{artefact.img}}" />
|
||||||
|
<span class="item-name-label competence-name">{{artefact.name}}</span>
|
||||||
|
<span class="item-name-label competence-name item-field-label-medium">{{artefact.system.quantite}}
|
||||||
|
<a class="quantity-modify plus-minus-button" data-quantite-value="-1">-</a>
|
||||||
|
<a class="quantity-modify plus-minus-button" data-quantite-value="+1">+</a>
|
||||||
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user