packs entfernt

This commit is contained in:
alzer
2025-05-11 15:10:21 +02:00
parent 6dbb8d3ccc
commit 01b58b5c62
5 changed files with 186 additions and 134 deletions
File diff suppressed because one or more lines are too long
+142
View File
@@ -0,0 +1,142 @@
{
"title": "WFRP4e - Deutsche Übersetzung.",
"description": "Deutsche Übersetzung von Warhammer Fantasy Roleplay 4e.",
"authors": [
{
"name": "LeRatierBretonnien, dene_oma, ailura",
"flags": {}
}
],
"url": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de",
"version": "8.5.10",
"esmodules": [
"modules/babele-register.js",
"modules/addon-register.js",
"modules/import-stat-2.js",
"modules/loadScripts.js"
],
"styles": [
"patch-styles.css"
],
"languages": [
{
"lang": "de",
"name": "Deutsch (German)",
"path": "de.json",
"flags": {}
}
],
"packs": [
{
"label": "Geriche und Gasthäuser",
"type": "RollTable",
"name": "plats-dauberges",
"path": "packs/plats-dauberges",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "NONE",
"ASSISTANT": "OWNER"
}
},
{
"label": "Dons de Rhya",
"type": "JournalEntry",
"name": "dons-de-rhya",
"path": "packs/dons-de-rhya",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"label": "Aides de Jeu FR",
"type": "JournalEntry",
"name": "aides-de-jeu-fr",
"path": "packs/aides-de-jeu-fr",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"label": "Herbes & Potions",
"type": "Item",
"name": "antidotes-and-remedes",
"path": "packs/antidotes-and-remedes",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "NONE",
"ASSISTANT": "OWNER"
}
},
{
"label": "Tables des Traductions",
"type": "JournalEntry",
"name": "tables-des-traductions",
"path": "packs/tables-des-traductions",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"label": "Apothicarium",
"type": "JournalEntry",
"name": "apothicarium",
"path": "packs/apothicarium",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "NONE",
"ASSISTANT": "OWNER"
}
}
],
"packFolders": [
{
"name": "Module WFRP4 DE",
"sorting": "m",
"color": "#00435c",
"packs": [
"apothicarium",
"tables-des-traductions",
"antidotes-and-remedes",
"aides-de-jeu-fr",
"dons-de-rhya",
"plats-dauberges"
],
"folders": []
}
],
"manifest": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de/raw/branch/main/module.json",
"download": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de/archive/main.zip",
"id": "wh4-de-translation",
"compatibility": {
"minimum": "11",
"verified": "12"
},
"relationships": {
"systems": [
{
"id": "wfrp4e",
"type": "system",
"compatibility": {}
}
],
"requires": [
{
"id": "babele",
"type": "module",
"compatibility": {}
}
]
}
}
+1 -91
View File
@@ -8,7 +8,7 @@
}
],
"url": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de",
"version": "8.5.10",
"version": "8.5.11",
"esmodules": [
"modules/babele-register.js",
"modules/addon-register.js",
@@ -26,96 +26,6 @@
"flags": {}
}
],
"packs": [
{
"label": "Geriche und Gasthäuser",
"type": "RollTable",
"name": "plats-dauberges",
"path": "packs/plats-dauberges",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "NONE",
"ASSISTANT": "OWNER"
}
},
{
"label": "Dons de Rhya",
"type": "JournalEntry",
"name": "dons-de-rhya",
"path": "packs/dons-de-rhya",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"label": "Aides de Jeu FR",
"type": "JournalEntry",
"name": "aides-de-jeu-fr",
"path": "packs/aides-de-jeu-fr",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"label": "Herbes & Potions",
"type": "Item",
"name": "antidotes-and-remedes",
"path": "packs/antidotes-and-remedes",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "NONE",
"ASSISTANT": "OWNER"
}
},
{
"label": "Tables des Traductions",
"type": "JournalEntry",
"name": "tables-des-traductions",
"path": "packs/tables-des-traductions",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"label": "Apothicarium",
"type": "JournalEntry",
"name": "apothicarium",
"path": "packs/apothicarium",
"system": "wfrp4e",
"flags": {},
"ownership": {
"PLAYER": "NONE",
"ASSISTANT": "OWNER"
}
}
],
"packFolders": [
{
"name": "Module WFRP4 DE",
"sorting": "m",
"color": "#00435c",
"packs": [
"apothicarium",
"tables-des-traductions",
"antidotes-and-remedes",
"aides-de-jeu-fr",
"dons-de-rhya",
"plats-dauberges"
],
"folders": []
}
],
"manifest": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de/raw/branch/main/module.json",
"download": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de/archive/main.zip",
"id": "wh4-de-translation",
+38 -38
View File
@@ -88,39 +88,39 @@ const _patch_up_in_arms = () => {
/************************************************************************************/
/* Manages /auberge command */
const _manage_inn_roll = async (content, msg) => {
// Split input into arguments
let command = content.split(" ").map(function (item) {
return item.trim();
})
// const _manage_inn_roll = async (content, msg) => {
// // Split input into arguments
// let command = content.split(" ").map(function (item) {
// return item.trim();
// })
console.log("COMMANDES", command);
if (command[0] == "/gasthaus" && command[1]) {
msg["type"] = 0;
msg["rollMode"] = "gmroll";
var compendium = game.packs.get('wh4-de-translation.gerichte-gasthaeuser')
const pack = game.packs.get(compendium);
let rollList = await compendium.getDocuments()
//console.log("AUBERGE", rollList)
for (var i = 0; i < rollList.length; i++) {
var rollTab = rollList[i];
console.log("Got compendium...", rollList, rollTab.name);
if (rollTab.name.toLowerCase().includes(command[1].toLowerCase())) {
let my_rollTable;
await compendium.getDocument(rollTab._id).then(mytab => my_rollTable = mytab);
my_rollTable.draw({ rollMode: "gmroll" });
return false;
}
}
}
if (content.includes("/gasthaus")) {
msg["type"] = 0;
msg["rollMode"] = "gmroll";
msg["content"] = "Syntax : /gasthaus KEYWORD, mit KEYWORD unter:<br> BasisGetraenke, StarkeGetraenke, Desserts, AllgemeineGerichte, ExzellenteGerichte, MaritimeGerichte, MittelmaessigeGerichte, Qualitaetsgerichte, Flussgerichte. Verknüpfungen sind mit einem Teil des Namens möglich: Basis (entspricht BasisGetraenke) oder /gasthaus Mari (entspricht MaritimeGerichte) usw."
ChatMessage.create(msg);
return false;
}
}
// console.log("COMMANDES", command);
// if (command[0] == "/gasthaus" && command[1]) {
// msg["type"] = 0;
// msg["rollMode"] = "gmroll";
// var compendium = game.packs.get('wh4-de-translation.gerichte-gasthaeuser')
// const pack = game.packs.get(compendium);
// let rollList = await compendium.getDocuments()
// //console.log("AUBERGE", rollList)
// for (var i = 0; i < rollList.length; i++) {
// var rollTab = rollList[i];
// console.log("Got compendium...", rollList, rollTab.name);
// if (rollTab.name.toLowerCase().includes(command[1].toLowerCase())) {
// let my_rollTable;
// await compendium.getDocument(rollTab._id).then(mytab => my_rollTable = mytab);
// my_rollTable.draw({ rollMode: "gmroll" });
// return false;
// }
// }
// }
// if (content.includes("/gasthaus")) {
// msg["type"] = 0;
// msg["rollMode"] = "gmroll";
// msg["content"] = "Syntax : /gasthaus KEYWORD, mit KEYWORD unter:<br> BasisGetraenke, StarkeGetraenke, Desserts, AllgemeineGerichte, ExzellenteGerichte, MaritimeGerichte, MittelmaessigeGerichte, Qualitaetsgerichte, Flussgerichte. Verknüpfungen sind mit einem Teil des Namens möglich: Basis (entspricht BasisGetraenke) oder /gasthaus Mari (entspricht MaritimeGerichte) usw."
// ChatMessage.create(msg);
// return false;
// }
// }
/************************************************************************************/
let __eis_tables = {
@@ -379,13 +379,13 @@ const __add_actors_translation = () => {
/************************************************************************************/
/* Hook for specific command */
Hooks.on("chatMessage", (html, content, msg) => {
// Hooks.on("chatMessage", (html, content, msg) => {
if (content.toLowerCase().includes('gasthaus')) {
_manage_inn_roll(content, msg);
return false;
}
});
// if (content.toLowerCase().includes('gasthaus')) {
// _manage_inn_roll(content, msg);
// return false;
// }
// });
/************************************************************************************/
/* Additionnal hooks ready */
+4 -4
View File
@@ -5,7 +5,7 @@ let nightVision = (await fromUuid("Compendium.wfrp4e-core.items.FmHDbCOy3pH8yKhm
let tracker = (await fromUuid("Compendium.wfrp4e-core.items.ClOlztW6hH8rslbp")).toObject()
let weapon = (await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM")).toObject()
armour.name = "Armure (Caché)"
armour.name = "Armour (Hide)"
armour.system.specification.value = 2
bite.system.specification.value = 3
fear.system.specification.value = 2
@@ -26,12 +26,12 @@ let regenerate = (await fromUuid("Compendium.wfrp4e-core.items.SfUUdOGjdYpr3KSR"
let size = (await fromUuid("Compendium.wfrp4e-core.items.8slW8CJ2oVTxeQ6q")).toObject()//{Size (Large)}
blessed.system.specification.value = "Ulric"
size.system.specification.value = "Grande"
size.system.specification.value = "Large"
let optional = [belligerent, bestial, big, blessed, champion, die, fast, frenzy, immunity, regenerate, size];
let chosen = await ItemDialog.create(optional, "unlimited", "Choisissez un Trai optionnel");
let chosen = await ItemDialog.create(optional, "unlimited", "Choose Optional Traits");
items = items.concat(chosen || [])
this.script.scriptNotification(`Ajout de ${items.map(i => i.name).join(", ")}`);
this.script.scriptNotification(`Adding ${items.map(i => i.name).join(", ")}`);
this.actor.createEmbeddedDocuments("Item", items, {fromEffect : this.effect.id})