Skip to content

Commit 469baba

Browse files
committed
Add missing cost field to weapon module data model
1 parent cc3a075 commit 469baba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

module/documents/items/classFeature/pilot/weapon-module-data-model.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export class WeaponModuleDataModel extends RollableClassFeatureDataModel {
110110
choices: Object.keys(CONFIG.FU.weaponCategoriesWithoutCustom),
111111
}),
112112
complex: new BooleanField(),
113+
cost: new NumberField({ initial: 100, min: 0, integer: true, nullable: false }),
113114
quality: new StringField(),
114115
shield: new SchemaField({
115116
defense: new NumberField({ initial: 2 }),

templates/feature/pilot/weapon-module-sheet.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<div class="resource-content flexcol flex-group-center">
150150
<label class="resource-label-m flexshrink">{{localize 'FU.Cost'}}</label>
151151
<div class="flexrow">
152-
<input type="number" name="system.cost.value" value="{{system.cost.value}}"
152+
<input type="number" name="system.data.cost" value="{{system.data.cost}}"
153153
class="resource-inputs select-dropdown-m resource-text-m">
154154
</div>
155155
</div>

0 commit comments

Comments
 (0)