Add minimap waypoints
This commit is contained in:
parent
f1d0d781d8
commit
9c967aa354
2 changed files with 7 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ const { fields } = foundry.data;
|
||||||
|
|
||||||
export class HeroData extends foundry.abstract.TypeDataModel {
|
export class HeroData extends foundry.abstract.TypeDataModel {
|
||||||
|
|
||||||
|
// MARK: Token Attrs
|
||||||
static get trackableAttributes() {
|
static get trackableAttributes() {
|
||||||
return {
|
return {
|
||||||
bar: [
|
bar: [
|
||||||
|
|
@ -22,6 +23,7 @@ export class HeroData extends foundry.abstract.TypeDataModel {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// MARK: Schema
|
||||||
static defineSchema() {
|
static defineSchema() {
|
||||||
return {
|
return {
|
||||||
ability: new fields.SchemaField({
|
ability: new fields.SchemaField({
|
||||||
|
|
@ -119,6 +121,7 @@ export class HeroData extends foundry.abstract.TypeDataModel {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// MARK: Base Data
|
||||||
prepareBaseData() {
|
prepareBaseData() {
|
||||||
super.prepareBaseData();
|
super.prepareBaseData();
|
||||||
|
|
||||||
|
|
@ -132,6 +135,7 @@ export class HeroData extends foundry.abstract.TypeDataModel {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// MARK: Derived Data
|
||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
super.prepareDerivedData();
|
super.prepareDerivedData();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { gameTerms } from "../../gameTerms.mjs";
|
||||||
const { fields } = foundry.data;
|
const { fields } = foundry.data;
|
||||||
|
|
||||||
export class WeaponData extends foundry.abstract.TypeDataModel {
|
export class WeaponData extends foundry.abstract.TypeDataModel {
|
||||||
|
// MARK: Schema
|
||||||
static defineSchema() {
|
static defineSchema() {
|
||||||
return {
|
return {
|
||||||
traits: new fields.SetField(
|
traits: new fields.SetField(
|
||||||
|
|
@ -32,10 +33,12 @@ export class WeaponData extends foundry.abstract.TypeDataModel {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// MARK: Base Data
|
||||||
prepareBaseData() {
|
prepareBaseData() {
|
||||||
super.prepareBaseData();
|
super.prepareBaseData();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// MARK: Derived Data
|
||||||
prepareDerivedData() {
|
prepareDerivedData() {
|
||||||
super.prepareDerivedData();
|
super.prepareDerivedData();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue