diff --git a/lang/en.json b/lang/en.json index 9ffd3b4..0a61c77 100644 --- a/lang/en.json +++ b/lang/en.json @@ -57,6 +57,7 @@ "BITD.Loadout": "Loadout", "BITD.Load": "Load", "BITD.CrewType": "Crew Type", + "BITD.CrewTypeBox": "Click to choose a Crew Type", "BITD.FactionType": "Faction Type", "BITD.Price": "Price", "BITD.Logic": "Logic", @@ -251,7 +252,7 @@ "BITD.RollFortuneSuccess": "The result is good. You have standard or full effect.", "BITD.RollFortunePartialSuccess": "The result is mixed. You have limited or partial effect.", "BITD.RollFortuneFailure": "The result is bad. You have poor or little effect.", - + "BITD.RollGatherInformationSuccess": "Great: You get exceptional details. The information is complete and follow-up questions may expand into related areas or reveal more than you hoped for.", "BITD.RollGatherInformationPartialSuccess": "Standard: You get good details. Clarifying and follow-up questions are possible.", "BITD.RollGatherInformationFailure": "Limited: You get incomplete or partial information. More information gathering will be needed to get all the answers.", diff --git a/module/blades-crew-sheet.js b/module/blades-crew-sheet.js index d3bd675..945e4e7 100644 --- a/module/blades-crew-sheet.js +++ b/module/blades-crew-sheet.js @@ -57,6 +57,9 @@ export class BladesCrewSheet extends BladesSheet { // Everything below here is only needed if the sheet is editable if (!this.options.editable) return; + // Add Crew Type + html.find(".crew-class").click(this._onItemAddClick.bind(this)); + // Update Inventory Item html.find('.item-sheet-open').click(ev => { const element = $(ev.currentTarget).parents(".item"); @@ -105,6 +108,7 @@ export class BladesCrewSheet extends BladesSheet { }); } + /* -------------------------------------------- */ /* Form Submission */ /* -------------------------------------------- */ diff --git a/module/blades-helpers.js b/module/blades-helpers.js index 69a1319..4a7fee7 100644 --- a/module/blades-helpers.js +++ b/module/blades-helpers.js @@ -10,7 +10,7 @@ export class BladesHelpers { */ static removeDuplicatedItemType(item_data, actor) { let dupe_list = []; - let distinct_types = ["crew_reputation", "class", "vice", "background", "heritage"]; + let distinct_types = ["crew_type", "crew_reputation", "class", "vice", "background", "heritage"]; let allowed_types = ["item"]; let should_be_distinct = distinct_types.includes(item_data.type); // If the Item has the exact same name - remove it from list. diff --git a/templates/crew-sheet.html b/templates/crew-sheet.html index 79c9de2..c6e4f12 100644 --- a/templates/crew-sheet.html +++ b/templates/crew-sheet.html @@ -201,7 +201,7 @@