From 3d91e746fe101d0fd3953ea85bf63209987acb6c Mon Sep 17 00:00:00 2001 From: Wrycu Date: Sun, 26 Nov 2023 12:06:56 -0800 Subject: [PATCH] feat(vehicles): add navicomputer * add a toggleable navicomputer to vehicles #1164 --- lang/en.json | 1 + template.json | 5 +++++ templates/actors/ffg-vehicle-sheet.html | 1 + 3 files changed, 7 insertions(+) diff --git a/lang/en.json b/lang/en.json index e41e8df1..36fb039c 100644 --- a/lang/en.json +++ b/lang/en.json @@ -219,6 +219,7 @@ "SWFFG.VehicleFiringArcDorsal": "Dorsal", "SWFFG.VehicleFiringArcVentral": "Ventral", "SWFFG.VehicleFiringArcAll": "All", + "SWFFG.VehicleNavicomputer": "Navicomputer", "SWFFG.DifficultySimple": "Simple", "SWFFG.DifficultyEasy": "Easy", "SWFFG.DifficultyAverage": "Average", diff --git a/template.json b/template.json index bdd8867c..e8878bd9 100644 --- a/template.json +++ b/template.json @@ -525,6 +525,11 @@ "duration" : "months", "type": "Number", "label": "SWFFG.Consumables" + }, + "navicomputer": { + "value": false, + "type": "Boolean", + "label": "SWFFG.VehicleNavicomputer" } } }, diff --git a/templates/actors/ffg-vehicle-sheet.html b/templates/actors/ffg-vehicle-sheet.html index 0a757bd0..eed8edc0 100644 --- a/templates/actors/ffg-vehicle-sheet.html +++ b/templates/actors/ffg-vehicle-sheet.html @@ -110,6 +110,7 @@

"systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="single" title="SWFFG.VehicleSensorRange" type="Dropdown" name="data.stats.sensorRange.value" value=data.stats.sensorRange.value options=this.FFG.sensor_ranges)}} {{/if}} {{!-- Passenger Capacity Box --}} {{> "systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="single" title="SWFFG.VehiclePassengerCapacity" type="Number" name="data.stats.passengerCapacity.value" value=data.stats.passengerCapacity.value )}} {{!-- Consumables Box --}} {{> "systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="split" title="SWFFG.Consumables" fields=(array (object name="data.stats.consumables.value" value=data.stats.consumables.value type="Number" label="SWFFG.ConsumablesAmount") (object name="data.stats.consumables.duration" value=data.stats.consumables.duration type="String" label="SWFFG.ConsumablesDuration") ))}} + {{> "systems/starwarsffg/templates/parts/shared/ffg-block.html" (object blocktype="single" title="SWFFG.VehicleNavicomputer" type="Boolean" name="data.stats.navicomputer.value" value=data.stats.navicomputer.value)}}