diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d30a04..3b7a0c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.1.6 +- finition de l'onglet totem +- ajout du logo de totem dans la sidebar +- ajout de traductions manquantes ## 0.1.5 - début de mise en forme des feuilles créature et pnj diff --git a/assets/images/avatars/Vermine-Pi.png b/assets/images/avatars/Vermine-Pi.png new file mode 100644 index 0000000..e9344a1 Binary files /dev/null and b/assets/images/avatars/Vermine-Pi.png differ diff --git a/lang/en.json b/lang/en.json index 6cd1c72..26c2c25 100644 --- a/lang/en.json +++ b/lang/en.json @@ -138,6 +138,16 @@ "rarity_sm": "Rar.", "reliability": "Fiabilité", "reliability_sm": "Fiab.", + "wounds":{ + "name":"Blessure", + "threshold": "Seuil", + "light":"Légère", + "heavy": "Grave", + "deadly": "Mortelle", + "light_wounds":"Blessure légère", + "heavy_wounds":"Blessure grave", + "deadly_wounds":"Blessure mortelle" + }, "ammo": "Munitions", "ammo_sm": "Mun", "trait": "Trait", @@ -160,21 +170,46 @@ "totem_picker": "Sélecteur de totem", "actor_picker": "Sélecteur de personnage" }, + "UI": { + "add": "Ajouter", + "source":"Source", + "duration":"Durée", + "effect_toggle":"Basculer un effet", + "effect_edit":"Modifier un effet", + "effect_delete":"Détruire un effet", + "effect_create":"Créer un effet", + "effects": { + "name": "Effets", + "temporary": "Effets temporaires", + "passive": "Effets passifs", + "inactive": "Effets inactifs" + } + }, "ITEMS": { "defense": "Protection", "defenses": "Protections", + "new_defense": "Nouvelle protection", "weapon": "Arme", + "new_weapon": "Nouvelle arme", "weapons": "Armes", + "new_background": "Nouvel historique", "backgrounds": "Historiques", + "new_trauma": "Nouveau traumatisme", "traumas": "Traumatismes", "rumor": "Rumeur", + "new_rumor": "Nouvelle rumeur", "rumors": "Rumeurs", "ability": "Capacité", + "new_ability": "Nouvelle capacité", "abilities": "Capacités", "specialties": "Spécialités", + "new_specialty": "Nouvelle spécialité", "evolution": "Adaptation", + "new_evolution": "Nouvelle adaptation", "evolutions": "Adaptations", - "vehicles": "Véhicules" + "new_vehicle": "Nouveau véhicule", + "vehicles": "Véhicules", + "new_objective": "Nouvel objectif" }, "ABILITIES": { "vigor": { "name": "Vigueur"}, @@ -318,8 +353,8 @@ "SKILLS": { "arts": { "name": "Arts"}, "civilization": { "name": "Civilisations"}, - "psychology": { "name": "Relationnel"}, - "rumors": { "name": "Cité"}, + "psychology": { "name": "Psychologie"}, + "rumors": { "name": "Rumeurs"}, "healing": { "name": "Soins"}, "animalism": { "name": "Animalisme"}, "dissection": { "name": "Dissection"}, diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index e34d1be..2e4470b 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -315,7 +315,9 @@ export class VermineActorSheet extends ActorSheet { // Grab any data associated with this control. const data = duplicate(header.dataset); // Initialize a default name. - const name = `New ${type.capitalize()}`; + // const name = `New ${type.capitalize()}`; + const name = game.i18n.localize('ITEMS.new_' + type); + // Prepare the item object. const itemData = { name: name, diff --git a/module/sheets/character-sheet.mjs b/module/sheets/character-sheet.mjs index b72a570..a13fd74 100644 --- a/module/sheets/character-sheet.mjs +++ b/module/sheets/character-sheet.mjs @@ -143,20 +143,9 @@ export class VermineCharacterSheet extends VermineActorSheet { // Everything below here is only needed if the sheet is editable if (!this.isEditable) return; - // Add Inventory Item - html.find('.item-create').click(this._onItemCreate.bind(this)); - - // Delete Inventory Item - html.find('.item-delete').click(ev => { - const li = $(ev.currentTarget).parents(".item"); - const item = this.actor.items.get(li.data("itemId")); - item.delete(); - li.slideUp(200, () => this.render(false)); - }); - - // Active Effect management - html.find(".effect-control").click(ev => onManageActiveEffect(ev, this.actor)); - + // Add and delete Inventory Item + // already configured in parents listeners + // Rollable abilities. html.find('.rollable').click(this._onRoll.bind(this)); @@ -189,32 +178,6 @@ export class VermineCharacterSheet extends VermineActorSheet { } } - /** - * Handle creating a new Owned Item for the actor using initial data defined in the HTML dataset - * @param {Event} event The originating click event - * @private - */ - async _onItemCreate(event) { - event.preventDefault(); - const header = event.currentTarget; - // Get the type of item to create. - const type = header.dataset.type; - // Grab any data associated with this control. - const data = duplicate(header.dataset); - // Initialize a default name. - const name = `New ${type.capitalize()}`; - // Prepare the item object. - const itemData = { - name: name, - type: type, - system: data - }; - // Remove the type from the dataset since it's in the itemData.type prop. - delete itemData.system["type"]; - - // Finally, create the item! - return await Item.create(itemData, {parent: this.actor}); - } /** * Handle clickable rolls. diff --git a/module/sheets/creature-sheet.mjs b/module/sheets/creature-sheet.mjs index 2833d06..4084371 100644 --- a/module/sheets/creature-sheet.mjs +++ b/module/sheets/creature-sheet.mjs @@ -140,20 +140,7 @@ export class VermineCreatureSheet extends ActorSheet { // ------------------------------------------------------------- // Everything below here is only needed if the sheet is editable if (!this.isEditable) return; - - // Add Inventory Item - html.find('.item-create').click(this._onItemCreate.bind(this)); - - // Delete Inventory Item - html.find('.item-delete').click(ev => { - const li = $(ev.currentTarget).parents(".item"); - const item = this.actor.items.get(li.data("itemId")); - item.delete(); - li.slideUp(200, () => this.render(false)); - }); - - // Active Effect management - html.find(".effect-control").click(ev => onManageActiveEffect(ev, this.actor)); + // Rollable abilities. html.find('.rollable').click(this._onRoll.bind(this)); diff --git a/module/sheets/npc-sheet.mjs b/module/sheets/npc-sheet.mjs index 2ca4c06..e7e871a 100644 --- a/module/sheets/npc-sheet.mjs +++ b/module/sheets/npc-sheet.mjs @@ -141,20 +141,6 @@ export class VermineNpcSheet extends VermineActorSheet { // Everything below here is only needed if the sheet is editable if (!this.isEditable) return; - // Add Inventory Item - html.find('.item-create').click(this._onItemCreate.bind(this)); - - // Delete Inventory Item - html.find('.item-delete').click(ev => { - const li = $(ev.currentTarget).parents(".item"); - const item = this.actor.items.get(li.data("itemId")); - item.delete(); - li.slideUp(200, () => this.render(false)); - }); - - // Active Effect management - html.find(".effect-control").click(ev => onManageActiveEffect(ev, this.actor)); - // Rollable abilities. html.find('.rollable').click(this._onRoll.bind(this)); diff --git a/module/system/handlebars-manager.mjs b/module/system/handlebars-manager.mjs index dd8044c..27f33c6 100644 --- a/module/system/handlebars-manager.mjs +++ b/module/system/handlebars-manager.mjs @@ -8,9 +8,7 @@ // Actor partials. - "systems/vermine2047/templates/actor/parts/actor-spells.html", - "systems/vermine2047/templates/actor/parts/actor-features.html", - "systems/vermine2047/templates/actor/parts/actor-spells.html", + // "systems/vermine2047/templates/actor/parts/actor-features.html", "systems/vermine2047/templates/actor/parts/actor-id.hbs", "systems/vermine2047/templates/actor/parts/actor-totem.hbs", "systems/vermine2047/templates/actor/parts/character-features.hbs", @@ -19,7 +17,7 @@ "systems/vermine2047/templates/actor/parts/actor-weapons.hbs", "systems/vermine2047/templates/actor/parts/actor-defenses.hbs", "systems/vermine2047/templates/actor/parts/actor-stories.hbs", - "systems/vermine2047/templates/actor/parts/actor-effects.html", + "systems/vermine2047/templates/actor/parts/actor-combat.html", // Group partials "systems/vermine2047/templates/actor/parts/group-header.hbs", diff --git a/system.json b/system.json index 50f9451..72b9c1c 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "vermine2047", "title": "Vermine 2047", "description": "The Vermine 2047 system for FoundryVTT!", - "version": "0.1.5", + "version": "0.1.6", "compatibility": { "minimum": "10", "verified": "10.287", diff --git a/template.json b/template.json index c1c66c2..cfe6235 100644 --- a/template.json +++ b/template.json @@ -4,16 +4,19 @@ "templates": { "base": { "minorWound": { + "threshold":1, "value": 0, "min": 0, "max": 4 }, "majorWound": { + "threshold":4, "value": 0, "min": 0, "max": 2 } , "deadlyWound": { + "threshold":8, "value": 0, "min": 0, "max": 2 @@ -29,7 +32,6 @@ "age": 15, "ageType": 2, "profile": "", - "origin": "", "theme": "", "instincts": "", "prohibits": "", @@ -58,11 +60,6 @@ "value": 0, "min": 0, "max": 5 - }, - "group": { - "value": 0, - "min": 0, - "max": 5 } }, "abilities": { diff --git a/templates/actor/actor-character-sheet.html b/templates/actor/actor-character-sheet.html index 67e101c..696ac96 100644 --- a/templates/actor/actor-character-sheet.html +++ b/templates/actor/actor-character-sheet.html @@ -1,4 +1,4 @@ -