Compare commits
No commits in common. "d7779f3c4861913dc06f0ace6de02586f0602e56" and "dcbb9f6c9cf60a446775d38d9939fca33defd4a7" have entirely different histories.
d7779f3c48
...
dcbb9f6c9c
@ -118,15 +118,6 @@
|
||||
<span>{{actor.system.computed.astralenergie.max}}</span>
|
||||
</div>
|
||||
|
||||
<div class="list-item">
|
||||
<span>{{localize "DSA41.basiswerte.karmalenergie"}}</span>
|
||||
<span>{{>editable-input type="number" name="system.karmalenergie" value=actor.system.karmalenergie}}</span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span>{{actor.system.karmalenergie}}</span>
|
||||
</div>
|
||||
|
||||
<div class="list-item">
|
||||
<span>{{localize "DSA41.basiswerte.magieresistenz"}}</span>
|
||||
<span>{{actor.system.computed.magieresistenz.basiswert}}</span>
|
||||
@ -179,10 +170,6 @@
|
||||
<div>{{localize (concat "DSA41.vornachteil.label_vorteile")}}</div>
|
||||
</div>
|
||||
|
||||
{{#unless (ne actor.system.computed.num_vorteile 0)}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.itemTypes.VorNachteil}}
|
||||
{{#if (eq system.kategorie "vorteil")}}
|
||||
<div class="list-item" data-item-id="{{_id}}">
|
||||
@ -201,10 +188,6 @@
|
||||
<div>{{localize (concat "DSA41.vornachteil.label_nachteile")}}</div>
|
||||
</div>
|
||||
|
||||
{{#unless (ne actor.system.computed.num_nachteile 0)}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.itemTypes.VorNachteil}}
|
||||
{{#if (eq system.kategorie "nachteil")}}
|
||||
<div class="list-item" data-item-id="{{_id}}">
|
||||
@ -224,10 +207,6 @@
|
||||
<div>{{localize (concat "DSA41.sonderfertigkeiten.label_allgemein")}}</div>
|
||||
</div>
|
||||
|
||||
{{#unless (ne actor.system.computed.num_allgemeine_sonderfertigkeiten 0)}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.itemTypes.Sonderfertigkeit}}
|
||||
{{#if (eq this.system.kategorie "allgemein")}}
|
||||
<div class="list-item" data-item-id="{{_id}}">
|
||||
@ -297,11 +276,6 @@
|
||||
<div class="center">{{localize "DSA41.weight"}}</div>
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
{{#unless (ne actor.itemTypes.Bewaffnung.length 0)}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.itemTypes.Bewaffnung}}
|
||||
<div class="list-item" data-item-id="{{this._id}}">
|
||||
<div class="row" data-action="item-open">
|
||||
@ -329,11 +303,6 @@
|
||||
<div></div>
|
||||
<div class="center">{{localize "DSA41.weight"}}</div>
|
||||
</div>
|
||||
|
||||
{{#unless (ne actor.itemTypes.Ruestung.length 0)}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.itemTypes.Ruestung}}
|
||||
<div class="list-item" data-item-id="{{this._id}}">
|
||||
<div class="row" data-action="item-open">
|
||||
@ -353,11 +322,6 @@
|
||||
<div></div>
|
||||
<div class="center">{{localize "DSA41.weight"}}</div>
|
||||
</div>
|
||||
|
||||
{{#unless (ne actor.itemTypes.Gegenstand.length 0)}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.itemTypes.Gegenstand}}
|
||||
<div class="list-item" data-item-id="{{this._id}}">
|
||||
<div class="row" data-action="item-open">
|
||||
@ -381,10 +345,6 @@
|
||||
<div class="center">{{localize "DSA41.kampf.trefferpunkte"}}</div>
|
||||
</div>
|
||||
|
||||
{{#unless (or (ne actor.system.computed.num_waffen 0) (ne actor.system.computed.num_fernkampf_waffen 0))}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.system.computed.kampf.waffen}}
|
||||
<div class="list-item" data-item-id="{{item._id}}">
|
||||
<div class="row" data-action="item-open">
|
||||
@ -476,10 +436,6 @@
|
||||
<div>{{localize (concat "DSA41.sonderfertigkeiten.label_kampf")}}</div>
|
||||
</div>
|
||||
|
||||
{{#unless (ne actor.system.computed.num_kampf_sonderfertigkeiten 0)}}
|
||||
<div class="list-item">{{localize "DSA41.list_empty"}}</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#each actor.itemTypes.Sonderfertigkeit}}
|
||||
{{#if (eq this.system.kategorie "kampf")}}
|
||||
<div class="list-item" data-item-id="{{_id}}">
|
||||
|
||||
@ -24,8 +24,6 @@
|
||||
"weight": "Gewicht",
|
||||
"price": "Preis",
|
||||
|
||||
"list_empty": "Keine",
|
||||
|
||||
"chat": {
|
||||
"result": "Ergebnis",
|
||||
"success": "Geschafft",
|
||||
@ -48,7 +46,6 @@
|
||||
"lebenspunkte": "Lebenspunkte",
|
||||
"ausdauer": "Ausdauer",
|
||||
"astralenergie": "Astralenergie",
|
||||
"karmalenergie": "Karmalenergie",
|
||||
"magieresistenz": "Magieresistenz",
|
||||
"initiative": "Initiative",
|
||||
"attacke": "Attacke",
|
||||
|
||||
16
src/main.mjs
16
src/main.mjs
@ -233,8 +233,6 @@ class DSA41_CharacterData extends TypeDataModel {
|
||||
aktuell: new NumberField({integer: true, initial: 0}),
|
||||
}),
|
||||
|
||||
karmalenergie: new NumberField({integer: true, inital: 0}),
|
||||
|
||||
magieresistenz: new SchemaField({
|
||||
modifikator: new NumberField({integer: true, initial: 0}),
|
||||
zukauf: new NumberField({integer: true, initial: 0}),
|
||||
@ -255,13 +253,6 @@ class DSA41_CharacterData extends TypeDataModel {
|
||||
attributes: {},
|
||||
attributes_without_modifiers: {},
|
||||
|
||||
num_vorteile: 0,
|
||||
num_nachteile: 0,
|
||||
num_allgemeine_sonderfertigkeiten: 0,
|
||||
num_kampf_sonderfertigkeiten: 0,
|
||||
num_waffen: 0,
|
||||
num_fernkampf_waffen: 0,
|
||||
|
||||
kampf: {
|
||||
talente: {},
|
||||
waffen: {},
|
||||
@ -361,7 +352,6 @@ class DSA41_CharacterData extends TypeDataModel {
|
||||
|
||||
for(const item of equipped_nahkampfwaffen) {
|
||||
if (item.system.nahkampfwaffe.aktiv) {
|
||||
this.computed.num_waffen += 1;
|
||||
let computed = this.computed.kampf.waffen[item._id] = {
|
||||
item: item,
|
||||
attacke: 0,
|
||||
@ -425,7 +415,6 @@ class DSA41_CharacterData extends TypeDataModel {
|
||||
}
|
||||
|
||||
for (const item of equipped_fernkampfwaffen) {
|
||||
this.computed.num_fernkampf_waffen += 1;
|
||||
let computed = this.computed.kampf.fernkampf_waffen[item._id] = {
|
||||
item: item,
|
||||
attacke: 0,
|
||||
@ -455,11 +444,6 @@ class DSA41_CharacterData extends TypeDataModel {
|
||||
wissens: talente.filter((x) => x.system.kategorie === "wissens"),
|
||||
handwerks: talente.filter((x) => x.system.kategorie === "handwerks"),
|
||||
};
|
||||
|
||||
this.computed.num_allgemeine_sonderfertigkeiten = this.parent.items.filter((x) => x.type === "Sonderfertigkeit" && x.system.kategorie === "allgemein").length;
|
||||
this.computed.num_kampf_sonderfertigkeiten = this.parent.items.filter((x) => x.type === "Sonderfertigkeit" && x.system.kategorie === "kampf").length;
|
||||
this.computed.num_vorteile = this.parent.items.filter((x) => x.type === "VorNachteil" && x.system.kategorie === "vorteil").length;
|
||||
this.computed.num_nachteile = this.parent.items.filter((x) => x.type === "VorNachteil" && x.system.kategorie === "nachteil").length;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user