Added a couple of extra fields to the "item" Item type for sheet flexibility.

This commit is contained in:
Justin Ross 2022-07-05 14:19:37 -07:00 committed by megastruktur
parent 15fa3a5ec8
commit 9fa94fe20b
3 changed files with 16 additions and 3 deletions

View file

@ -55,6 +55,7 @@
"BITD.LessEffect": "Less Effect",
"BITD.Description": "Description",
"BITD.Loadout": "Loadout",
"BITD.Load": "Load",
"BITD.CrewType": "Crew Type",
"BITD.FactionType": "Faction Type",
"BITD.Price": "Price",
@ -193,6 +194,9 @@
"BITD.AddAbility": "Add Ability",
"BITD.AddItem": "Add Item",
"BITD.Uses": "No. of Uses",
"BITD.NumberAvailable": "Number Available",
"BITD.AdditionalInfo": "Additional Information",
"BITD.Position": "Position",
"BITD.Effect": "Effect",

View file

@ -257,7 +257,10 @@
"templates": ["default", "logic", "activatedEffect"],
"class": "",
"load": 0,
"equipped" : false
"uses": 1,
"additional_info": "",
"equipped" : false,
"num_available": 1
},
"class": {
"templates": ["default", "logic", "activatedEffect"],

View file

@ -13,9 +13,15 @@
<input id="item-load" type="text" name="data.load" value="{{data.load}}">
<label class="label-stripe">{{localize "BITD.Class"}}</label>
<input id="item-class" type="text" name="data.class" value="{{data.class}}">
<label class="label-stripe">{{localize "BITD.Uses"}}</label>
<input id="item-uses" type="text" name="data.uses" value="{{data.uses}}">
<label class="label-stripe">{{localize "BITD.NumberAvailable"}}</label>
<input id="item-num_available" type="text" name="data.num_available" value="{{data.num_available}}">
<label class="label-stripe">{{localize "BITD.AdditionalInfo"}}</label>
<textarea id="item-additional_info" type="text" name="data.additional_info" value="">{{data.additional_info}}</textarea>
{{#if isGM}}
<div class="label-stripe">{{localize "BITD.Logic"}}</div>
<textarea name="data.logic">{{{data.logic}}}</textarea>
<!-- <div class="label-stripe">{{localize "BITD.Logic"}}</div> -->
<!-- <textarea name="data.logic">{{{data.logic}}}</textarea> -->
<div class="label-stripe">{{localize "BITD.Effects"}}</div>
<div id="effects">{{> "systems/blades-in-the-dark/templates/parts/active-effects.html"}}</div>
{{/if}}