add currency and basic display
This commit is contained in:
parent
5d58803256
commit
45e7400e82
7 changed files with 49 additions and 0 deletions
|
@ -113,6 +113,10 @@
|
||||||
"DS4.ProfileWeight": "Gewicht",
|
"DS4.ProfileWeight": "Gewicht",
|
||||||
"DS4.ProfileEyeColor": "Augenfarbe",
|
"DS4.ProfileEyeColor": "Augenfarbe",
|
||||||
"DS4.ProfileSpecialCharacteristics": "Besondere Eigenschaften",
|
"DS4.ProfileSpecialCharacteristics": "Besondere Eigenschaften",
|
||||||
|
"DS4.CurrencyGold": "Gold",
|
||||||
|
"DS4.CurrencySilver": "Silber",
|
||||||
|
"DS4.CurrencyCopper": "Kupfer",
|
||||||
|
"DS4.Currency": "Währung",
|
||||||
"DS4.WarningManageActiveEffectOnOwnedItem": "Das Verwalten von aktiven Effekten innerhalb eines besessen Items wird derzeit nicht unterstützt und wird in einem nachfolgenden Update hinzugefügt.",
|
"DS4.WarningManageActiveEffectOnOwnedItem": "Das Verwalten von aktiven Effekten innerhalb eines besessen Items wird derzeit nicht unterstützt und wird in einem nachfolgenden Update hinzugefügt.",
|
||||||
"DS4.ErrorDiceCritOverlap": "Es gibt eine Überlappung zwischen Patzern und Immersiegen.",
|
"DS4.ErrorDiceCritOverlap": "Es gibt eine Überlappung zwischen Patzern und Immersiegen.",
|
||||||
"DS4.ErrorExplodingRecursionLimitExceeded": "Die maximale Rekursionstiefe für slayende Würfelwürfe wurde überschritten."
|
"DS4.ErrorExplodingRecursionLimitExceeded": "Die maximale Rekursionstiefe für slayende Würfelwürfe wurde überschritten."
|
||||||
|
|
|
@ -113,6 +113,10 @@
|
||||||
"DS4.ProfileWeight": "Weight",
|
"DS4.ProfileWeight": "Weight",
|
||||||
"DS4.ProfileEyeColor": "Eye Color",
|
"DS4.ProfileEyeColor": "Eye Color",
|
||||||
"DS4.ProfileSpecialCharacteristics": "Special Characteristics",
|
"DS4.ProfileSpecialCharacteristics": "Special Characteristics",
|
||||||
|
"DS4.CurrencyGold": "Gold",
|
||||||
|
"DS4.CurrencySilver": "Silver",
|
||||||
|
"DS4.CurrencyCopper": "Copper",
|
||||||
|
"DS4.Currency": "Currency",
|
||||||
"DS4.WarningManageActiveEffectOnOwnedItem": "Managing Active Effects within an Owned Item is not currently supported and will be added in a subsequent update.",
|
"DS4.WarningManageActiveEffectOnOwnedItem": "Managing Active Effects within an Owned Item is not currently supported and will be added in a subsequent update.",
|
||||||
"DS4.ErrorDiceCritOverlap": "There's an overlap between Fumbles and Coups",
|
"DS4.ErrorDiceCritOverlap": "There's an overlap between Fumbles and Coups",
|
||||||
"DS4.ErrorExplodingRecursionLimitExceeded": "Maximum recursion depth for exploding dice roll exceeded"
|
"DS4.ErrorExplodingRecursionLimitExceeded": "Maximum recursion depth for exploding dice roll exceeded"
|
||||||
|
|
|
@ -6,6 +6,7 @@ export interface DS4ActorDataType {
|
||||||
progression: DS4ActorDataProgression;
|
progression: DS4ActorDataProgression;
|
||||||
language: DS4ActorDataLanguage;
|
language: DS4ActorDataLanguage;
|
||||||
profile: DS4ActorDataProfile;
|
profile: DS4ActorDataProfile;
|
||||||
|
currency: DS4ActorDataCurrency;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DS4ActorDataAttributes {
|
interface DS4ActorDataAttributes {
|
||||||
|
@ -83,3 +84,9 @@ interface DS4ActorDataProfile {
|
||||||
eyeColor: string;
|
eyeColor: string;
|
||||||
specialCharacteristics: string;
|
specialCharacteristics: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface DS4ActorDataCurrency {
|
||||||
|
gold: number;
|
||||||
|
silver: number;
|
||||||
|
copper: number;
|
||||||
|
}
|
||||||
|
|
|
@ -188,4 +188,10 @@ export const DS4 = {
|
||||||
eyeColor: "String",
|
eyeColor: "String",
|
||||||
specialCharacteristics: "String",
|
specialCharacteristics: "String",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
currency: {
|
||||||
|
gold: "DS4.CurrencyGold",
|
||||||
|
silver: "DS4.CurrencySilver",
|
||||||
|
copper: "DS4.CurrencyCopper",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -83,6 +83,7 @@ Hooks.once("setup", function () {
|
||||||
"progression",
|
"progression",
|
||||||
"language",
|
"language",
|
||||||
"profile",
|
"profile",
|
||||||
|
"currency",
|
||||||
];
|
];
|
||||||
|
|
||||||
// Exclude some from sorting where the default order matters
|
// Exclude some from sorting where the default order matters
|
||||||
|
|
|
@ -107,6 +107,11 @@
|
||||||
"weight": 0,
|
"weight": 0,
|
||||||
"eyeColor": "",
|
"eyeColor": "",
|
||||||
"specialCharacteristics": ""
|
"specialCharacteristics": ""
|
||||||
|
},
|
||||||
|
"currency": {
|
||||||
|
"gold": 0,
|
||||||
|
"silver": 0,
|
||||||
|
"copper": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -97,6 +97,28 @@
|
||||||
|
|
||||||
<div class="tab inventory" data-group="primary" data-tab="inventory">
|
<div class="tab inventory" data-group="primary" data-tab="inventory">
|
||||||
|
|
||||||
|
|
||||||
|
{{!-- Money --}}
|
||||||
|
<h4 class="items-list-title">{{localize 'DS4.Currency'}}</h4>
|
||||||
|
<ol class="items-list">
|
||||||
|
<li class="item flexrow item-header">
|
||||||
|
<div class="flex3 item-num-val" title="gold">{{config.currency.gold}}</div>
|
||||||
|
<div class="flex3 item-num-val" title="silver">{{config.currency.silver}}</div>
|
||||||
|
<div class="flex3 item-num-val" title="copper">{{config.currency.copper}}</div>
|
||||||
|
</li>
|
||||||
|
<li class="item flexrow">
|
||||||
|
<input class="flex3 item-num-val item-change" data-dtype="Number" type="number" min="0" step="1" data-property="data.currency.copper"
|
||||||
|
value="{{data.currency.gold}}" title="Gold" />
|
||||||
|
<input class="flex3 item-num-val item-change" data-dtype="Number" type="number" min="0" step="1" data-property="data.currency.copper"
|
||||||
|
value="{{data.currency.silver}}" title="Silber" />
|
||||||
|
<input class="flex3 item-num-val item-change" data-dtype="Number" type="number" min="0" step="1" data-property="data.currency.copper"
|
||||||
|
value="{{data.currency.copper}}" title="Kupfer" />
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
{{!-- WEAPONS --}}
|
{{!-- WEAPONS --}}
|
||||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeWeaponPlural'}}</h4>
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeWeaponPlural'}}</h4>
|
||||||
{{!-- {{#if (and (ne itemsByType.weapon undefined) (gt itemsByType.weapon.length 0)) }} --}}
|
{{!-- {{#if (and (ne itemsByType.weapon undefined) (gt itemsByType.weapon.length 0)) }} --}}
|
||||||
|
|
Loading…
Reference in a new issue