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