forked from public/foundryvtt-wh4-lang-fr-fr
Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -10,15 +10,15 @@ let characteristics = {
|
||||
"wp" : 45,
|
||||
"fel" : 10
|
||||
}
|
||||
let skills = ["Focalisation", "Calme", "Intimidate", "Langue (Magick)", "Langue (Nehekharan)", "Savoir (Magie)" , "Perception"]
|
||||
let skills = ["Focalisation", "Calme", "Intimidation", "Langue (Magick)", "Language (Nehekharan)", "Savoir (Magie)", "Perception"]
|
||||
let skillAdvancements = [10, 20, 15, 15, 10, 10, 10]
|
||||
let talents = ["Magie des Arcanes", "Hardy", "Menaçant", "Magie Mineure", "Read/Write", "Seconde Vue"]
|
||||
let talents = ["Magie des Arcanes (Domaine)", "Dur à cuire", "Menaçant", "Magie Mineure", "Lire/Écrire", "Seconde Vue"]
|
||||
let trappings = ["Arme simple"]
|
||||
let specialItems = [
|
||||
{name: "Mouldering Robes", type: "trapping", trappingType: "clothingAccessories" },
|
||||
{name: "Pouches containing ritual components", type: "trapping", trappingType: "clothingAccessories" },
|
||||
{name: "Staff", type: "weapon", damage: "SB+2"},
|
||||
{name: "Dark Magic (Necromancy)", type: "talent"},
|
||||
{name: "Magie Noire (Nécromancie)", type: "talent"},
|
||||
]
|
||||
let items = [];
|
||||
|
||||
@@ -66,7 +66,7 @@ for (let talent of talents)
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.notifications.warn(`Impossible de trouver ${talent}`, {permanent : true})
|
||||
ui.notifications.warn(`Could not find ${talent}`, {permanent : true})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ for (let trapping of trappings)
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.notifications.warn(`Impossible de trouver ${trapping}`, {permanent : true})
|
||||
ui.notifications.warn(`Could not find ${trapping}`, {permanent : true})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ let filters = [
|
||||
}
|
||||
]
|
||||
|
||||
let petty = (await ItemDialog.createFromFilters(filters, 3, "Choisissez 3 Sorts de Magie Mineure")).map(i => i.toObject());
|
||||
let petty = (await ItemDialog.createFromFilters(filters, 3, {text: "Choisissez 3 Sorts Mineurs"})).map(i => i.toObject());
|
||||
|
||||
|
||||
filters = [
|
||||
@@ -112,7 +112,7 @@ filters = [
|
||||
}
|
||||
]
|
||||
|
||||
let arcane = (await ItemDialog.createFromFilters(filters, 2, "Choisissez 2 Sorts de Magie d'Arcane")).map(i => i.toObject());
|
||||
let arcane = (await ItemDialog.createFromFilters(filters, 2, {text : "Choisissez 2 Sorts d'Arcane"})).map(i => i.toObject());
|
||||
|
||||
filters = [
|
||||
{
|
||||
@@ -121,7 +121,7 @@ filters = [
|
||||
},
|
||||
{
|
||||
property : "name",
|
||||
value: /^((?!\().)*$/gm, // Remove all spells with parentheses (all arcane spells spells)
|
||||
value: /^((?!\().)*$/gm, // Remove tout spells with parentheses (tout arcane spells spells)
|
||||
regex: true
|
||||
},
|
||||
{
|
||||
@@ -130,7 +130,7 @@ filters = [
|
||||
}
|
||||
]
|
||||
|
||||
let necromancy = (await ItemDialog.createFromFilters(filters, 1, "Choisissez 1 Necromancy Spell")).map(i => i.toObject());
|
||||
let necromancy = (await ItemDialog.createFromFilters(filters, 1, {text : "Choisissez 1 Sort de Nécromancie"})).map(i => i.toObject());
|
||||
|
||||
arcane.forEach(i => {
|
||||
i.img = "modules/wfrp4e-core/icons/spells/necromancy.png";
|
||||
@@ -138,6 +138,6 @@ arcane.forEach(i => {
|
||||
})
|
||||
let spells = [...petty, ...necromancy, ...arcane];
|
||||
|
||||
updateObj.name = updateObj.name += " " + this.effect.name
|
||||
updateObj.name = updateObj.name += " " + this.effet.name
|
||||
await this.actor.update(updateObj)
|
||||
this.actor.createEmbeddedDocuments("Item", items.concat(spells));
|
||||
|
||||
Reference in New Issue
Block a user