diff --git a/rpg-docs/Model/Character/SpellLists.js b/rpg-docs/Model/Character/SpellLists.js
index 0cac6445..50e1bc1a 100644
--- a/rpg-docs/Model/Character/SpellLists.js
+++ b/rpg-docs/Model/Character/SpellLists.js
@@ -3,10 +3,12 @@ SpellLists = new Meteor.Collection("spellLists");
Schemas.SpellLists = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
name: {type: String},
+ description: {type: String, optional: true},
saveDC: {type: String, optional: true},
attackBonus: {type: String, optional: true},
maxPrepared: {type: String, optional: true},
- "settings.showUnprepared": {type: Boolean, defaultValue: true}
+ color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "green"},
+ "settings.showUnprepared": {type: Boolean, defaultValue: true},
});
SpellLists.attachSchema(Schemas.SpellLists);
diff --git a/rpg-docs/client/globalHelpers/evaluate.js b/rpg-docs/client/globalHelpers/evaluate.js
new file mode 100644
index 00000000..14b04ac8
--- /dev/null
+++ b/rpg-docs/client/globalHelpers/evaluate.js
@@ -0,0 +1,8 @@
+Template.registerHelper("evaluate", function(charId, string){
+ return evaluate(charId, string);
+});
+
+Template.registerHelper("evaluateSigned", function(charId, string){
+ var number = evaluate(charId, string);
+ return number > 0? "+" + number : "" + number;
+});
diff --git a/rpg-docs/client/views/character/inventory/inventory.css b/rpg-docs/client/views/character/inventory/inventory.css
index 323e74ce..61058be5 100644
--- a/rpg-docs/client/views/character/inventory/inventory.css
+++ b/rpg-docs/client/views/character/inventory/inventory.css
@@ -1,10 +1,7 @@
-#inventory {
- padding: 4px;
-}
-
.containers {
display: flex;
flex-wrap: wrap;
+ padding: 4px;
}
.container {
@@ -16,6 +13,7 @@
cursor: pointer;
margin: -16px -16px 0 -16px;
padding: 16px;
+ position: relative;
}
.equipmentTop {
@@ -39,6 +37,16 @@
transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
height: 40px;
margin: 1px 0 1px 0;
+ font-size: 16px;
+ color: rgba(0,0,0,0.87);
+ letter-spacing: 0.010em;
+}
+
+.inventoryItem /deep/ .button-content {
+ -webkit-flex: 1;
+ flex: 1;
+ -webkit-flex-basis: 0.000000001px;
+ flex-basis: 0.000000001px;
}
.inventoryItem[hero] {
diff --git a/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.css b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.css
new file mode 100644
index 00000000..bb3c280d
--- /dev/null
+++ b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.css
@@ -0,0 +1,3 @@
+.spellListDialog .colorDropdown {
+ top: 0;
+}
\ No newline at end of file
diff --git a/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.html b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.html
new file mode 100644
index 00000000..fd4301b1
--- /dev/null
+++ b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.html
@@ -0,0 +1,48 @@
+
+ {{#with spellList}}
+
+
+
+
+
+
+
+