From 7a6f751e3062fa94f5085e1ad3b812c34f4bf15e Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 29 Jul 2017 20:09:48 +0100 Subject: [PATCH] THP added as a character attribute --- rpg-docs/Model/Character/Characters.js | 1 + .../effects/effectEdit/effectEdit.js | 57 +++++++++++-------- .../effects/effectView/effectView.js | 7 +++ 3 files changed, 40 insertions(+), 25 deletions(-) diff --git a/rpg-docs/Model/Character/Characters.js b/rpg-docs/Model/Character/Characters.js index 789b4c9e..f3954f17 100644 --- a/rpg-docs/Model/Character/Characters.js +++ b/rpg-docs/Model/Character/Characters.js @@ -27,6 +27,7 @@ Schemas.Character = new SimpleSchema({ //stats hitPoints: {type: Schemas.Attribute}, + tempHP: {type: Schemas.Attribute}, experience: {type: Schemas.Attribute}, proficiencyBonus: {type: Schemas.Attribute}, speed: {type: Schemas.Attribute}, diff --git a/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js b/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js index 5c121ee8..7575dbf5 100644 --- a/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js +++ b/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js @@ -7,32 +7,36 @@ var stats = [ {stat: "intelligence", name: "Intelligence", group: "Ability Scores"}, {stat: "wisdom", name: "Wisdom", group: "Ability Scores"}, {stat: "charisma", name: "Charisma", group: "Ability Scores"}, - {name: "Strength Save", stat: "strengthSave", group: "Saving Throws"}, - {name: "Dexterity Save", stat: "dexteritySave", group: "Saving Throws"}, - {name: "Constitution Save", stat: "constitutionSave", group: "Saving Throws"}, - {name: "Intelligence Save", stat: "intelligenceSave", group: "Saving Throws"}, - {name: "Wisdom Save", stat: "wisdomSave", group: "Saving Throws"}, - {name: "Charisma Save", stat: "charismaSave", group: "Saving Throws"}, - {name: "Acrobatics", stat: "acrobatics", group: "Skills"}, - {name: "Animal Handling", stat: "animalHandling", group: "Skills"}, - {name: "Arcana", stat: "arcana", group: "Skills"}, - {name: "Athletics", stat: "athletics", group: "Skills"}, - {name: "Deception", stat: "deception", group: "Skills"}, - {name: "History", stat: "history", group: "Skills"}, - {name: "Insight", stat: "insight", group: "Skills"}, - {name: "Intimidation", stat: "intimidation", group: "Skills"}, - {name: "Investigation", stat: "investigation", group: "Skills"}, - {name: "Medicine", stat: "medicine", group: "Skills"}, - {name: "Nature", stat: "nature", group: "Skills"}, - {name: "Perception", stat: "perception", group: "Skills"}, - {name: "Performance", stat: "performance", group: "Skills"}, - {name: "Persuasion", stat: "persuasion", group: "Skills"}, - {name: "Religion", stat: "religion", group: "Skills"}, - {name: "Sleight of Hand", stat: "sleightOfHand", group: "Skills"}, - {name: "Stealth", stat: "stealth", group: "Skills"}, - {name: "Survival", stat: "survival", group: "Skills"}, - {name: "Initiative", stat: "initiative", group: "Skills"}, + + {stat: "strengthSave", name: "Strength Save", group: "Saving Throws"}, + {stat: "dexteritySave", name: "Dexterity Save", group: "Saving Throws"}, + {stat: "constitutionSave", name: "Constitution Save", group: "Saving Throws"}, + {stat: "intelligenceSave", name: "Intelligence Save", group: "Saving Throws"}, + {stat: "wisdomSave", name: "Wisdom Save", group: "Saving Throws"}, + {stat: "charismaSave", name: "Charisma Save", group: "Saving Throws"}, + + {stat: "acrobatics", name: "Acrobatics", group: "Skills"}, + {stat: "animalHandling", name: "Animal Handling", group: "Skills"}, + {stat: "arcana", name: "Arcana", group: "Skills"}, + {stat: "athletics", name: "Athletics", group: "Skills"}, + {stat: "deception", name: "Deception", group: "Skills"}, + {stat: "history", name: "History", group: "Skills"}, + {stat: "insight", name: "Insight", group: "Skills"}, + {stat: "intimidation", name: "Intimidation", group: "Skills"}, + {stat: "investigation", name: "Investigation", group: "Skills"}, + {stat: "medicine", name: "Medicine", group: "Skills"}, + {stat: "nature", name: "Nature", group: "Skills"}, + {stat: "perception", name: "Perception", group: "Skills"}, + {stat: "performance", name: "Performance", group: "Skills"}, + {stat: "persuasion", name: "Persuasion", group: "Skills"}, + {stat: "religion", name: "Religion", group: "Skills"}, + {stat: "sleightOfHand", name: "Sleight of Hand", group: "Skills"}, + {stat: "stealth", name: "Stealth", group: "Skills"}, + {stat: "survival", name: "Survival", group: "Skills"}, + {stat: "initiative", name: "Initiative", group: "Skills"}, + {stat: "hitPoints", name: "Hit Points", group: "Stats"}, + {stat: "tempHP", name: "Temporary Hit Points", group: "Stats"}, {stat: "armor", name: "Armor", group: "Stats"}, {stat: "dexterityArmor", name: "Dexterity Armor Bonus", group: "Stats"}, {stat: "speed", name: "Speed", group: "Stats"}, @@ -44,6 +48,7 @@ var stats = [ {stat: "expertiseDice", name: "Expertise Dice", group: "Stats"}, {stat: "superiorityDice", name: "Superiority Dice", group: "Stats"}, {stat: "carryMultiplier", name: "Carry Capacity Multiplier", group: "Stats"}, + {stat: "level1SpellSlots", name: "level 1", group: "Spell Slots"}, {stat: "level2SpellSlots", name: "level 2", group: "Spell Slots"}, {stat: "level3SpellSlots", name: "level 3", group: "Spell Slots"}, @@ -53,10 +58,12 @@ var stats = [ {stat: "level7SpellSlots", name: "level 7", group: "Spell Slots"}, {stat: "level8SpellSlots", name: "level 8", group: "Spell Slots"}, {stat: "level9SpellSlots", name: "level 9", group: "Spell Slots"}, + {stat: "d6HitDice", name: "d6 Hit Dice", group: "Hit Dice"}, {stat: "d8HitDice", name: "d8 Hit Dice", group: "Hit Dice"}, {stat: "d10HitDice", name: "d10 Hit Dice", group: "Hit Dice"}, {stat: "d12HitDice", name: "d12 Hit Dice", group: "Hit Dice"}, + {stat: "acidMultiplier", name: "Acid", group: "Weakness/Resistance"}, {stat: "bludgeoningMultiplier", name: "Bludgeoning", group: "Weakness/Resistance"}, {stat: "coldMultiplier", name: "Cold", group: "Weakness/Resistance"}, diff --git a/rpg-docs/client/views/character/effects/effectView/effectView.js b/rpg-docs/client/views/character/effects/effectView/effectView.js index cd86df70..a7bad92f 100644 --- a/rpg-docs/client/views/character/effects/effectView/effectView.js +++ b/rpg-docs/client/views/character/effects/effectView/effectView.js @@ -5,12 +5,14 @@ var stats = { "intelligence":{"name":"Intelligence"}, "wisdom":{"name":"Wisdom"}, "charisma":{"name":"Charisma"}, + "strengthSave":{"name":"Strength Save"}, "dexteritySave":{"name":"Dexterity Save"}, "constitutionSave":{"name":"Constitution Save"}, "intelligenceSave":{"name":"Intelligence Save"}, "wisdomSave":{"name":"Wisdom Save"}, "charismaSave":{"name":"Charisma Save"}, + "acrobatics":{"name":"Acrobatics"}, "animalHandling":{"name":"Animal Handling"}, "arcana":{"name":"Arcana"}, @@ -30,7 +32,9 @@ var stats = { "stealth":{"name":"Stealth"}, "survival":{"name":"Survival"}, "initiative":{"name":"Initiative"}, + "hitPoints":{"name":"Hit Points"}, + "tempHP":{"name":"Temporary Hit Points"}, "armor":{"name":"Armor"}, "dexterityArmor":{"name":"Dexterity Armor Bonus"}, "speed":{"name":"Speed"}, @@ -42,6 +46,7 @@ var stats = { "expertiseDice":{"name":"Expertise Dice"}, "superiorityDice":{"name":"Superiority Dice"}, "carryMultiplier": {"name": "Carry Capacity Multiplier"}, + "level1SpellSlots":{"name":"level 1 Spell Slots"}, "level2SpellSlots":{"name":"level 2 Spell Slots"}, "level3SpellSlots":{"name":"level 3 Spell Slots"}, @@ -51,10 +56,12 @@ var stats = { "level7SpellSlots":{"name":"level 7 Spell Slots"}, "level8SpellSlots":{"name":"level 8 Spell Slots"}, "level9SpellSlots":{"name":"level 9 Spell Slots"}, + "d6HitDice":{"name":"d6 Hit Dice"}, "d8HitDice":{"name":"d8 Hit Dice"}, "d10HitDice":{"name":"d10 Hit Dice"}, "d12HitDice":{"name":"d12 Hit Dice"}, + "acidMultiplier":{"name":"Acid damage", "group": "Weakness/Resistance"}, "bludgeoningMultiplier":{ "name":"Bludgeoning damage", "group": "Weakness/Resistance",