- {{> printedAbility ability="strength" title="Strength" color="red"}}
- {{> printedAbility ability="dexterity" title="Dexterity" color="indigo"}}
- {{> printedAbility ability="constitution" title="Constitution" color="green"}}
- {{> printedAbility ability="intelligence" title="Intelligence" color="deep-orange"}}
- {{> printedAbility ability="wisdom" title="Wisdom" color="purple"}}
- {{> printedAbility ability="charisma" title="Charisma" color="pink"}}
+ {{> printedAbility ability="strength" title="Strength"}}
+ {{> printedAbility ability="dexterity" title="Dexterity"}}
+ {{> printedAbility ability="constitution" title="Constitution"}}
+ {{> printedAbility ability="intelligence" title="Intelligence"}}
+ {{> printedAbility ability="wisdom" title="Wisdom"}}
+ {{> printedAbility ability="charisma" title="Charisma"}}
-
+
+ Proficiencies
+
+
+ {{#if weaponProfs.length}}
+
Weapons
+ {{/if}}
+ {{#each weaponProfs}}
+ {{> printedProficiency}}
+ {{/each}}
+ {{#if armorProfs.length}}
+
Armor
+ {{/if}}
+ {{#each armorProfs}}
+ {{> printedProficiency}}
+ {{/each}}
+ {{#if toolProfs.length}}
+
Tools
+ {{/if}}
+ {{#each toolProfs}}
+ {{> printedProficiency}}
+ {{/each}}
+
- {{> printedSquareStat stat="armor" name="Armor Class" color="teal"}}
+ {{> printedSquareStat stat="armor" name="Armor Class"}}
- {{> printedSquareStat stat="initiative" name="Initiative" color="teal"}}
+ {{> printedSquareStat stat="initiative" name="Initiative" isSkill="true"}}
- {{> printedSquareStat stat="speed" name="Speed" color="teal"}}
+ {{> printedSquareStat stat="speed" name="Speed"}}
@@ -97,13 +119,35 @@
- /{{characterCalculate "attributeValue" _id "hitPoints"}}
+ /{{characterCalculate "attributeBase" _id "hitPoints"}}
-
-
-
-
+
+
Temporary Hit Points
+
+
+
+
+
+ Hit Dice
+
+
diff --git a/rpg-docs/client/views/character/printedCharacterSheet/printedCharacterSheet.js b/rpg-docs/client/views/character/printedCharacterSheet/printedCharacterSheet.js
index 1a2b9da4..638b89e7 100644
--- a/rpg-docs/client/views/character/printedCharacterSheet/printedCharacterSheet.js
+++ b/rpg-docs/client/views/character/printedCharacterSheet/printedCharacterSheet.js
@@ -14,4 +14,16 @@ Template.printedCharacterSheet.helpers({
classes: function(){
return Classes.find({charId: this._id}, {sort: {createdAt: 1}});
},
+ weaponProfs: function(){
+ var profs = Proficiencies.find({charId: this._id, type: "weapon"});
+ return removeDuplicateProficiencies(profs);
+ },
+ armorProfs: function(){
+ var profs = Proficiencies.find({charId: this._id, type: "armor"});
+ return removeDuplicateProficiencies(profs);
+ },
+ toolProfs: function(){
+ var profs = Proficiencies.find({charId: this._id, type: "tool"});
+ return removeDuplicateProficiencies(profs);
+ },
});
diff --git a/rpg-docs/client/views/character/printedCharacterSheet/printedProficiency/printedProficiency.html b/rpg-docs/client/views/character/printedCharacterSheet/printedProficiency/printedProficiency.html
new file mode 100644
index 00000000..276f5856
--- /dev/null
+++ b/rpg-docs/client/views/character/printedCharacterSheet/printedProficiency/printedProficiency.html
@@ -0,0 +1,6 @@
+
+
+
diff --git a/rpg-docs/client/views/character/printedCharacterSheet/printedProficiency/printedProficiency.js b/rpg-docs/client/views/character/printedCharacterSheet/printedProficiency/printedProficiency.js
new file mode 100644
index 00000000..1c3d1d69
--- /dev/null
+++ b/rpg-docs/client/views/character/printedCharacterSheet/printedProficiency/printedProficiency.js
@@ -0,0 +1,40 @@
+Template.printedProficiency.helpers({
+ profIcon: function(){
+ var prof = this.value;
+ if (prof > 0 && prof < 1) return "image:brightness-2";
+ if (prof === 1) return "image:brightness-1";
+ if (prof > 1) return "av:album";
+ return "radio-button-off";
+ },
+ getName: function(){
+ if (this.type === "skill") return skills[this.name];
+ if (this.type === "save") return saves[this.name];
+ return this.name;
+ },
+});
+
+Template.printedProficiency.events({
+ "click .proficiency": function(event, instance){
+ if (this.parent.collection == "Characters") {
+ if (this.parent.group == "background") {
+ pushDialogStack({
+ template: "backgroundDialog",
+ data: {
+ "charId": this.charId,
+ "field":"background",
+ "title":"Background",
+ "color":"j",
+ },
+ element: event.currentTarget,
+ })
+ return;
+ }
+ }
+
+ openParentDialog({
+ parent: this.parent,
+ charId: this.charId,
+ element: event.currentTarget,
+ });
+ }
+});