Angriffe, Zauber & Merkmale

Bug fix: Zauber konnten nicht Sortiert werden
This commit was merged in pull request #44.
This commit is contained in:
Byroks authored and Byroks committed 2026-11-02 15:41:55 +01:00
1 parent ec33ccb381
commit 5f02f5ba83
17 files changed
+451 -638

No files matched your search

+82 -15
View File
@@ -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>