Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
172e3a6c37 | ||
|
|
490403d958 |
File diff suppressed because one or more lines are too long
@@ -8662,7 +8662,7 @@
|
||||
"Criminal": {
|
||||
"description": "<p>Du bist ein aktiver Krimineller, der seinen Lebensunterhalt aus illegalen Quellen bezieht, und dies ist durchaus etwas, auf das du stolz bist. Was deine Einkünfte betrifft, sei es durch Geld verdienen oder eine Einnahmen-Unternehmung, verwendest du zusätzlich die folgende Tabelle:</p>\n<p> </p>\n<div>\n<table title=\"\" border=\"1\" summary=\"\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<p>karrierestufe</p>\n</td>\n<td>\n<p>Bonus-Geld pro Stufe des Talentes</p>\n</td>\n</tr>\n<tr>\n<td>\n<p>1</p>\n</td>\n<td>\n<p>+2d10 Messinggroschen</p>\n</td>\n</tr>\n<tr>\n<td>\n<p>2</p>\n</td>\n<td>\n<p>+1d10 Silberschillinge</p>\n</td>\n</tr>\n<tr>\n<td>\n<p>3 </p>\n</td>\n<td>\n<p>+2d10 Silberschillinge</p>\n</td>\n</tr>\n<tr>\n<td>\n<p>4</p>\n</td>\n<td>\n<p>+1 Goldkrone</p>\n</td>\n</tr>\n</tbody>\n</table>\n</div>\n<p> </p>\n<p>Wegen deiner offensichtlichen Kriminalität behandeln dich andere, als hättest du einen geringeren Status als sie, sofern sie nicht ebenfalls das Talent Kriminell besitzen. In diesem Fall gilt dein normaler Status. Vielleicht hast du Banden-Tätowierungen, siehst zwielichtig oder einfach nur etwas ungeschliffen aus – es ist deine Wahl, woran Fremde dich als Kriminellen erkennen. Die örtlichen Gesetzeshüter finden dich stets verdächtig und misstrauen dir, was immer schlimmer wird, je häufiger du dieses Talent erwirbst, wobei die genauen Folgen vom SL abhängen. Gesetzesbrecher ohne das Talent Kriminell erzielen zwar deutlich geringere Einkünfte, sind dafür aber unauffälliger und können ihren Status halten. Mit dem Einverständnis des SL kannst du EP ausgeben, um Stufen des Talents Kriminell wieder zu entfernen, was die gleichen EP-Kosten hat wie deren Erwerb.</p>",
|
||||
"id": "Criminal",
|
||||
"name": "Kniminell",
|
||||
"name": "Kriminell",
|
||||
"tests": "",
|
||||
"effects": [
|
||||
{
|
||||
@@ -8686,7 +8686,7 @@
|
||||
}
|
||||
},
|
||||
"icon": "modules/wfrp4e-core/icons/talents/criminal.png",
|
||||
"label": "Kniminell",
|
||||
"label": "Kriminell",
|
||||
"tint": "",
|
||||
"transfer": true
|
||||
}
|
||||
@@ -16760,7 +16760,7 @@
|
||||
"Physician's Apprentice": {
|
||||
"description": "<p>@UUID[Compendium.wfrp4e-core.journals.wczCPcuHT4VQDLpL.JournalEntryPage.Mn7w0SSGfN7cu7gQ]{Medicus}</p>",
|
||||
"id": "Physician's Apprentice",
|
||||
"name": "Medicus-Lerhrling",
|
||||
"name": "Medicus-Lehrling",
|
||||
"trappings": [
|
||||
"Verbände",
|
||||
"Heiltrank"
|
||||
@@ -18182,6 +18182,6 @@
|
||||
"path": "system.talents"
|
||||
},
|
||||
"tests": "system.tests.value",
|
||||
"trappings": "system.trappings"
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" }
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -33,7 +33,7 @@
|
||||
"path": "system.damage.value",
|
||||
"converter": "spells_duration_range_target_damage"
|
||||
},
|
||||
"trappings": "system.trappings",
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" },
|
||||
"gmdescription": "system.gmdescription.value",
|
||||
"durationValue": "system.duration.value",
|
||||
"durationUnit": "system.duration.unit",
|
||||
|
||||
@@ -799,6 +799,6 @@
|
||||
"converter": "career_talents",
|
||||
"path": "system.talents"
|
||||
},
|
||||
"trappings": "system.trappings"
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"mapping": {
|
||||
"description": "system.description.value",
|
||||
"trappings": "system.trappings",
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" },
|
||||
"class": {
|
||||
"path": "system.class.value",
|
||||
"converter": "generic_localization"
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"mapping": {
|
||||
"description": "system.description.value",
|
||||
"trappings": "system.trappings",
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" },
|
||||
"class": {
|
||||
"path": "system.class.value",
|
||||
"converter": "generic_localization"
|
||||
|
||||
@@ -84,6 +84,6 @@
|
||||
"path": "system.talents"
|
||||
},
|
||||
"tests": "system.tests.value",
|
||||
"trappings": "system.trappings"
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" }
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
},
|
||||
"mapping": {
|
||||
"description": "system.description.value",
|
||||
"trappings": "system.trappings",
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" },
|
||||
"class": {
|
||||
"path": "system.class.value",
|
||||
"converter": "generic_localization"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"converter": "generic_localization"
|
||||
},
|
||||
"career_careergroup": "system.careergroup.value",
|
||||
"trappings": "system.trappings"
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" }
|
||||
},
|
||||
"entries": {
|
||||
"Ahlspiess": {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
},
|
||||
"mapping": {
|
||||
"description": "system.description.value",
|
||||
"trappings": "system.trappings",
|
||||
"trappings": { "converter": "static_array", "path": "system.trappings" },
|
||||
"class": {
|
||||
"path": "system.class.value",
|
||||
"converter": "generic_localization"
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
}
|
||||
],
|
||||
"url": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de",
|
||||
"version": "8.7.05",
|
||||
"version": "8.7.07",
|
||||
"esmodules": [
|
||||
"modules/babele-register.js",
|
||||
"modules/addon-register.js",
|
||||
|
||||
@@ -207,9 +207,13 @@ Hooks.once('babele.init', () => {
|
||||
// before giving up - a career group's defining career may only exist in one of them,
|
||||
// so returning after the first pack silently left it untranslated whenever that pack
|
||||
// happened not to be the one with the match (e.g. "Spy" only exists in wfrp4e-core).
|
||||
// IMPORTANT: game.babele.translate() returns the ORIGINAL stub object unchanged when a
|
||||
// pack has no matching dictionary entry - it never returns null/undefined - so `newName`
|
||||
// is truthy even on a miss (it's just `value` again). Must compare against `value` to
|
||||
// detect an actual match, otherwise the very first pack always "wins" by default.
|
||||
for (let compData of validCompendiums) {
|
||||
let newName = game.babele.translate(compData.metadata.id, { name: value })?.name;
|
||||
if (newName) return newName;
|
||||
if (newName && newName !== value) return newName;
|
||||
}
|
||||
ui.notifications.error("Das Übersetzen der Karriere " + value + " ist nicht möglich. Sie ist wahrscheinlich nicht übersetzt.", { permanent: true });
|
||||
return value;
|
||||
@@ -579,6 +583,15 @@ Hooks.once('babele.init', () => {
|
||||
// Search back in careers the translated name of the groupe (as it is the name of the level career itself)
|
||||
"career_careergroup": career_careergroup_fn,
|
||||
|
||||
// Babele 2.9+'s PrimitiveConverter (used for plain string-path mappings) rejects any
|
||||
// translation whose value is an array/object as "structural" and silently skips the
|
||||
// field, leaving the English original in place - this broke "trappings" (an array of
|
||||
// strings) across every *.items.json career pack once Babele was updated past 2.6.x.
|
||||
// Routing it through a converter instead sidesteps that check entirely. Converters get
|
||||
// called as (originalValue, translation, ...) - we want the dictionary's own translated
|
||||
// array, not the original English one, so we return the 2nd argument, not the 1st.
|
||||
"static_array": (value, translation) => translation,
|
||||
|
||||
"mutations_modifier": (value) => { // This is really UGLYYYY i know, but i started like this and discovered afterward that many strings were not easy to automate... Sorry :)
|
||||
//console.log("Parsing mutation :", value);
|
||||
if (!value) return;
|
||||
|
||||
Reference in New Issue
Block a user