Correction appel de fonction et enlever mauvaise référence

This commit is contained in:
JDR-Ninja
2024-05-11 08:36:12 -04:00
parent db54e5213c
commit e18dd8abfa
4 changed files with 15 additions and 6 deletions

View File

@@ -1,9 +1,18 @@
# MGT2 - Mongoose Traveller (Unofficial)
*English version below*
Ce système de jeu pour [Foundry Virtual Tabletop](http://foundryvtt.com) qui fournit une feuille de personnage et un système de jeu
pour Mongoose Publishing Traveller.
Spécialement développé pour la version française traduite par [Modül](https://www.gameontabletop.com/cf3161/traveller-vf.html)
#### Screenshots
![Alt text](https://raw.githubusercontent.com/JDR-Ninja/foundryvtt-mgt2/master/web/foundryvtt/inventory.jpg "Screenshot")
## English
This game system for [Foundry Virtual Tabletop](http://foundryvtt.com) provides character sheet and game system
support for Mongoose Publishing Traveller.
Specially developed for the French version translated by [Modül](https://www.gameontabletop.com/cf3161/traveller-vf.html)
#### Screenshots
![Alt text](https://raw.githubusercontent.com/JDR-Ninja/foundryvtt-mgt2/master/web/foundryvtt/inventory.jpg "Screenshot")

View File

@@ -504,7 +504,7 @@ class ActorCharacter {
await $this.deleteEmbeddedDocuments("Item", toDeleteIds);
if (itemToUpdates.length > 0)
await $this.updateEmbeddedDocuments("Item", itemToUpdates);
await $this.recalculateWeight();
await this.recalculateWeight();
}
static async onUpdateDescendantDocuments($this, parent, collection, documents, changes, options, userId) {
await this.calculEncumbranceAndWeight($this, parent, collection, documents, changes, options, userId);
@@ -1521,7 +1521,7 @@ class TravellerActorSheet extends ActorSheet {
_prepareCharacterItems(sheetData) {
const actorData = sheetData.data;
actorData.isGM = game.user.isGM;
actorData.showTrash = game.user.isGM || game.settings.get("mgt2", "showTrash");
actorData.showTrash = false;
actorData.initiative = this.actor.getInitiative();
const weapons = [];
const armors = [];

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"id": "mgt2",
"version": "0.1.0",
"version": "0.1.1",
"title": "MGT2 - Mongoose Traveller (Unofficial)",
"description": "An unofficial implementation of Mongoose Publishing Traveller. Traveller is the property of Mongoose Publishing, and can be purchased at https://www.mongoosepublishing.com",
"background": "systems/mgt2/assets/screens/rosette-nebula-ngc2239-hoo.webp",