Traduction et compilation

This commit is contained in:
JDR-Ninja
2024-05-06 19:51:09 -04:00
parent e74cfe71bd
commit 2998a62ff9
6 changed files with 36 additions and 32 deletions

View File

@@ -1 +1,5 @@
# foundryvtt-mgt2 # MGT2 - Mongoose Traveller (Unofficial)
This game system for [Foundry Virtual Tabletop](http://foundryvtt.com) provides character sheet and game system
support for Mongoose Publishing Traveller.

View File

@@ -115,7 +115,7 @@
"NewArmor": "New Armor", "NewArmor": "New Armor",
"NewAugment": "New Augment", "NewAugment": "New Augment",
"NewContact": "New Contact", "NewContact": "New Contact",
"NewDiseases": "New Diseases", "NewDisease": "New Diseases",
"NewEquipment": "New Equipment", "NewEquipment": "New Equipment",
"NewItem": "New Item", "NewItem": "New Item",
"NewWeapon": "New Weapon", "NewWeapon": "New Weapon",

View File

@@ -115,7 +115,7 @@
"NewArmor": "Nouvelle Armure", "NewArmor": "Nouvelle Armure",
"NewAugment": "Nouvelle Augmentation", "NewAugment": "Nouvelle Augmentation",
"NewContact": "Nouveau Contact", "NewContact": "Nouveau Contact",
"NewDiseases": "Nouvelle Maladie", "NewDisease": "Nouvelle Maladie",
"NewEquipment": "Nouvelle Équipement", "NewEquipment": "Nouvelle Équipement",
"NewItem": "Nouveau Objet", "NewItem": "Nouveau Objet",
"NewWeapon": "Nouvel Arme", "NewWeapon": "Nouvel Arme",

View File

@@ -335,16 +335,16 @@ function createCharacteristicField(show = true, showMax = false) {
}); });
} }
const MGT2$1 = {}; const MGT2 = {};
MGT2$1.MetricRange = Object.freeze({ MGT2.MetricRange = Object.freeze({
meter: "MGT2.MetricRange.meter", meter: "MGT2.MetricRange.meter",
kilometer: "MGT2.MetricRange.kilometer" kilometer: "MGT2.MetricRange.kilometer"
}); });
MGT2$1.MetricWeight = Object.freeze({ MGT2.MetricWeight = Object.freeze({
kilogram: "MGT2.MetricWeight.kilogram", kilogram: "MGT2.MetricWeight.kilogram",
ton: "MGT2.MetricWeight.ton" ton: "MGT2.MetricWeight.ton"
}); });
MGT2$1.Difficulty = Object.freeze({ MGT2.Difficulty = Object.freeze({
NA: "MGT2.Difficulty.NA", NA: "MGT2.Difficulty.NA",
Simple: "MGT2.Difficulty.Simple", Simple: "MGT2.Difficulty.Simple",
Easy: "MGT2.Difficulty.Easy", Easy: "MGT2.Difficulty.Easy",
@@ -355,27 +355,27 @@ MGT2$1.Difficulty = Object.freeze({
Formidable: "MGT2.Difficulty.Formidable", Formidable: "MGT2.Difficulty.Formidable",
Impossible: "MGT2.Difficulty.Impossible" Impossible: "MGT2.Difficulty.Impossible"
}); });
MGT2$1.ItemSubType = Object.freeze({ MGT2.ItemSubType = Object.freeze({
loot: "MGT2.ItemSubType.loot", loot: "MGT2.ItemSubType.loot",
software: "MGT2.ItemSubType.software" software: "MGT2.ItemSubType.software"
}); });
MGT2$1.EquipmentSubType = Object.freeze({ MGT2.EquipmentSubType = Object.freeze({
augment: "MGT2.EquipmentSubType.augment", augment: "MGT2.EquipmentSubType.augment",
clothing: "MGT2.EquipmentSubType.clothing", clothing: "MGT2.EquipmentSubType.clothing",
equipment: "MGT2.EquipmentSubType.equipment", equipment: "MGT2.EquipmentSubType.equipment",
trinket: "MGT2.EquipmentSubType.trinket", trinket: "MGT2.EquipmentSubType.trinket",
toolkit: "MGT2.EquipmentSubType.toolkit" toolkit: "MGT2.EquipmentSubType.toolkit"
}); });
MGT2$1.TalentSubType = Object.freeze({ MGT2.TalentSubType = Object.freeze({
skill: "MGT2.TalentSubType.skill", skill: "MGT2.TalentSubType.skill",
psionic: "MGT2.TalentSubType.psionic" psionic: "MGT2.TalentSubType.psionic"
}); });
MGT2$1.DiseaseSubType = Object.freeze({ MGT2.DiseaseSubType = Object.freeze({
disease: "MGT2.DiseaseSubType.disease", disease: "MGT2.DiseaseSubType.disease",
poison: "MGT2.DiseaseSubType.poison", poison: "MGT2.DiseaseSubType.poison",
wound: "MGT2.DiseaseSubType.wound" wound: "MGT2.DiseaseSubType.wound"
}); });
MGT2$1.PsionicReach = Object.freeze({ MGT2.PsionicReach = Object.freeze({
NA: "MGT2.PsionicReach.NA", NA: "MGT2.PsionicReach.NA",
Personal: "MGT2.PsionicReach.Personal", Personal: "MGT2.PsionicReach.Personal",
Close: "MGT2.PsionicReach.Close", Close: "MGT2.PsionicReach.Close",
@@ -388,18 +388,18 @@ MGT2$1.PsionicReach = Object.freeze({
Continental: "MGT2.PsionicReach.Continental", Continental: "MGT2.PsionicReach.Continental",
Planetary: "MGT2.PsionicReach.Planetary" Planetary: "MGT2.PsionicReach.Planetary"
}); });
MGT2$1.ContactRelations = Object.freeze({ MGT2.ContactRelations = Object.freeze({
Allie: "MGT2.Contact.Relation.Allie", Allie: "MGT2.Contact.Relation.Allie",
Contact: "MGT2.Contact.Relation.Contact", Contact: "MGT2.Contact.Relation.Contact",
Rival: "MGT2.Contact.Relation.Rival", Rival: "MGT2.Contact.Relation.Rival",
Enemy: "MGT2.Contact.Relation.Enemy" Enemy: "MGT2.Contact.Relation.Enemy"
}); });
MGT2$1.ContactStatus = Object.freeze({ MGT2.ContactStatus = Object.freeze({
Alive: "MGT2.Contact.Status.Alive", Alive: "MGT2.Contact.Status.Alive",
Unknow: "MGT2.Contact.Status.Unknow", Unknow: "MGT2.Contact.Status.Unknow",
Dead: "MGT2.Contact.Status.Dead" Dead: "MGT2.Contact.Status.Dead"
}); });
MGT2$1.Attitudes = Object.freeze({ MGT2.Attitudes = Object.freeze({
Unknow: "MGT2.Contact.Attitude.Unknow", Unknow: "MGT2.Contact.Attitude.Unknow",
Hostile: "MGT2.Contact.Attitude.Hostile", Hostile: "MGT2.Contact.Attitude.Hostile",
Unfriendly: "MGT2.Contact.Attitude.Unfriendly", Unfriendly: "MGT2.Contact.Attitude.Unfriendly",
@@ -408,7 +408,7 @@ MGT2$1.Attitudes = Object.freeze({
Helpful: "MGT2.Contact.Attitude.Helpful", Helpful: "MGT2.Contact.Attitude.Helpful",
Complicated: "MGT2.Contact.Attitude.Complicated" Complicated: "MGT2.Contact.Attitude.Complicated"
}); });
MGT2$1.Characteristics = Object.freeze({ MGT2.Characteristics = Object.freeze({
strength: "MGT2.Characteristics.strength.name", strength: "MGT2.Characteristics.strength.name",
dexterity: "MGT2.Characteristics.dexterity.name", dexterity: "MGT2.Characteristics.dexterity.name",
endurance: "MGT2.Characteristics.endurance.name", endurance: "MGT2.Characteristics.endurance.name",
@@ -422,16 +422,16 @@ MGT2$1.Characteristics = Object.freeze({
psionic: "MGT2.Characteristics.psionic.name", psionic: "MGT2.Characteristics.psionic.name",
other: "MGT2.Characteristics.other.name" other: "MGT2.Characteristics.other.name"
}); });
MGT2$1.InitiativeCharacteristics = Object.freeze({ MGT2.InitiativeCharacteristics = Object.freeze({
dexterity: "MGT2.Characteristics.dexterity.name", dexterity: "MGT2.Characteristics.dexterity.name",
intellect: "MGT2.Characteristics.intellect.name" intellect: "MGT2.Characteristics.intellect.name"
}); });
MGT2$1.DamageCharacteristics = Object.freeze({ MGT2.DamageCharacteristics = Object.freeze({
strength: "MGT2.Characteristics.strength.name", strength: "MGT2.Characteristics.strength.name",
dexterity: "MGT2.Characteristics.dexterity.name", dexterity: "MGT2.Characteristics.dexterity.name",
endurance: "MGT2.Characteristics.endurance.name" endurance: "MGT2.Characteristics.endurance.name"
}); });
MGT2$1.TL = Object.freeze({ MGT2.TL = Object.freeze({
NA: "MGT2.TL.NA", NA: "MGT2.TL.NA",
Unknow: "MGT2.TL.Unknow", Unknow: "MGT2.TL.Unknow",
NotIdentified: "MGT2.TL.NotIdentified", NotIdentified: "MGT2.TL.NotIdentified",
@@ -452,12 +452,12 @@ MGT2$1.TL = Object.freeze({
TL14: "MGT2.TL.L14", TL14: "MGT2.TL.L14",
TL15: "MGT2.TL.L15" TL15: "MGT2.TL.L15"
}); });
MGT2$1.Timeframes = Object.freeze({ MGT2.Timeframes = Object.freeze({
Normal: "MGT2.Timeframes.Normal", Normal: "MGT2.Timeframes.Normal",
Slower: "MGT2.Timeframes.Slower", Slower: "MGT2.Timeframes.Slower",
Faster: "MGT2.Timeframes.Faster" Faster: "MGT2.Timeframes.Faster"
}); });
MGT2$1.SpeedBands = Object.freeze({ MGT2.SpeedBands = Object.freeze({
Stoppped: "MGT2.Stoppped", Stoppped: "MGT2.Stoppped",
Idle: "MGT2.Idle", Idle: "MGT2.Idle",
VerySlow: "MGT2.VerySlow", VerySlow: "MGT2.VerySlow",
@@ -1877,7 +1877,7 @@ class TravellerActorSheet extends ActorSheet {
} }
} }
rollOptions.skills.sort(MGT2Helper.compareByName); rollOptions.skills.sort(MGT2Helper.compareByName);
rollOptions.skills = [{ _id: "NP", name: "Not proficient (-3)" }].concat(rollOptions.skills); rollOptions.skills = [{ _id: "NP", name: game.i18n.localize("MGT2.Items.NotProficient") }].concat(rollOptions.skills);
let itemObj = null; let itemObj = null;
let isInitiative = false; let isInitiative = false;
const button = event.currentTarget; const button = event.currentTarget;
@@ -1904,11 +1904,11 @@ class TravellerActorSheet extends ActorSheet {
itemObj = this.actor.getEmbeddedDocument("Item", button.dataset.itemId); itemObj = this.actor.getEmbeddedDocument("Item", button.dataset.itemId);
rollOptions.rollObjectName = itemObj.name; rollOptions.rollObjectName = itemObj.name;
if (itemObj.type === "weapon") if (itemObj.type === "weapon")
rollOptions.rollTypeName = "Weapon"; rollOptions.rollTypeName = game.i18n.localize("TYPES.Item.weapon");
else if (itemObj.type === "armor") else if (itemObj.type === "armor")
rollOptions.rollTypeName = "Armor"; rollOptions.rollTypeName = game.i18n.localize("TYPES.Item.armor");
else if (itemObj.type === "computer") else if (itemObj.type === "computer")
rollOptions.rollTypeName = "Computer"; rollOptions.rollTypeName = game.i18n.localize("TYPES.Item.computer");
} }
if (button.dataset.roll === "psionic") { if (button.dataset.roll === "psionic") {
rollOptions.rollObjectName = itemObj.name; rollOptions.rollObjectName = itemObj.name;
@@ -1917,9 +1917,9 @@ class TravellerActorSheet extends ActorSheet {
rollOptions.damageFormula = itemObj.system.damage; rollOptions.damageFormula = itemObj.system.damage;
if (itemObj.type === "disease") { if (itemObj.type === "disease") {
if (itemObj.system.subTypetype === "disease") { if (itemObj.system.subTypetype === "disease") {
rollOptions.rollTypeName = "Disease"; rollOptions.rollTypeName = game.i18n.localize("DiseaseSubType.disease");
} else if (itemObj.system.subTypetype === "poison") { } else if (itemObj.system.subTypetype === "poison") {
rollOptions.rollTypeName = "Poison"; rollOptions.rollTypeName = game.i18n.localize("DiseaseSubType.poison");
} }
} }
} }
@@ -1953,7 +1953,7 @@ class TravellerActorSheet extends ActorSheet {
if (userRollData.hasOwnProperty("skill") && userRollData.skill !== "") { if (userRollData.hasOwnProperty("skill") && userRollData.skill !== "") {
if (userRollData.skill === "NP") { if (userRollData.skill === "NP") {
rollFormulaParts.push("-3"); rollFormulaParts.push("-3");
rollModifiers.push("Not proficient (-3)"); rollModifiers.push(game.i18n.localize("MGT2.Items.NotProficient"));
} else { } else {
const skillObj = this.actor.getEmbeddedDocument("Item", userRollData.skill); const skillObj = this.actor.getEmbeddedDocument("Item", userRollData.skill);
rollFormulaParts.push(MGT2Helper.getFormulaDM(skillObj.system.level)); rollFormulaParts.push(MGT2Helper.getFormulaDM(skillObj.system.level));
@@ -2333,7 +2333,7 @@ function registerHandlebarsHelpers() {
}); });
} }
Hooks.once("init", async function() { Hooks.once("init", async function() {
CONFIG.MGT2 = MGT2$1; CONFIG.MGT2 = MGT2;
CONFIG.Combat.initiative = { CONFIG.Combat.initiative = {
formula: "2d6 + @initiative", formula: "2d6 + @initiative",
decimals: 2 decimals: 2
@@ -2408,5 +2408,5 @@ Hooks.once("init", async function() {
await preloadHandlebarsTemplates(); await preloadHandlebarsTemplates();
}); });
export { MGT2$1 as MGT2 }; export { MGT2 };
//# sourceMappingURL=mgt2.bundle.js.map //# sourceMappingURL=mgt2.bundle.js.map

File diff suppressed because one or more lines are too long

View File

@@ -252,7 +252,7 @@
{{else}} {{else}}
<div class="characteristic-row"> <div class="characteristic-row">
<input class="characteristic-input" type="text" maxlength="2" name="system.characteristics.psionic.value" value="{{system.characteristics.psionic.value}}" /> <input class="characteristic-input" type="text" maxlength="2" name="system.characteristics.psionic.value" value="{{system.characteristics.psionic.value}}" />
<input class="characteristic-dm-input" type="text" maxlength="2" value="{{#if (gt system.characteristics.psionic.dm 0)}}+{{/if}}{{system.characteristics.psionic.dm}}" readonly tabindex='-1' /> <input class="characteristic-dm" type="text" maxlength="2" value="{{#if (gt system.characteristics.psionic.dm 0)}}+{{/if}}{{system.characteristics.psionic.dm}}" readonly tabindex='-1' />
</div> </div>
{{/if}} {{/if}}
{{/if}} {{/if}}