From 0ff30d2a05c304a13a1fe3cf6bde405e940e30dd Mon Sep 17 00:00:00 2001 From: professorbunbury <69010799+professorbunbury@users.noreply.github.com> Date: Thu, 30 Jul 2020 16:04:59 -0400 Subject: [PATCH] Updating species content Aaaaaaand more JavaScript... --- lang/en.json | 3 +++ module/item/entity.js | 4 ++++ module/item/sheet.js | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/lang/en.json b/lang/en.json index b0b202a1..17618def 100644 --- a/lang/en.json +++ b/lang/en.json @@ -199,6 +199,8 @@ "SW5E.ItemTypeEquipmentPl": "Equipment", "SW5E.ItemTypeLoot": "Loot", "SW5E.ItemTypeLootPl": "Loot", +"SW5E.ItemTypeSpecies": "Species", +"SW5E.ItemTypeSpeciesPl": "Species", "SW5E.ItemTypeTool": "Tool", "SW5E.ItemTypeToolPl": "Tools", "SW5E.ItemTypePower": "Power", @@ -457,6 +459,7 @@ "SW5E.PowerUnprepared": "Unprepared", "SW5E.PowerUsage": "Power Usage", "SW5E.Powerbook": "Powerbook", +"SW5E.SpeciesTraits": "Species Traits", "SW5E.SubclassName": "Subclass Name", "SW5E.Supply": "Supply", "SW5E.Target": "Target", diff --git a/module/item/entity.js b/module/item/entity.js index c259c0a0..a2c5a756 100644 --- a/module/item/entity.js +++ b/module/item/entity.js @@ -160,6 +160,10 @@ export class Item5e extends Item { else labels.featType = "Passive"; } + // Species Items + else if ( itemData.type === "species" ) { + + } // Equipment Items else if ( itemData.type === "equipment" ) { labels.armor = data.armor.value ? `${data.armor.value} AC` : ""; diff --git a/module/item/sheet.js b/module/item/sheet.js index 30bc94be..53960b89 100644 --- a/module/item/sheet.js +++ b/module/item/sheet.js @@ -104,6 +104,10 @@ export class ItemSheet5e extends ItemSheet { else if ( item.type === "feat" ) { props.push(labels.featType); } + + else if ( item.type === "species" ) { + + } // Action type if ( item.data.actionType ) {