diff --git a/lang/en.json b/lang/en.json index 426ad21..02e0a33 100644 --- a/lang/en.json +++ b/lang/en.json @@ -390,6 +390,8 @@ "newArmor": "New Armor", "newWeapon": "New Weapon", "newTalent": "New Talent", + "newTrait": "New Trait", + "newAbility": "New Ability", "newSkill": "New Skill", "newImplant": "New Implant", "newEquipment": "New Equipment", diff --git a/module/applications/sheets/creature-sheet.mjs b/module/applications/sheets/creature-sheet.mjs index 6188e45..8ce5a27 100644 --- a/module/applications/sheets/creature-sheet.mjs +++ b/module/applications/sheets/creature-sheet.mjs @@ -26,7 +26,7 @@ export default class FTLNomadCreatureSheet extends FTLNomadActorSheet { template: "templates/generic/tab-navigation.hbs", }, traits: { - template: "systems/fvtt-ftl-nomad/templates/creature-trait.hbs", + template: "systems/fvtt-ftl-nomad/templates/creature-sheet-trait.hbs", }, biography: { template: "systems/fvtt-ftl-nomad/templates/creature-biography.hbs", diff --git a/templates/character-main.hbs b/templates/character-main.hbs index 2c29396..cc384c9 100644 --- a/templates/character-main.hbs +++ b/templates/character-main.hbs @@ -33,7 +33,7 @@ {{formField systemFields.species value=system.species rootId=partId disabled=isPlayMode}} {{formField systemFields.archetype value=system.archetype rootId=partId disabled=isPlayMode}}
- {{formField systemFields.heroPoints value=system.heroPoints rootId=partId disabled=isPlayMode}} + {{formField systemFields.heroPoints value=system.heroPoints rootId=partId }} {{formField systemFields.armor.fields.value value=system.armor.value rootId=partId disabled=isPlayMode}}
diff --git a/templates/creature-sheet-trait.hbs b/templates/creature-sheet-trait.hbs new file mode 100644 index 0000000..db48efc --- /dev/null +++ b/templates/creature-sheet-trait.hbs @@ -0,0 +1,50 @@ +
+ +
+ {{localize "FTLNOMAD.Label.traits"}}{{#if isEditMode}} + {{/if}} + +
+ {{#each traits as |item|}} +
+ +
+ {{item.name}} +
+
+ + +
+
+ {{/each}} +
+
+ +
+ {{localize "FTLNOMAD.Label.abilities"}}{{#if isEditMode}} + {{/if}} + +
+ {{#each abilities as |item|}} + {{!log 'armor' this}} +
+ +
+ {{item.name}} +
+
+ + +
+
+ {{/each}} +
+
+ +
\ No newline at end of file diff --git a/templates/creature-trait.hbs b/templates/creature-trait.hbs index db48efc..e4f83a8 100644 --- a/templates/creature-trait.hbs +++ b/templates/creature-trait.hbs @@ -1,50 +1,17 @@ -
- +
+
+ + {{formInput fields.name value=source.name}} +
+
- {{localize "FTLNOMAD.Label.traits"}}{{#if isEditMode}} - {{/if}} - -
- {{#each traits as |item|}} -
- -
- {{item.name}} -
-
- - -
-
- {{/each}} -
+ {{formField systemFields.isAdvantage value=system.isAdvantage}}
- {{localize "FTLNOMAD.Label.abilities"}}{{#if isEditMode}} - {{/if}} - -
- {{#each abilities as |item|}} - {{!log 'armor' this}} -
- -
- {{item.name}} -
-
- - -
-
- {{/each}} -
+ {{localize "FTLNOMAD.Label.description"}} + {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" + toggled=true}}
\ No newline at end of file