Angriffe, Zauber & Merkmale
Bug fix: Zauber konnten nicht Sortiert werden
This commit is contained in:
1 parent
2045acc269
commit
f6d41483c8
17 files changed
+451
-638
No files matched your search
+11
-1
@@ -176,6 +176,15 @@
|
|||||||
"würfe": "Kompetenz Würfe",
|
"würfe": "Kompetenz Würfe",
|
||||||
"hinzufügen": "Kompetenz hinzufügen",
|
"hinzufügen": "Kompetenz hinzufügen",
|
||||||
"kompetenz": "Kompetenz"
|
"kompetenz": "Kompetenz"
|
||||||
|
},
|
||||||
|
"angriff": {
|
||||||
|
"singular": "Angriff",
|
||||||
|
"plural": "Angriffe"
|
||||||
|
},
|
||||||
|
"merkmal": {
|
||||||
|
"singular": "Merkmal",
|
||||||
|
"plural": "Merkmale",
|
||||||
|
"hinzufügen": "Merkmal hinzufügen"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"RollList": {
|
"RollList": {
|
||||||
@@ -213,7 +222,8 @@
|
|||||||
"makel": "Makel",
|
"makel": "Makel",
|
||||||
"schicksalsgabe": "Schicksalsgabe",
|
"schicksalsgabe": "Schicksalsgabe",
|
||||||
"legende": "Legende",
|
"legende": "Legende",
|
||||||
"geld": "Geld"
|
"geld": "Geld",
|
||||||
|
"merkmal": "Merkmal"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -46,18 +46,21 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
_attachPartListeners(partId, html, bubble) {
|
_attachPartListeners(partId, html, bubble) {
|
||||||
super._attachPartListeners(partId, html, bubble);
|
super._attachPartListeners(partId, html, bubble);
|
||||||
|
|
||||||
const collapsible = html.querySelectorAll("div[data-action=collapsible]");
|
const collapsible = html.querySelectorAll("[data-action=collapsible]");
|
||||||
if (collapsible) {
|
if (collapsible) {
|
||||||
collapsible.forEach((node) => {
|
collapsible.forEach((node) => {
|
||||||
node.addEventListener(
|
node.addEventListener(
|
||||||
"click",
|
"click",
|
||||||
function (e) {
|
function (e) {
|
||||||
e = window.event || e;
|
e = window.event || e;
|
||||||
|
|
||||||
if (this === e.target) {
|
if (this === e.target) {
|
||||||
node.classList.toggle("active");
|
const header = node.closest("div[data-action=collapsible]");
|
||||||
var content = node.nextElementSibling;
|
header.classList.toggle("active");
|
||||||
|
const content = header.nextElementSibling;
|
||||||
content.classList.toggle("active");
|
content.classList.toggle("active");
|
||||||
node.getElementsByTagName("i")[0].classList.toggle("fa-compress");
|
const icon = node.closest(".fa-expand") || node.getElementsByTagName("i")[0];
|
||||||
|
icon.classList.toggle("fa-compress");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ capture: true },
|
{ capture: true },
|
||||||
@@ -508,7 +511,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
|||||||
*/
|
*/
|
||||||
async _onDropItem(event, data) {
|
async _onDropItem(event, data) {
|
||||||
if (!this.actor.isOwner) return false;
|
if (!this.actor.isOwner) return false;
|
||||||
|
|
||||||
if (this.actor.items.get(data.itemId)) return this._onSortItem(event, data);
|
if (this.actor.items.get(data.itemId)) return this._onSortItem(event, data);
|
||||||
|
|
||||||
const item = await Item.implementation.fromDropData(data);
|
const item = await Item.implementation.fromDropData(data);
|
||||||
|
|||||||
@@ -114,6 +114,9 @@ export class M6CharacterSheet extends M6ActorSheet {
|
|||||||
flags: this.actor.flags,
|
flags: this.actor.flags,
|
||||||
config: CONFIG,
|
config: CONFIG,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
context.itemTypes = await super._getItems();
|
||||||
|
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,12 +138,10 @@ export class M6CharacterSheet extends M6ActorSheet {
|
|||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
break;
|
break;
|
||||||
case "items":
|
case "items":
|
||||||
context.itemTypes = await super._getItems();
|
|
||||||
context.gewicht = await prepWeight(this.actor);
|
context.gewicht = await prepWeight(this.actor);
|
||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
break;
|
break;
|
||||||
case "zauber":
|
case "zauber":
|
||||||
context.zauber = await this._getZauber();
|
|
||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
break;
|
break;
|
||||||
case "hintergrund":
|
case "hintergrund":
|
||||||
|
|||||||
@@ -1,19 +1,16 @@
|
|||||||
export async function prepArmor(actor) {
|
export async function prepArmor(actor) {
|
||||||
const actorData = actor.system;
|
const actorData = actor.system;
|
||||||
// 1. Basis-Wert festlegen
|
|
||||||
let baseRüstwert = actorData.rüstwert.base || 0;
|
let baseRüstwert = actorData.rüstwert.base || 0;
|
||||||
// 2. Ausgerüstete Rüstung finden und addieren
|
|
||||||
const equippedMainArmor = actor.items.filter(
|
const equippedMainArmor = actor.items.filter(
|
||||||
(i) => i.type === "armor" && i.system.equipped && !i.system.zusätzlich
|
(i) => i.type === "armor" && i.system.equipped && !i.system.zusätzlich,
|
||||||
);
|
);
|
||||||
const equippedAddArmor = actor.items.filter(
|
const equippedAddArmor = actor.items.filter(
|
||||||
(i) => i.type === "armor" && i.system.equipped && i.system.zusätzlich
|
(i) => i.type === "armor" && i.system.equipped && i.system.zusätzlich,
|
||||||
);
|
);
|
||||||
let armorBonus = Math.max(...equippedMainArmor.map((x) => x.system.rüstwert), 0);
|
let armorBonus = Math.max(...equippedMainArmor.map((x) => x.system.rüstwert), 0);
|
||||||
for (let armor of equippedAddArmor) {
|
for (let armor of equippedAddArmor) {
|
||||||
armorBonus += armor.system.rüstwert;
|
armorBonus += armor.system.rüstwert;
|
||||||
}
|
}
|
||||||
// 3. Finalen Standard-Wert berechnen
|
|
||||||
actorData.rüstwert.mod = baseRüstwert + armorBonus;
|
actorData.rüstwert.mod = baseRüstwert + armorBonus;
|
||||||
|
|
||||||
const armors = [];
|
const armors = [];
|
||||||
@@ -25,7 +22,7 @@ export async function prepArmor(actor) {
|
|||||||
name: armor.name,
|
name: armor.name,
|
||||||
rüstwert: armor.system.rüstwert,
|
rüstwert: armor.system.rüstwert,
|
||||||
img: armor.img,
|
img: armor.img,
|
||||||
id: armor.id
|
id: armor.id,
|
||||||
};
|
};
|
||||||
armors.push(w);
|
armors.push(w);
|
||||||
});
|
});
|
||||||
@@ -46,7 +43,7 @@ export async function prepWeapons(actor) {
|
|||||||
img: weapon.img,
|
img: weapon.img,
|
||||||
skillPath: weapon.system.fertigkeit,
|
skillPath: weapon.system.fertigkeit,
|
||||||
path: weapon.system.fertigkeit,
|
path: weapon.system.fertigkeit,
|
||||||
id: weapon.id
|
id: weapon.id,
|
||||||
};
|
};
|
||||||
weapons.push(w);
|
weapons.push(w);
|
||||||
});
|
});
|
||||||
@@ -66,7 +63,7 @@ export async function prepSpells(actor) {
|
|||||||
img: spell.img,
|
img: spell.img,
|
||||||
skillPath: "system.skills.magie.zaubern",
|
skillPath: "system.skills.magie.zaubern",
|
||||||
path: "Zaubern",
|
path: "Zaubern",
|
||||||
id: spell.id
|
id: spell.id,
|
||||||
};
|
};
|
||||||
spells.push(w);
|
spells.push(w);
|
||||||
});
|
});
|
||||||
@@ -77,12 +74,12 @@ export async function prepWeight(actor) {
|
|||||||
const items = actor.items.filter((x) => x.system.gewicht && !x.system.equipped);
|
const items = actor.items.filter((x) => x.system.gewicht && !x.system.equipped);
|
||||||
let gewicht = items.reduce(
|
let gewicht = items.reduce(
|
||||||
(accumulator, item) => accumulator + item.system.gewicht * item.system.anzahl,
|
(accumulator, item) => accumulator + item.system.gewicht * item.system.anzahl,
|
||||||
0
|
0,
|
||||||
);
|
);
|
||||||
|
|
||||||
let traglast = Math.max(actor.system.skills.körper.athletik.value, 10);
|
let traglast = Math.max(actor.system.skills.körper.athletik.value, 10);
|
||||||
return {
|
return {
|
||||||
traglast,
|
traglast,
|
||||||
gewicht
|
gewicht,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
export async function prepArmor(actor) {
|
||||||
|
const actorData = actor.system;
|
||||||
|
let baseRüstwert = actorData.rüstwert.base || 0;
|
||||||
|
const equippedMainArmor = actor.items.filter(
|
||||||
|
(i) => i.type === "armor" && i.system.equipped && !i.system.zusätzlich,
|
||||||
|
);
|
||||||
|
const equippedAddArmor = actor.items.filter(
|
||||||
|
(i) => i.type === "armor" && i.system.equipped && i.system.zusätzlich,
|
||||||
|
);
|
||||||
|
let armorBonus = Math.max(...equippedMainArmor.map((x) => x.system.rüstwert), 0);
|
||||||
|
for (let armor of equippedAddArmor) {
|
||||||
|
armorBonus += armor.system.rüstwert;
|
||||||
|
}
|
||||||
|
actorData.rüstwert.mod = baseRüstwert + armorBonus;
|
||||||
|
|
||||||
|
const armors = [];
|
||||||
|
const einschränkungen = [];
|
||||||
|
[...equippedMainArmor, ...equippedAddArmor]?.forEach((armor) => {
|
||||||
|
einschränkungen.push(...armor.system.merkmale);
|
||||||
|
|
||||||
|
const w = {
|
||||||
|
name: armor.name,
|
||||||
|
rüstwert: armor.system.rüstwert,
|
||||||
|
img: armor.img,
|
||||||
|
id: armor.id,
|
||||||
|
};
|
||||||
|
armors.push(w);
|
||||||
|
});
|
||||||
|
|
||||||
|
return { armors: armors, einschränkungen: [...new Set(einschränkungen)] };
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function prepWeapons(actor) {
|
||||||
|
const weaponItems = actor.items.filter((x) => x.type === "weapon" && x.system.equipped);
|
||||||
|
const weapons = [];
|
||||||
|
weaponItems.forEach((weapon) => {
|
||||||
|
const skillValue =
|
||||||
|
actor.system.fertigkeiten.find((x) => x.name === weapon.fertigkeit)?.wurf ||
|
||||||
|
Math.floor((actor.system.kompetenz + 8) / 2);
|
||||||
|
const w = {
|
||||||
|
name: weapon.name,
|
||||||
|
skillValue,
|
||||||
|
schaden: weapon.system.schaden,
|
||||||
|
img: weapon.img,
|
||||||
|
id: weapon.id,
|
||||||
|
};
|
||||||
|
weapons.push(w);
|
||||||
|
});
|
||||||
|
return weapons;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function prepSpells(actor) {
|
||||||
|
const spellItems = actor.items.filter((x) => x.type === "zauber" && x.system.equipped);
|
||||||
|
const spells = [];
|
||||||
|
const skillValue =
|
||||||
|
actor.system.fertigkeiten.find((x) => x.name === "Zaubern")?.wurf ||
|
||||||
|
Math.floor((actor.system.kompetenz + 8) / 2);
|
||||||
|
spellItems.forEach((spell) => {
|
||||||
|
const w = {
|
||||||
|
name: spell.name,
|
||||||
|
skillValue,
|
||||||
|
schaden: spell.system.eigenschaften.schaden,
|
||||||
|
img: spell.img,
|
||||||
|
path: "Zaubern",
|
||||||
|
id: spell.id,
|
||||||
|
};
|
||||||
|
spells.push(w);
|
||||||
|
});
|
||||||
|
return spells;
|
||||||
|
}
|
||||||
@@ -267,8 +267,8 @@ export async function rollWeapon(event, target) {
|
|||||||
export async function rollDialog(rollDialogRequest) {
|
export async function rollDialog(rollDialogRequest) {
|
||||||
// Assamble dialog depending on roll type
|
// Assamble dialog depending on roll type
|
||||||
let label = rollDialogRequest.name;
|
let label = rollDialogRequest.name;
|
||||||
let skillValue = rollDialogRequest.skill.value || rollDialogRequest.skill;
|
let skillValue = rollDialogRequest.skill?.value || rollDialogRequest.skill;
|
||||||
let bonuses = rollDialogRequest.skill.bonuses || [];
|
let bonuses = rollDialogRequest.skill?.bonuses || [];
|
||||||
let damageRoll = rollDialogRequest.damageRoll || "";
|
let damageRoll = rollDialogRequest.damageRoll || "";
|
||||||
let preSelectedSpez = rollDialogRequest.preSelectedSpez || "";
|
let preSelectedSpez = rollDialogRequest.preSelectedSpez || "";
|
||||||
let vorteil = 0;
|
let vorteil = 0;
|
||||||
|
|||||||
+58
-34
@@ -1,7 +1,7 @@
|
|||||||
import { systemPath } from "../constants.mjs";
|
import { systemPath } from "../constants.mjs";
|
||||||
import { prepareActiveEffectCategories } from "../helpers/utils.mjs";
|
import { prepareActiveEffectCategories } from "../helpers/utils.mjs";
|
||||||
import { addSpezialisierung, editSepzialisierung } from "./components/spezialisierung-actions.mjs";
|
import { addSpezialisierung, editSepzialisierung } from "./components/spezialisierung-actions.mjs";
|
||||||
import { prepArmor, prepWeapons, prepWeight, prepSpells } from "./components/character-prep.mjs";
|
import { prepArmor, prepWeapons, prepWeight, prepSpells } from "./components/nsc-prep.mjs";
|
||||||
import { rollSpell, rollWeapon, rollSkill, rollDialog } from "./components/roll-actions.mjs";
|
import { rollSpell, rollWeapon, rollSkill, rollDialog } from "./components/roll-actions.mjs";
|
||||||
import { M6ActorSheet } from "./actor-sheet.mjs";
|
import { M6ActorSheet } from "./actor-sheet.mjs";
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
...super.DEFAULT_OPTIONS.actions, // Kopiert alle bestehenden Actions aus M6ActorSheet
|
...super.DEFAULT_OPTIONS.actions, // Kopiert alle bestehenden Actions aus M6ActorSheet
|
||||||
cycleEquip: this.#cycleEquip,
|
cycleEquip: this.#cycleEquip,
|
||||||
rollKompetenz: this.#rollKompetenz,
|
rollKompetenz: this.#rollKompetenz,
|
||||||
|
// rollWeapon: this.#rollWeapon,
|
||||||
rollSpell: rollSpell,
|
rollSpell: rollSpell,
|
||||||
cycleEquip: this.#cycleEquip,
|
cycleEquip: this.#cycleEquip,
|
||||||
addKompetenz: this.#addKompetenz,
|
addKompetenz: this.#addKompetenz,
|
||||||
@@ -75,15 +76,15 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
scrollable: [""],
|
scrollable: [""],
|
||||||
},
|
},
|
||||||
zauber: {
|
zauber: {
|
||||||
template: systemPath("templates/nsc/zauber.hbs"),
|
template: systemPath("templates/actor/zauber.hbs"),
|
||||||
scrollable: [""],
|
scrollable: [""],
|
||||||
},
|
},
|
||||||
items: {
|
items: {
|
||||||
template: systemPath("templates/nsc/items.hbs"),
|
template: systemPath("templates/actor/items.hbs"),
|
||||||
scrollable: [""],
|
scrollable: [""],
|
||||||
},
|
},
|
||||||
biographie: {
|
biographie: {
|
||||||
template: systemPath("templates/nsc/biographie.hbs"),
|
template: systemPath("templates/actor/biographie.hbs"),
|
||||||
scrollable: [""],
|
scrollable: [""],
|
||||||
},
|
},
|
||||||
// effects: {
|
// effects: {
|
||||||
@@ -116,6 +117,10 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
switch (partId) {
|
switch (partId) {
|
||||||
case "eigenschaften":
|
case "eigenschaften":
|
||||||
context.kompetenzWürfe = await this.calcKompetenzWürfe();
|
context.kompetenzWürfe = await this.calcKompetenzWürfe();
|
||||||
|
context.itemTypes = await super._getItems();
|
||||||
|
context.armor = await prepArmor(this.actor);
|
||||||
|
context.equippedWeapons = await prepWeapons(this.actor);
|
||||||
|
context.equippedSpells = await prepSpells(this.actor);
|
||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
break;
|
break;
|
||||||
case "effects":
|
case "effects":
|
||||||
@@ -123,11 +128,9 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
break;
|
break;
|
||||||
case "items":
|
case "items":
|
||||||
context.itemTypes = await super._getItems();
|
|
||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
break;
|
break;
|
||||||
case "zauber":
|
case "zauber":
|
||||||
context.zauber = await this._getZauber();
|
|
||||||
context.tab = context.tabs[partId];
|
context.tab = context.tabs[partId];
|
||||||
break;
|
break;
|
||||||
case "biographie":
|
case "biographie":
|
||||||
@@ -255,7 +258,6 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
fieldset.fields.push({
|
fieldset.fields.push({
|
||||||
field,
|
field,
|
||||||
value: foundry.utils.getProperty(source, path),
|
value: foundry.utils.getProperty(source, path),
|
||||||
localizationName: "Midgard6.Skills." + field.label,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -431,7 +433,6 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
label: "Midgard6.Dialog.speichern",
|
label: "Midgard6.Dialog.speichern",
|
||||||
default: true,
|
default: true,
|
||||||
callback: async (event, button, dialog) => {
|
callback: async (event, button, dialog) => {
|
||||||
console.warn(resistenzen);
|
|
||||||
await this.actor.update({ [`system.resistenzen`]: resistenzen });
|
await this.actor.update({ [`system.resistenzen`]: resistenzen });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -441,11 +442,14 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
|
|
||||||
static async #rollKompetenz(event, target) {
|
static async #rollKompetenz(event, target) {
|
||||||
const dataset = target.dataset;
|
const dataset = target.dataset;
|
||||||
const kompetenz = dataset.kompetenz;
|
const kompetenz = dataset.kompetenz || "";
|
||||||
const kompetenzValue = dataset.kompetenzValue;
|
const kompetenzValue = dataset.kompetenzValue;
|
||||||
|
const schaden = dataset.schaden;
|
||||||
|
const item = this.actor.items.get(dataset.itemId);
|
||||||
|
|
||||||
const dialogResult = await rollDialog({
|
const dialogResult = await rollDialog({
|
||||||
skill: kompetenzValue,
|
skill: kompetenzValue,
|
||||||
|
damageRoll: schaden,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Dialog Result", dialogResult);
|
console.log("Dialog Result", dialogResult);
|
||||||
@@ -466,45 +470,65 @@ export class M6NSCSheet extends M6ActorSheet {
|
|||||||
die = "1d20";
|
die = "1d20";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
let rollFlavor = dataset.name ?? kompetenz;
|
||||||
let rollTerm = "@die + @skill";
|
let rolls;
|
||||||
let rollFlavor = kompetenz;
|
if (dialogResult.customRoll) {
|
||||||
let roll;
|
rolls = [await new Roll(dialogResult.customRoll, {}, { title: rollFlavor }).evaluate()];
|
||||||
|
} else {
|
||||||
if (dialogResult.spezLevel) {
|
rolls = [
|
||||||
rollTerm += " + @spezBonus";
|
await new Roll(
|
||||||
rollFlavor += ": " + dialogResult.spezName;
|
"@die + @skill",
|
||||||
|
{
|
||||||
|
die: die,
|
||||||
|
skill: skillValue,
|
||||||
|
spezBonus: dialogResult.spezLevel + 1,
|
||||||
|
},
|
||||||
|
{ title: rollFlavor },
|
||||||
|
).evaluate(),
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dialogResult.customRoll) {
|
if (dialogResult.customDamageRoll) {
|
||||||
roll = new Roll(dialogResult.customRoll, {}, { title: rollFlavor });
|
rolls.push(
|
||||||
} else {
|
await new Roll(
|
||||||
roll = new Roll(
|
"@die",
|
||||||
rollTerm,
|
{ die: dialogResult.customDamageRoll },
|
||||||
{
|
{ title: game.i18n.localize("Midgard6.Schaden") },
|
||||||
die: die,
|
).evaluate(),
|
||||||
skill: skillValue,
|
);
|
||||||
spezBonus: dialogResult.spezLevel + 1,
|
} else if (schaden) {
|
||||||
},
|
rolls.push(
|
||||||
{ title: rollFlavor },
|
await new Roll(
|
||||||
|
"@die",
|
||||||
|
{ die: schaden },
|
||||||
|
{ title: game.i18n.localize("Midgard6.Schaden") },
|
||||||
|
).evaluate(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The parsed terms of the roll formula
|
console.log("Roll:", rolls);
|
||||||
console.log("Roll:", roll); // [Die, OperatorTerm, NumericTerm, OperatorTerm, NumericTerm]
|
|
||||||
|
|
||||||
// Execute the roll
|
|
||||||
await roll.evaluate();
|
|
||||||
|
|
||||||
const chatData = {
|
const chatData = {
|
||||||
rolls: roll,
|
rolls: rolls,
|
||||||
speaker: ChatMessage.getSpeaker(),
|
speaker: ChatMessage.getSpeaker(),
|
||||||
flags: {
|
flags: {
|
||||||
"midgard6-lvd": {
|
"midgard6-lvd": {
|
||||||
title: rollFlavor,
|
title: rollFlavor,
|
||||||
|
eigenschaften: item?.system?.eigenschaften,
|
||||||
|
merkmale: item?.system?.merkmale,
|
||||||
|
isSpell: item?.type === "zauber",
|
||||||
|
beschreibung: await foundry.applications.ux.TextEditor.implementation.enrichHTML(
|
||||||
|
item?.system?.beschreibung,
|
||||||
|
{
|
||||||
|
secrets: false,
|
||||||
|
rollData: this.actor.getRollData(),
|
||||||
|
relativeTo: this.actor,
|
||||||
|
},
|
||||||
|
),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
ChatMessage.applyMode(chatData, dialogResult.rollMode);
|
ChatMessage.applyMode(chatData, dialogResult.rollMode);
|
||||||
|
|
||||||
await ChatMessage.create(chatData);
|
await ChatMessage.create(chatData);
|
||||||
|
|||||||
+8
-1
@@ -99,10 +99,17 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
transition: none;
|
transition: none;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
option:hover {
|
border: none;
|
||||||
|
> :nth-child(odd) {
|
||||||
|
background-color: var(--M6-background-grey);
|
||||||
|
}
|
||||||
|
> :hover {
|
||||||
background-color: var(--M6-background-brown);
|
background-color: var(--M6-background-brown);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
select:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
p {
|
p {
|
||||||
&.center {
|
&.center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -108,6 +108,14 @@ Hooks.once("init", () => {
|
|||||||
types: ["legende"],
|
types: ["legende"],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
foundry.applications.apps.DocumentSheetConfig.registerSheet(
|
||||||
|
Item,
|
||||||
|
"midgard6-lvd",
|
||||||
|
M6HintergrundSheet,
|
||||||
|
{
|
||||||
|
types: ["merkmal"],
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -42,7 +42,8 @@
|
|||||||
"makel": {},
|
"makel": {},
|
||||||
"schicksalsgabe": {},
|
"schicksalsgabe": {},
|
||||||
"legende": {},
|
"legende": {},
|
||||||
"geld": {}
|
"geld": {},
|
||||||
|
"merkmal": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
|
|||||||
+56
-82
@@ -4,25 +4,22 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<fieldset >
|
<fieldset >
|
||||||
<legend>{{localize "Midgard6.Item.type.münze.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.münze.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="geld"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.geld}}
|
{{#with itemTypes.geld}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="geld"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -68,25 +65,22 @@
|
|||||||
{{/with}}
|
{{/with}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset >
|
<fieldset >
|
||||||
<legend>{{localize "Midgard6.Item.type.item.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.item.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="item"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.item}}
|
{{#with itemTypes.item}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="item"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -120,25 +114,22 @@
|
|||||||
{{!-- Waffen --}}
|
{{!-- Waffen --}}
|
||||||
|
|
||||||
<fieldset class="highlight">
|
<fieldset class="highlight">
|
||||||
<legend>{{localize "Midgard6.Item.type.weapon.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.weapon.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="weapon"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.weapon}}
|
{{#with itemTypes.weapon}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="weapon"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -171,27 +162,23 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{{!-- Rüstung --}}
|
{{!-- Rüstung --}}
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "Midgard6.Item.type.armor.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.armor.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="armor"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.armor}}
|
{{#with itemTypes.armor}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="armor"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -225,17 +212,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="sticky-progress-container">
|
|
||||||
<div class="tooltip-wrapper">
|
|
||||||
<span class="tooltiptext">{{localize "Midgard6.Traglast"}}: {{gewicht.gewicht}} / {{gewicht.traglast}}</span>
|
|
||||||
|
|
||||||
<div class="progress-background">
|
|
||||||
<progress
|
|
||||||
class="progress-bar"
|
|
||||||
value="{{gewicht.gewicht}}"
|
|
||||||
max="{{gewicht.traglast}}"
|
|
||||||
></progress>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
+40
-41
@@ -4,53 +4,52 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<fieldset >
|
<fieldset >
|
||||||
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="zauber"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
|
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type="Zauber"}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="zauber"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type="Zauber"}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each zauber as |zauber|}}
|
{{#with itemTypes.zauber}}
|
||||||
<li class="item row align-content-center draggable" data-item-id="{{zauber._id}}" data-type="Zauber" data-document-class="Item">
|
{{#each this.items as |zauber|}}
|
||||||
<p class="col-3" style="padding-top: 8px">{{zauber.name}}</p>
|
<li class="item row align-content-center draggable" data-item-id="{{zauber.id}}" data-type="Item" data-document-class="Item">
|
||||||
<p class="col-3 item-name">{{zauber.system.eigenschaften.ursprung}}</p>
|
<p class="col-3" style="padding-top: 8px">{{zauber.name}}</p>
|
||||||
<p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p>
|
<p class="col-3 item-name">{{zauber.system.eigenschaften.ursprung}}</p>
|
||||||
<a class="align-self-center col-1 fa-solid fa-book-open" {{#unless @root.editable}}disabled{{/unless}} data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}}"></a>
|
<p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p>
|
||||||
<a class="align-self-center col-2 fa-solid fa-dice-d20" data-action="rollSpell" {{#unless @root.editable}}disabled{{/unless}} data-name="{{zauber.name}}" data-item-id="{{zauber._id}}"></a>
|
<a class="align-self-center col-1 fa-solid fa-book-open" {{#unless @root.editable}}disabled{{/unless}} data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}}"></a>
|
||||||
<div class="col-1 d-flex document-controls" style="margin: 0.5rem 0; padding: 0">
|
<a class="align-self-center col-2 fa-solid fa-dice-d20" data-action="rollSpell" {{#unless @root.editable}}disabled{{/unless}} data-name="{{zauber.name}}" data-item-id="{{zauber._id}}"></a>
|
||||||
{{#if @root.editable}}
|
<div class="col-1 d-flex document-controls" style="margin: 0.5rem 0; padding: 0">
|
||||||
<a
|
{{#if @root.editable}}
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=zauber.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
<a
|
<a
|
||||||
class="item-control item-delete"
|
class="item-control item-edit"
|
||||||
title="{{localize 'DOCUMENT.Delete' type=zauber.name}}"
|
title="{{localize 'DOCUMENT.Update' type=zauber.name}}"
|
||||||
data-action="deleteDoc"
|
data-action="viewDoc"
|
||||||
>
|
>
|
||||||
<i class="fas fa-trash"></i>
|
<i class="fas fa-edit"></i>
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
<a
|
||||||
</div>
|
class="item-control item-delete"
|
||||||
</li>
|
title="{{localize 'DOCUMENT.Delete' type=zauber.name}}"
|
||||||
{{/each}}
|
data-action="deleteDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
{{/with}}
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
{{#if damageRoll}}
|
{{#if damageRoll}}
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="customRollDamage"
|
name="customDamageRoll"
|
||||||
id="rollDamageDisplay"
|
id="rollDamageDisplay"
|
||||||
placeholder="{{damageRoll}}"
|
placeholder="{{damageRoll}}"
|
||||||
value="{{customDamageRoll}}"
|
value="{{customDamageRoll}}"
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
</legend>
|
</legend>
|
||||||
{{#each system.fertigkeiten as |fertigkeit|}}
|
{{#each system.fertigkeiten as |fertigkeit|}}
|
||||||
<div class="row align-items-center">
|
<div class="row align-items-center">
|
||||||
<div class="col-6 row align-items-center" style="width: 100%; margin-left: 0">
|
<div class="col-6 d-flex align-items-center" style="width: 100%; margin-left: 0">
|
||||||
{{#if @root.editable}}
|
{{#if @root.editable}}
|
||||||
{{#unless @root.system.locked}}
|
{{#unless @root.system.locked}}
|
||||||
<a
|
<a
|
||||||
@@ -103,6 +103,68 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<fieldset>
|
||||||
|
<legend>
|
||||||
|
{{localize "Midgard6.NSC.merkmal.plural"}}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
title="{{localize 'DOCUMENT.Create' type="Merkmal"}}"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="merkmal"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
{{#with itemTypes.merkmal}}
|
||||||
|
{{#each this.items as |merkmal|}}
|
||||||
|
<div
|
||||||
|
class="collapsible"
|
||||||
|
data-action="collapsible"
|
||||||
|
data-item-id="{{merkmal._id}}"
|
||||||
|
data-type="Item"
|
||||||
|
data-document-class="Item"
|
||||||
|
>{{merkmal.name}}
|
||||||
|
<div>
|
||||||
|
<a>
|
||||||
|
<i data-action="collapsible" class="fas fa-expand"></i>
|
||||||
|
</a>
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless @root.system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-edit"
|
||||||
|
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
||||||
|
data-action="viewDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
class="item-control item-delete"
|
||||||
|
title="{{localize 'DOCUMENT.Delete' type=merkmal.name}}"
|
||||||
|
style="z-index:9999"
|
||||||
|
data-action="deleteDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
{{{merkmal.system.beschreibung}}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
{{/with}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-5">
|
<div class="col-5">
|
||||||
<fieldset class="">
|
<fieldset class="">
|
||||||
@@ -203,9 +265,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
{{!-- <div>
|
<div>
|
||||||
<fieldset class="highlight">
|
<fieldset class="highlight">
|
||||||
<legend>{{localize "Midgard6.Item.type.weapon.plural" }}</legend>
|
<legend>
|
||||||
|
{{localize "Midgard6.NSC.angriff.plural" }}
|
||||||
|
</legend>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{#each equippedWeapons as |weapon|}}
|
{{#each equippedWeapons as |weapon|}}
|
||||||
<div class="item row align-items-center">
|
<div class="item row align-items-center">
|
||||||
@@ -215,16 +279,18 @@
|
|||||||
<p>{{weapon.name}}: </p>
|
<p>{{weapon.name}}: </p>
|
||||||
<p>
|
<p>
|
||||||
<i class="fas fa-dice-d20" style="font-size:12px; margin:0 2px 0 4px"></i>
|
<i class="fas fa-dice-d20" style="font-size:12px; margin:0 2px 0 4px"></i>
|
||||||
+ {{weapon.skillValue}} {{#if weapon.bonusValue}}+ {{weapon.bonusValue}}{{/if}}</p>
|
+ {{weapon.skillValue}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2 document-controls">
|
<div class="col-2 document-controls">
|
||||||
<a
|
<a
|
||||||
class="item-control"
|
class="item-control"
|
||||||
title="{{localize 'Midgard6.Angriff'}} {{weapon.name}}"
|
title="{{localize 'Midgard6.Angriff'}} {{weapon.name}}"
|
||||||
data-action="rollWeapon"
|
data-action="rollKompetenz"
|
||||||
|
data-name="{{weapon.name}}"
|
||||||
|
data-kompetenz-value="{{weapon.skillValue}}"
|
||||||
|
data-schaden="{{weapon.schaden}}"
|
||||||
data-item-id="{{weapon.id}}"
|
data-item-id="{{weapon.id}}"
|
||||||
data-skillPath="{{weapon.path}}"
|
|
||||||
{{#unless @root.editable}}disabled{{/unless}}
|
{{#unless @root.editable}}disabled{{/unless}}
|
||||||
>
|
>
|
||||||
<i class="fas fa-dice-d20"></i>
|
<i class="fas fa-dice-d20"></i>
|
||||||
@@ -266,24 +332,25 @@
|
|||||||
<fieldset class="highlight">
|
<fieldset class="highlight">
|
||||||
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}</legend>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{#each equippedSpells as |weapon|}}
|
{{#each equippedSpells as |spell|}}
|
||||||
<div class="item row align-items-center">
|
<div class="item row align-items-center">
|
||||||
<div class="col-10">
|
<div class="col-10">
|
||||||
<div class="d-flex justify-content-start align-items-center">
|
<div class="d-flex justify-content-start align-items-center">
|
||||||
<img class="" style="margin-right: 4px" src="{{weapon.img}}" alt="{{weapon.name}}" width="24" height="24" />
|
<img class="" style="margin-right: 4px" src="{{spell.img}}" alt="{{spell.name}}" width="24" height="24" />
|
||||||
<p>{{weapon.name}}: </p>
|
<p>{{spell.name}}: </p>
|
||||||
<p>
|
<p>
|
||||||
<i class="fas fa-dice-d20" style="font-size:12px; margin:0 2px 0 4px"></i>
|
<i class="fas fa-dice-d20" style="font-size:12px; margin:0 2px 0 4px"></i>
|
||||||
+ {{weapon.skillValue}} {{#if weapon.bonusValue}}+ {{weapon.bonusValue}}{{/if}}</p>
|
+ {{spell.skillValue}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-2 document-controls">
|
<div class="col-2 document-controls">
|
||||||
<a
|
<a
|
||||||
class="item-control"
|
class="item-control"
|
||||||
title="{{localize 'Midgard6.Angriff'}} {{weapon.name}}"
|
title="{{localize 'Midgard6.Angriff'}} {{spell.name}}"
|
||||||
data-action="rollSpell"
|
data-action="rollKompetenz"
|
||||||
data-item-id="{{weapon.id}}"
|
data-kompetenz-value="{{spell.skillValue}}"
|
||||||
data-skillPath="{{weapon.path}}"
|
data-schaden="{{spell.schaden}}"
|
||||||
|
data-item-id="{{spell.id}}"
|
||||||
{{#unless @root.editable}}disabled{{/unless}}
|
{{#unless @root.editable}}disabled{{/unless}}
|
||||||
>
|
>
|
||||||
<i class="fas fa-dice-d20"></i>
|
<i class="fas fa-dice-d20"></i>
|
||||||
@@ -293,7 +360,7 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div> --}}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,320 +0,0 @@
|
|||||||
{{! Beschreibung Allgemein Tab }}
|
|
||||||
<section
|
|
||||||
class="standard-form tab scrollable {{tab.cssClass}}"
|
|
||||||
data-tab="{{tab.id}}"
|
|
||||||
data-group="{{tab.group}}"
|
|
||||||
>
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12">
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "Midgard6.Grad.grad"}}</legend>
|
|
||||||
<div class="d-flex justify-content-center align-items-center">
|
|
||||||
<input
|
|
||||||
type="number"
|
|
||||||
class="text center"
|
|
||||||
style="max-width:3rem;"
|
|
||||||
name="system.grad.grad"
|
|
||||||
value="{{system.grad.grad}}"
|
|
||||||
/>
|
|
||||||
<p style="font-size:18px; font-weight: bold; padding: 0 8px">{{localize
|
|
||||||
"Midgard6.Grad.erfahrung"
|
|
||||||
}}</p>
|
|
||||||
<div
|
|
||||||
class="d-flex align-items-center justify-content-center flex-column"
|
|
||||||
style="position: relative;"
|
|
||||||
>
|
|
||||||
<label style="position: absolute; bottom: 100%; font-size: 12px;">{{localize
|
|
||||||
"Midgard6.Grad.frei"
|
|
||||||
}}</label>
|
|
||||||
<input
|
|
||||||
type="number"
|
|
||||||
class="text center"
|
|
||||||
style="max-width:3rem;"
|
|
||||||
name="system.grad.erfahrungspunkteFrei"
|
|
||||||
value="{{system.grad.erfahrungspunkteFrei}}"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<p style=" font-size:32px; padding: 0 8px">+</p>
|
|
||||||
<div
|
|
||||||
class="d-flex align-items-center justify-content-center flex-column"
|
|
||||||
style="position: relative;"
|
|
||||||
>
|
|
||||||
<label style="position: absolute; bottom: 100%; font-size: 12px;">{{localize
|
|
||||||
"Midgard6.Grad.eingesetzt"
|
|
||||||
}}</label>
|
|
||||||
<input
|
|
||||||
type="number"
|
|
||||||
class="text center"
|
|
||||||
style="max-width:3rem;"
|
|
||||||
name="system.grad.erfahrungspunkteEingesetzt"
|
|
||||||
value="{{system.grad.erfahrungspunkteEingesetzt}}"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p style=" font-size:32px; padding: 0 8px">=</p>
|
|
||||||
<div
|
|
||||||
class="d-flex align-items-center justify-content-center flex-column"
|
|
||||||
style="position: relative;"
|
|
||||||
>
|
|
||||||
<label style="position: absolute; bottom: 100%; font-size: 12px;">{{localize
|
|
||||||
"Midgard6.Grad.gesamt"
|
|
||||||
}}</label>
|
|
||||||
<input
|
|
||||||
type="number"
|
|
||||||
class="text center"
|
|
||||||
style="max-width:3rem;"
|
|
||||||
name="system.grad.erfahrungsschatz"
|
|
||||||
value="{{system.grad.erfahrungsschatz}}"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-12">
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "Midgard6.Hintergrund.type.gunst.singular"}}
|
|
||||||
&
|
|
||||||
{{localize "Midgard6.Hintergrund.type.makel.singular"}}</legend>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-6">
|
|
||||||
{{#with itemTypes.gunst}}
|
|
||||||
<div class="itemHeader" style="margin-bottom: 8px">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="gunst"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{#each this.items as |gunst|}}
|
|
||||||
<div
|
|
||||||
class="collapsible"
|
|
||||||
data-action="collapsible"
|
|
||||||
data-item-id="{{gunst._id}}"
|
|
||||||
data-type="Item"
|
|
||||||
data-document-class="Item"
|
|
||||||
>{{gunst.name}}
|
|
||||||
<div>
|
|
||||||
<i class="fas fa-expand"></i>
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=gunst.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
class="item-control item-delete"
|
|
||||||
title="{{localize 'DOCUMENT.Delete' type=gunst.name}}"
|
|
||||||
style="z-index:9999"
|
|
||||||
data-action="deleteDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-trash"></i>
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
|
||||||
{{{gunst.system.beschreibung}}}
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
{{/with}}
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
{{#with itemTypes.makel}}
|
|
||||||
<div class="itemHeader" style="margin-bottom: 8px">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="makel"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{#each this.items as |makel|}}
|
|
||||||
<div
|
|
||||||
type="button"
|
|
||||||
class="collapsible"
|
|
||||||
data-action="collapsible"
|
|
||||||
data-item-id="{{makel._id}}"
|
|
||||||
data-type="Item"
|
|
||||||
data-document-class="Item"
|
|
||||||
>{{makel.name}}
|
|
||||||
<div>
|
|
||||||
<i class="fas fa-expand"></i>
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=makel.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
class="item-control item-delete"
|
|
||||||
title="{{localize 'DOCUMENT.Delete' type=makel.name}}"
|
|
||||||
style="z-index:9999"
|
|
||||||
data-action="deleteDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-trash"></i>
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content">
|
|
||||||
{{{makel.system.beschreibung}}}
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
{{/with}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-6" style="height: 100%">
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "Midgard6.Hintergrund.type.legende.plural"}}</legend>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col">
|
|
||||||
{{#with itemTypes.legende}}
|
|
||||||
<div class="itemHeader" style="margin-bottom: 8px">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="legende"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{#each this.items as |legende|}}
|
|
||||||
<div
|
|
||||||
class="collapsible"
|
|
||||||
data-action="collapsible"
|
|
||||||
data-item-id="{{legende._id}}"
|
|
||||||
data-type="Item"
|
|
||||||
data-document-class="Item"
|
|
||||||
>{{legende.name}}
|
|
||||||
<div>
|
|
||||||
<i class="fas fa-expand"></i>
|
|
||||||
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
class="item-control item-delete"
|
|
||||||
title="{{localize 'DOCUMENT.Delete' type=legende.name}}"
|
|
||||||
style="z-index:9999"
|
|
||||||
data-action="deleteDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-trash"></i>
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
|
||||||
{{{legende.system.beschreibung}}}
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
{{/with}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-6">
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "Midgard6.Hintergrund.type.schicksalsgabe.plural"}}</legend>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col">
|
|
||||||
{{#with itemTypes.schicksalsgabe}}
|
|
||||||
<div class="itemHeader" style="margin-bottom: 8px">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="schicksalsgabe"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{#each this.items as |schicksalsgabe|}}
|
|
||||||
<div
|
|
||||||
class="collapsible"
|
|
||||||
data-action="collapsible"
|
|
||||||
data-item-id="{{schicksalsgabe._id}}"
|
|
||||||
data-type="Item"
|
|
||||||
data-document-class="Item"
|
|
||||||
>{{schicksalsgabe.name}}
|
|
||||||
<div>
|
|
||||||
<i class="fas fa-expand"></i>
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=item.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
class="item-control item-delete"
|
|
||||||
title="{{localize 'DOCUMENT.Delete' type=schicksalsgabe.name}}"
|
|
||||||
style="z-index:9999"
|
|
||||||
data-action="deleteDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-trash"></i>
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
|
||||||
{{{gunst.system.beschreibung}}}
|
|
||||||
</div>
|
|
||||||
{{/each}}
|
|
||||||
{{/with}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
+56
-82
@@ -4,25 +4,22 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<fieldset >
|
<fieldset >
|
||||||
<legend>{{localize "Midgard6.Item.type.münze.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.münze.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="geld"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.geld}}
|
{{#with itemTypes.geld}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="geld"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -68,25 +65,22 @@
|
|||||||
{{/with}}
|
{{/with}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<fieldset >
|
<fieldset >
|
||||||
<legend>{{localize "Midgard6.Item.type.item.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.item.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="item"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.item}}
|
{{#with itemTypes.item}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="item"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -120,25 +114,22 @@
|
|||||||
{{!-- Waffen --}}
|
{{!-- Waffen --}}
|
||||||
|
|
||||||
<fieldset class="highlight">
|
<fieldset class="highlight">
|
||||||
<legend>{{localize "Midgard6.Item.type.weapon.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.weapon.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="weapon"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.weapon}}
|
{{#with itemTypes.weapon}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="weapon"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -171,27 +162,23 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{{!-- Rüstung --}}
|
{{!-- Rüstung --}}
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "Midgard6.Item.type.armor.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.armor.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="armor"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
{{#with itemTypes.armor}}
|
{{#with itemTypes.armor}}
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type=this.label}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="armor"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type=this.label}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each this.items as |item|}}
|
{{#each this.items as |item|}}
|
||||||
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
<li class="item flexrow draggable" data-item-id="{{item._id}}" data-type="Item" data-document-class="Item">
|
||||||
@@ -225,17 +212,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="sticky-progress-container">
|
|
||||||
<div class="tooltip-wrapper">
|
|
||||||
<span class="tooltiptext">{{localize "Midgard6.Traglast"}}: {{gewicht.gewicht}} / {{gewicht.traglast}}</span>
|
|
||||||
|
|
||||||
<div class="progress-background">
|
|
||||||
<progress
|
|
||||||
class="progress-bar"
|
|
||||||
value="{{gewicht.gewicht}}"
|
|
||||||
max="{{gewicht.traglast}}"
|
|
||||||
></progress>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
+40
-41
@@ -4,53 +4,52 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<fieldset >
|
<fieldset >
|
||||||
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}</legend>
|
<legend>{{localize "Midgard6.Item.type.zauber.plural" }}
|
||||||
|
{{#if @root.editable}}
|
||||||
|
{{#unless system.locked}}
|
||||||
|
<a
|
||||||
|
class="item-control item-create"
|
||||||
|
data-action="createDoc"
|
||||||
|
data-document-class="Item"
|
||||||
|
data-type="zauber"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</a>
|
||||||
|
{{/unless}}
|
||||||
|
{{/if}}
|
||||||
|
</legend>
|
||||||
|
|
||||||
<ul class="itemTypes">
|
<ul class="itemTypes">
|
||||||
<li class="itemHeader">
|
|
||||||
<div class="document-controls">
|
|
||||||
{{#if @root.editable}}
|
|
||||||
<a
|
|
||||||
class="item-control item-create"
|
|
||||||
title="{{localize 'DOCUMENT.Create' type="Zauber"}}"
|
|
||||||
data-action="createDoc"
|
|
||||||
data-document-class="Item"
|
|
||||||
data-type="zauber"
|
|
||||||
>
|
|
||||||
<i class="fas fa-plus"></i>
|
|
||||||
{{localize "DOCUMENT.Create" type="Zauber"}}
|
|
||||||
</a>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<ul class="items">
|
<ul class="items">
|
||||||
{{#each zauber as |zauber|}}
|
{{#with itemTypes.zauber}}
|
||||||
<li class="item row align-content-center draggable" data-item-id="{{zauber._id}}" data-type="Zauber" data-document-class="Item">
|
{{#each this.item as |zauber|}}
|
||||||
<p class="col-3" style="padding-top: 8px">{{zauber.name}}</p>
|
<li class="item row align-content-center draggable" data-item-id="{{zauber.id}}" data-type="Item" data-document-class="Item">
|
||||||
<p class="col-3 item-name">{{zauber.system.eigenschaften.ursprung}}</p>
|
<p class="col-3" style="padding-top: 8px">{{zauber.name}}</p>
|
||||||
<p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p>
|
<p class="col-3 item-name">{{zauber.system.eigenschaften.ursprung}}</p>
|
||||||
<a class="align-self-center col-1 fa-solid fa-book-open" {{#unless @root.editable}}disabled{{/unless}} data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}}"></a>
|
<p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p>
|
||||||
<a class="align-self-center col-2 fa-solid fa-dice-d20" data-action="rollSpell" {{#unless @root.editable}}disabled{{/unless}} data-name="{{zauber.name}}" data-item-id="{{zauber._id}}"></a>
|
<a class="align-self-center col-1 fa-solid fa-book-open" {{#unless @root.editable}}disabled{{/unless}} data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}}"></a>
|
||||||
<div class="col-1 d-flex document-controls" style="margin: 0.5rem 0; padding: 0">
|
<a class="align-self-center col-2 fa-solid fa-dice-d20" data-action="rollSpell" {{#unless @root.editable}}disabled{{/unless}} data-name="{{zauber.name}}" data-item-id="{{zauber._id}}"></a>
|
||||||
{{#if @root.editable}}
|
<div class="col-1 d-flex document-controls" style="margin: 0.5rem 0; padding: 0">
|
||||||
<a
|
{{#if @root.editable}}
|
||||||
class="item-control item-edit"
|
|
||||||
title="{{localize 'DOCUMENT.Update' type=zauber.name}}"
|
|
||||||
data-action="viewDoc"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
|
||||||
</a>
|
|
||||||
<a
|
<a
|
||||||
class="item-control item-delete"
|
class="item-control item-edit"
|
||||||
title="{{localize 'DOCUMENT.Delete' type=zauber.name}}"
|
title="{{localize 'DOCUMENT.Update' type=zauber.name}}"
|
||||||
data-action="deleteDoc"
|
data-action="viewDoc"
|
||||||
>
|
>
|
||||||
<i class="fas fa-trash"></i>
|
<i class="fas fa-edit"></i>
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
<a
|
||||||
</div>
|
class="item-control item-delete"
|
||||||
</li>
|
title="{{localize 'DOCUMENT.Delete' type=zauber.name}}"
|
||||||
{{/each}}
|
data-action="deleteDoc"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
{{/with}}
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user