Prepare for version 0.9 #8
No files matched your search
+4
-1
@@ -85,7 +85,10 @@
|
||||
"schaden": "Schaden",
|
||||
"stufe": "Stufe",
|
||||
"ursprung": "Ursprung",
|
||||
"ziel": "Ziel"
|
||||
"ziel": "Ziel",
|
||||
"wirkungsweise": "Wirkungsweise",
|
||||
"vorgang": "Zaubervorgang",
|
||||
"equipped": "Favorisiert"
|
||||
},
|
||||
"Sheets": {
|
||||
"Tabs": {
|
||||
|
||||
@@ -7,16 +7,18 @@ function defineSchema() {
|
||||
required: true,
|
||||
nullable: false,
|
||||
integer: true,
|
||||
initial: 1,
|
||||
initial: 0,
|
||||
min: 0,
|
||||
max: 3
|
||||
}),
|
||||
ursprung: new fields.StringField({ initial: "Kleiner Zauber" }),
|
||||
schaden: new fields.StringField({ initial: "" }),
|
||||
zauberdauer: new fields.StringField({ intial: "1 Aktion" }),
|
||||
wirkungsdauer: new fields.StringField({ intial: "" }),
|
||||
ziel: new fields.StringField({ intial: "selbst" }),
|
||||
reichweite: new fields.StringField({ intial: "" })
|
||||
reichweite: new fields.StringField({ initial: "Kurz" }),
|
||||
zauberdauer: new fields.StringField({ initial: "1 Aktion" }),
|
||||
wirkungsdauer: new fields.StringField({ initial: "1 Runde" }),
|
||||
wirkungsweise: new fields.StringField({ initial: "Einfluss" }),
|
||||
ziel: new fields.StringField({ initial: "1 Wesen" }),
|
||||
vorgang: new fields.StringField({ initial: "Geste" })
|
||||
}),
|
||||
equipped: new fields.BooleanField({ initial: false })
|
||||
};
|
||||
|
||||
@@ -16,7 +16,6 @@ export const loadHelpers = async function () {
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("isdefined", function (value, options) {
|
||||
console.warn(value, value !== undefined);
|
||||
return value !== undefined ? options.fn(this) : options.inverse(this);
|
||||
});
|
||||
|
||||
|
||||
@@ -27,12 +27,12 @@
|
||||
<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 item-name">{{zauber.name}}</p>
|
||||
<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-1 item-name">{{zauber.system.eigenschaften.stufe}}</p>
|
||||
<a class="col-2 fa-solid {{#if zauber.system.equipped}}fa-book-open{{else}}fa-book{{/if}}" data-action="cycleEquip" data-item-id="{{zauber._id}}" style="{{#if zauber.system.equipped}}color: var(--M6-text-brown);{{/if}} margin: 0.5rem 0;"></a>
|
||||
<a class="col-1 fa-solid fa-dice-d20" data-action="rollSpell" data-item-id="{{zauber._id}}" style="margin: 0.5rem 0;"></a>
|
||||
<div class="col-2 d-flex document-controls" style="margin: 0.5rem 0;">
|
||||
<p class="col-2 item-name">{{localize "Midgard6.Zauber.stufe"}} {{zauber.system.eigenschaften.stufe}}</p>
|
||||
<a class="align-self-center col-1 fa-solid {{#if zauber.system.equipped}}fa-book-open{{else}}fa-book{{/if}}" 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" 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"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
type="text"
|
||||
style="margin-bottom: 4px; max-width:10rem"
|
||||
name="{{field.fieldPath}}"
|
||||
id="rollDisplay"
|
||||
placeholder="{{localizeConcat 'Midgard6.Zauber.' field.name}}"
|
||||
value="{{value}}"
|
||||
/>
|
||||
|
||||
@@ -2,8 +2,8 @@ import { CharacterData } from "../data/character-data";
|
||||
import { ItemData } from "../data/item-data";
|
||||
import { WeaponData } from "../data/weapon-data";
|
||||
import { ArmorData } from "../data/armor-data";
|
||||
import {ZauberData } from "../data/zauber-data";
|
||||
import {HintergrundData } from "../data/hintergrund-data";
|
||||
import { ZauberData } from "../data/zauber-data";
|
||||
import { HintergrundData } from "../data/hintergrund-data";
|
||||
|
||||
declare module "fvtt-types/configuration" {
|
||||
interface DataModelConfig {
|
||||
|
||||
Reference in new issue
Block a user