Skip to content

Commit

Permalink
5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Plushtoast committed Sep 8, 2023
1 parent 4a722d7 commit 8607dca
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bundle/dsa5.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@
"playerVisibility": "Sichtbarkeit für Spieler"
},
"Migrakel": {
"Migration": "Actor Migration",
"Migration": "Akteur Migration",
"migrationDone": "Migration abgeschlossen",
"spells": "<b>Aktualisiere</b> Effekte und Effektformeln von allen Zaubern, Liturgien, Ritualen und Zeremonien oder <b>Ersetze alle</b> Werte. ALLE MANUELLEN MODIFIKATIONEN WERDEN ÜBERSCHRIEBEN!",
"spellsShort": "Zauber migrieren",
Expand Down
28 changes: 25 additions & 3 deletions lazy/patchhtml/news_de_5.1.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,31 @@ <h2>Die Schwarze Katze - Einsteigerbox</h2>
<div class="row-section">
<div class="col sixty">
<p>
Die Einsteigerbox begleitet euch bei ersten Schritten in der Welt von Die Schwarze Katze. Mit 5
vorgefertigten Helden, ausführlichem Tutorial, zwei weiteren Abenteuern, Tokens und Kartenmaterial.
Einfach runterladen und losspielen!
Erlebe die nächtliche Welt der Katzen in der "Die Schwarze Katze - Einsteigerbox Die Drachen von
Wolldorf" auf Foundry VTT! Schlüpfe in deine Stiefel, setze deinen Hut auf und stecke deine Nadelklinge
in den Gürtel, denn das Abenteuer ruft. In Wolldorf warten Schätze und Drachen darauf, von
abenteuerlustigen Katzen entdeckt zu werden!
</p>
<p>
Diese Einsteigerbox ist perfekt für Kinder, Erwachsene, Rollenspielneulinge und erfahrene Spieler
gleichermaßen. Alles, was du brauchst, um in die Welt von "Die Schwarze Katze" einzutauchen, findest du
in diesem Modul: fünf vorgefertigte Helden, ein Tutorial, zwei zusätzliche Abenteuer, vorangelegte
Akteure und wunderschön exklusiv illustrierte Karten. Einfach Foundry öffnen und ohne Vorkenntnisse
losspielen.
</p>
<p>
Das Modul enthält:
<ul class="dsalist">
<li>Fünf vorgefertigte Helden </li>

<li>Karte von Wolldorf </li>

<li>Vorangelegte Akteure und Tokens </li>
</ul>
Die Einsteigerbox begleitet euch bei ersten Schritten in der Welt von Die Schwarze Katze. Mit 5
vorgefertigten Helden, ausführlichem Tutorial, zwei weiteren Abenteuern, Tokens und Kartenmaterial. Einfach
runterladen und losspielen!

</p>
</div>
<div class="col fourty">
Expand Down
1 change: 1 addition & 0 deletions modules/hooks/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function setupConfiguration() {
default: 24,
type: Number
})

game.settings.register("dsa5", "journalFontSizeIndex", {
name: "journalFontSizeIndex",
hint: "journalFontSizeIndex",
Expand Down
2 changes: 1 addition & 1 deletion modules/system/itemlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ export default class DSA5ItemLibrary extends Application {
SceneNavigation.displayProgressBar({label: game.i18n.format('Library.loading', {item: ""}), pct: 0})
const target = $(this._element).find(`*[data-tab="${category}"]`)
this.showLoading(target, category)
const packs = game.packs.filter(p => p.documentName == document && (game.user.isGM || !p.private))
const packs = game.packs.filter(p => p.documentName == document && (game.user.isGM || !p.private) && !p.metadata.label.startsWith("WZ-"))
const percentage = 100 / (packs.length + 1)
let count = percentage
const actorFields = ["name", "system.type", "system.description.value", "img"]
Expand Down
33 changes: 22 additions & 11 deletions modules/system/migrakel.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ export default class Migrakel {
}
await actor.createEmbeddedDocuments("Item", itemsToCreate);
await actor.deleteEmbeddedDocuments("Item", itemsToDelete);
ui.notifications.notify(game.i18n.localize("Migrakel.migrationDone"));

if(!Migrakel.silent)
ui.notifications.notify(game.i18n.localize("Migrakel.migrationDone"));
}

static async updateSpellsAndLiturgies(actor) {
const res = await this.showDialog(game.i18n.localize("Migrakel.spells"), true)
static async updateSpellsAndLiturgies(actor, preChoice = undefined) {
const res = preChoice ?? await this.showDialog(game.i18n.localize("Migrakel.spells"), true)
const condition = (x) => {
return ["spell", "liturgy", "ritual", "ceremony", "spellextension"].includes(x.type);
};
Expand All @@ -145,10 +147,12 @@ export default class Migrakel {
};
await this.updateVals(actor, condition, updator);
}
return res
}

static async updateSpecialAbilities(actor) {
if (await this.showDialog(game.i18n.localize("Migrakel.abilities"))) {
static async updateSpecialAbilities(actor, preChoice = undefined) {
const res = preChoice ?? await this.showDialog(game.i18n.localize("Migrakel.abilities"))
if (res) {
const updator = (find) => {
let update = {
system: { effect: { value: find.system.effect.value } },
Expand Down Expand Up @@ -190,10 +194,12 @@ export default class Migrakel {
};
await this.updateVals(actor, condition, updator);
}
return res
}

static async updateCombatskills(actor) {
if (await this.showDialog(game.i18n.localize("Migrakel.cskills"))) {
static async updateCombatskills(actor, preChoice = undefined) {
const res = preChoice ?? await this.showDialog(game.i18n.localize("Migrakel.cskills"))
if (res) {
const updator = (find) => {
return {
effects: find.effects.toObject(),
Expand All @@ -204,10 +210,12 @@ export default class Migrakel {
};
await this.updateVals(actor, condition, updator);
}
return res
}

static async updateSkills(actor) {
if (await this.showDialog(game.i18n.localize("Migrakel.skills"))) {
static async updateSkills(actor, preChoice = undefined) {
const res = preChoice ?? await this.showDialog(game.i18n.localize("Migrakel.skills"))
if (res) {
const condition = (x) => {
return ["skill"].includes(x.type);
};
Expand All @@ -218,6 +226,7 @@ export default class Migrakel {
};
await this.updateVals(actor, condition, updator);
}
return res
}

static updateMacro(update, find) {
Expand All @@ -229,8 +238,9 @@ export default class Migrakel {
}
}

static async updateGear(actor) {
if (await this.showDialog(game.i18n.localize("Migrakel.gear"))) {
static async updateGear(actor, preChoice = undefined) {
const choice = preChoice ?? await this.showDialog(game.i18n.localize("Migrakel.gear"))
if (choice) {
let condition = (x) => {
return [
"meleeweapon",
Expand Down Expand Up @@ -274,5 +284,6 @@ export default class Migrakel {
};
await this.updateVals(actor, condition, updator);
}
return choice
}
}
8 changes: 4 additions & 4 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "dsa5",
"title": "Das Schwarze Auge/The Dark Eye (5th Edition)",
"description": "The \"Das Schwarze Auge\" system for Foundry VTT. Includes all relevant mechanisms to play in the wonderous world of Aventuria and Das Schwarze Auge/The Dark Eye.",
"version": "5.1.0",
"version": "5.1.1",
"authors": [{
"name": "Plushtoast"
},{
Expand Down Expand Up @@ -78,15 +78,15 @@
"primaryTokenAttribute": "status.wounds",
"secondaryTokenAttribute": "status.astralenergy",
"compatibility": {
"minimum": "11.296",
"minimum": "11.306",
"verified": "11",
"maximum": "11"
},
"url": "https://github.com/Plushtoast/dsa5-foundryVTT",
"manifest": "https://raw.githubusercontent.com/Plushtoast/dsa5-foundryVTT/foundry11/system.json",
"download": "https://github.com/Plushtoast/dsa5-foundryVTT/releases/download/5.1.0/dsa5-foundryVTT-5.1.0.zip",
"download": "https://github.com/Plushtoast/dsa5-foundryVTT/releases/download/5.1.1/dsa5-foundryVTT-5.1.1.zip",
"name": "dsa5",
"minimumCoreVersion": "11.296",
"minimumCoreVersion": "11.306",
"packFolders": [
{
"name": "Item",
Expand Down

0 comments on commit 8607dca

Please sign in to comment.