mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
[PR] [Feature] Feature form labels + SRD Update (Adversaries & Environments) (#1429)
* New labels. Time to print them somewhere. * Action buttons have icons. Pretty Iconic * Features tweaked to support only on limited actors * Duplicate ActionTypes+references are removed. * Adversary and Environment SRD entries updated. * Updated name field workflow in character actor. * Adversary name fields are improved as well. * Revert "Updated name field workflow in character actor." This reverts commit66924c530f. * Revert "Adversary name fields are improved as well." This reverts commitf60e8cffda. * Fixed prototype token in Abandoned Grove * Label change --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
This commit is contained in:
parent
474cf28a53
commit
7d1e70f66f
152 changed files with 731 additions and 405 deletions
|
|
@ -324,7 +324,6 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
|
|||
_getTags() {
|
||||
const tags = [
|
||||
game.i18n.localize(`DAGGERHEART.ACTIONS.TYPES.${this.type}.name`),
|
||||
game.i18n.localize(`DAGGERHEART.CONFIG.ActionType.${this.actionType}`)
|
||||
];
|
||||
|
||||
return tags;
|
||||
|
|
|
|||
|
|
@ -141,6 +141,12 @@ export function ActionMixin(Base) {
|
|||
return this.documentName;
|
||||
}
|
||||
|
||||
//Getter for icons
|
||||
get typeIcon() {
|
||||
const config = CONFIG.DH.ACTIONS.actionTypes[this.type];
|
||||
return config?.icon || 'fa-question'; // Fallback icon just in case
|
||||
}
|
||||
|
||||
get relativeUUID() {
|
||||
return `.Item.${this.item.id}.Action.${this.id}`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,13 @@ export default class DHFeature extends BaseDataItem {
|
|||
initial: null
|
||||
}),
|
||||
multiclassOrigin: new fields.BooleanField({ initial: false }),
|
||||
identifier: new fields.StringField()
|
||||
identifier: new fields.StringField(),
|
||||
featureForm: new fields.StringField({
|
||||
required: true,
|
||||
initial: 'passive',
|
||||
choices: CONFIG.DH.ITEM.featureForm,
|
||||
label: 'DAGGERHEART.CONFIG.FeatureForm.label'
|
||||
})
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue