feat: implement core Foundry VTT system framework, including actor/item data models, spellcasting logic, dice mechanics, and automation scripts

This commit is contained in:
Octoturge
2026-06-14 10:12:47 +02:00
parent fb42c6e8cc
commit 624fe2ee1a
70 changed files with 1645 additions and 1146 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
// HbM Group Cast Helper sum mana of controlled token actors (potential co-casters).
// HbM Group Cast Helper - sum mana of controlled token actors (potential co-casters).
const tokens = canvas.tokens.controlled;
if (tokens.length < 2) return ui.notifications.warn('Zaznacz co najmniej 2 tokeny współrzucających.');
const lines = [];
@@ -11,7 +11,7 @@ for (const t of tokens) {
const magic = a.system.attributes?.magic?.value ?? 0;
totalMana += mana;
totalPool += magic;
lines.push(`<li><strong>${a.name}</strong> Mana ${mana}, Magia ${magic}</li>`);
lines.push(`<li><strong>${a.name}</strong> - Mana ${mana}, Magia ${magic}</li>`);
}
const html = `
<div class="hbm-group-cast">