add a description field to all item types

This commit is contained in:
Sven Balzer 2025-05-16 07:33:34 +02:00
parent 3f18c11456
commit 96851a7100
8 changed files with 26 additions and 7 deletions

View File

@ -123,4 +123,8 @@
{{DSA41_input "system.fernkampfwaffe.modifikator5"}} {{DSA41_input "system.fernkampfwaffe.modifikator5"}}
</div> </div>
</div> </div>
<div>
{{DSA41_input "system.beschreibung" elementType="prose-mirror"}}
</div>
</div> </div>

View File

@ -9,4 +9,8 @@
</div> </div>
</div> </div>
</div> </div>
<div>
{{DSA41_input "system.beschreibung" elementType="prose-mirror"}}
</div>
</div> </div>

View File

@ -13,7 +13,6 @@
</div> </div>
</div> </div>
<div> <div>
<prose-mirror name="system.beschreibung" value="{{item.system.beschreibung}}" compact="true"> {{DSA41_input "system.beschreibung" elementType="prose-mirror"}}
</prose-mirror>
</div> </div>
</div> </div>

View File

@ -36,4 +36,8 @@
<span>{{localize "DSA41.ruestungen.gesamt_behinderung"}}</span> <span>{{localize "DSA41.ruestungen.gesamt_behinderung"}}</span>
<div>{{DSA41_input "system.gesamt_behinderung"}}</div> <div>{{DSA41_input "system.gesamt_behinderung"}}</div>
</div> </div>
<div>
{{DSA41_input "system.beschreibung" elementType="prose-mirror"}}
</div>
</div> </div>

View File

@ -13,8 +13,6 @@
</div> </div>
</div> </div>
<div> <div>
<prose-mirror name="system.beschreibung" value="{{item.system.beschreibung}}" compact="true"> {{DSA41_input "system.beschreibung" elementType="prose-mirror"}}
</prose-mirror>
</div> </div>
</div> </div>

View File

@ -14,4 +14,7 @@
</div> </div>
</div> </div>
</div> </div>
<div>
{{DSA41_input "system.beschreibung" elementType="prose-mirror"}}
</div>
</div> </div>

View File

@ -12,7 +12,6 @@
</div> </div>
</div> </div>
<div> <div>
<prose-mirror name="system.beschreibung" value="{{item.system.beschreibung}}" compact="true"> {{DSA41_input "system.beschreibung" elementType="prose-mirror"}}
</prose-mirror>
</div> </div>
</div> </div>

View File

@ -776,6 +776,8 @@ class DSA41_GegenstandData extends TypeDataModel {
return { return {
gewicht: new GewichtField(), gewicht: new GewichtField(),
preis: new PreisField(), preis: new PreisField(),
beschreibung: new StringField({ initial: "" }),
}; };
} }
} }
@ -799,6 +801,8 @@ class DSA41_RuestungData extends TypeDataModel {
gesamt_ruestungsschutz: new NumberField({ integer: false, initial: 0, min: 0 }), gesamt_ruestungsschutz: new NumberField({ integer: false, initial: 0, min: 0 }),
gesamt_behinderung: new NumberField({ integer: false, initial: 0, min: 0 }), gesamt_behinderung: new NumberField({ integer: false, initial: 0, min: 0 }),
beschreibung: new StringField({ initial: "" }),
}; };
} }
} }
@ -811,6 +815,8 @@ class DSA41_BewaffnungData extends TypeDataModel {
gewicht: new GewichtField(), gewicht: new GewichtField(),
preis: new PreisField(), preis: new PreisField(),
beschreibung: new StringField({ initial: "" }),
nahkampfwaffe: new SchemaField({ nahkampfwaffe: new SchemaField({
aktiv: new BooleanField({ initial: false }), aktiv: new BooleanField({ initial: false }),
@ -911,6 +917,8 @@ class DSA41_TalentData extends TypeDataModel {
attribute3: new AttributeChoiceField(), attribute3: new AttributeChoiceField(),
talentwert: new NumberField({ integer: true, initial: 0 }), talentwert: new NumberField({ integer: true, initial: 0 }),
beschreibung: new StringField({ initial: "" }),
}; };
} }
} }