Ajout de la commande /voyage et grosse MAJK de la commande /auberge

This commit is contained in:
2026-01-07 15:04:49 +01:00
parent c8119601d8
commit f525b6c07a
1329 changed files with 24138 additions and 4397 deletions

View File

@@ -11,15 +11,15 @@ let characteristics = {
"wp" : 70,
"fel" : 20
}
let skills = ["Focalisation", "Calme", "Intimidation", "Langue (Magick)", "Langue (Nehekharan)", "Commandement", "Savoir (Magie)", "Perception"]
let skills = ["Focalisation", "Calme", "Intimidation", "Langue (Magick)", "Language (Nehekharan)", "Commandement", "Savoir (Magie)", "Perception"]
let skillAdvancements = [20, 30, 25, 30, 20, 20, 30, 20]
let talents = ["Harmonisation Aethyrique", "Magie des Arcanes", "Dur à cuire", "Diction Instinctive", "Sens de la Magie", "Menaçant", "Menaçant", "Magie Mineure", "Lire/Ecrire", "Seconde Vue", "Mage de Guerre"]
let trappings = ["Arme Simple"]
let talents = ["Harmonisation Aethyrique", "Magie des Arcanes (Domaine)", "Dur à cuire", "Diction Instinctive", "Perception de la magie", "Menaçant", "Menaçant", "Magie Mineure", "Lire/Écrire", "Seconde Vue", "Mage de guerre"]
let trappings = ["Arme simple"]
let specialItems = [
{name: "Robes", type: "trapping", trappingType: "clothingAccessories" },
{name: "Bourse contenant des composants de Rituels", type: "trapping", trappingType: "clothingAccessories" },
{name: "Bâton", type: "weapon", damage: "SB+2"},
{name: "Magie sombre (Necromancie)", type: "talent"},
{name: "Mouldering Robes", type: "trapping", trappingType: "clothingAccessories" },
{name: "Pouches containing ritual components", type: "trapping", trappingType: "clothingAccessories" },
{name: "Staff", type: "weapon", damage: "SB+2"},
{name: "Magie Noire (Nécromancie)", type: "talent"},
]
let items = [];
@@ -33,11 +33,11 @@ for (let ch in characteristics)
for (let item of specialItems) {
let newItem
if (item.type == "weapon") {
newItem = new ItemWfrp4e({ name: item.name, type: item.type, system: { equipped: true, damage: {value: item.damage}} })
newItem = new ItemWFRP4e({ name: item.name, type: item.type, system: { equipped: true, damage: {value: item.damage}} })
} else if (item.type == "trapping") {
newItem = new ItemWfrp4e({ img: "systems/wfrp4e/icons/blank.png", name: item.name, type: item.type, system: { worn: true, trappingType: { value: item.trappingType} } } )
newItem = new ItemWFRP4e({ img: "systems/wfrp4e/icons/blank.png", name: item.name, type: item.type, system: { worn: true, trappingType: { value: item.trappingType} } } )
} else {
newItem = new ItemWfrp4e({ img: "systems/wfrp4e/icons/blank.png", name: item.name, type: item.type })
newItem = new ItemWFRP4e({ img: "systems/wfrp4e/icons/blank.png", name: item.name, type: item.type })
}
items.push(newItem.toObject())
}
@@ -67,7 +67,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})
}
}
@@ -84,11 +84,11 @@ for (let trapping of trappings)
}
else
{
ui.notifications.warn(`Impossible de trouver ${trapping}`, {permanent : true})
ui.notifications.warn(`Could not find ${trapping}`, {permanent : true})
}
}
updateObj.name = updateObj.name += " " + this.effect.name
updateObj.name = updateObj.name += " " + this.effet.name
await this.actor.update(updateObj)
console.log(">>>>>>><", items)