diff --git a/app/imports/api/parenting/parenting.js b/app/imports/api/parenting/parenting.js index ecc76e1b..3e6506e9 100644 --- a/app/imports/api/parenting/parenting.js +++ b/app/imports/api/parenting/parenting.js @@ -24,6 +24,9 @@ const allowedParenting = { const allParentTypes = new Set(flatten(Object.values(allowedParenting))); export function canBeParent(type){ + return true; + //TODO until there is a good reason to disallow certain parenting options, + // this should just let the user do whatever return type && allParentTypes.has(type); } diff --git a/app/imports/ui/creature/character/CharacterSheet.vue b/app/imports/ui/creature/character/CharacterSheet.vue index d06a45b3..01de2f4b 100644 --- a/app/imports/ui/creature/character/CharacterSheet.vue +++ b/app/imports/ui/creature/character/CharacterSheet.vue @@ -48,6 +48,9 @@ Inventory + Spells + + Tree @@ -63,6 +66,9 @@ + + + @@ -83,6 +89,7 @@ import StatsTab from '/imports/ui/creature/character/characterSheetTabs/StatsTab.vue'; import FeaturesTab from '/imports/ui/creature/character/characterSheetTabs/FeaturesTab.vue'; import InventoryTab from '/imports/ui/creature/character/characterSheetTabs/InventoryTab.vue'; + import SpellsTab from '/imports/ui/creature/character/characterSheetTabs/SpellsTab.vue'; import TreeTab from '/imports/ui/creature/character/characterSheetTabs/TreeTab.vue'; import { recomputeCreature } from '/imports/api/creature/creatureComputation.js'; @@ -95,6 +102,7 @@ StatsTab, FeaturesTab, InventoryTab, + SpellsTab, TreeTab, }, data(){return { diff --git a/app/imports/ui/creature/character/characterSheetTabs/SpellsTab.vue b/app/imports/ui/creature/character/characterSheetTabs/SpellsTab.vue new file mode 100644 index 00000000..9fd083a4 --- /dev/null +++ b/app/imports/ui/creature/character/characterSheetTabs/SpellsTab.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/app/imports/ui/properties/components/inventory/ContainerCard.vue b/app/imports/ui/properties/components/inventory/ContainerCard.vue index 956a0651..40e574a2 100644 --- a/app/imports/ui/properties/components/inventory/ContainerCard.vue +++ b/app/imports/ui/properties/components/inventory/ContainerCard.vue @@ -19,7 +19,6 @@ - - diff --git a/app/imports/ui/properties/components/spells/SpellListCard.vue b/app/imports/ui/properties/components/spells/SpellListCard.vue new file mode 100644 index 00000000..30f9e75b --- /dev/null +++ b/app/imports/ui/properties/components/spells/SpellListCard.vue @@ -0,0 +1,53 @@ + + + + +