add currency and basic display

This commit is contained in:
Siegfried Krug 2021-01-10 19:32:10 +01:00
parent 5d58803256
commit 45e7400e82
7 changed files with 49 additions and 0 deletions

View file

@ -6,6 +6,7 @@ export interface DS4ActorDataType {
progression: DS4ActorDataProgression;
language: DS4ActorDataLanguage;
profile: DS4ActorDataProfile;
currency: DS4ActorDataCurrency;
}
interface DS4ActorDataAttributes {
@ -83,3 +84,9 @@ interface DS4ActorDataProfile {
eyeColor: string;
specialCharacteristics: string;
}
interface DS4ActorDataCurrency {
gold: number;
silver: number;
copper: number;
}

View file

@ -188,4 +188,10 @@ export const DS4 = {
eyeColor: "String",
specialCharacteristics: "String",
},
currency: {
gold: "DS4.CurrencyGold",
silver: "DS4.CurrencySilver",
copper: "DS4.CurrencyCopper",
},
};

View file

@ -83,6 +83,7 @@ Hooks.once("setup", function () {
"progression",
"language",
"profile",
"currency",
];
// Exclude some from sorting where the default order matters