Made initiative a skill of type "check" instead of a modifier
This commit is contained in:
@@ -37,7 +37,7 @@ let creatureSchema = schema({
|
||||
type: {type: String, defaultValue: "pc", allowedValues: ["pc", "npc", "monster"]},
|
||||
|
||||
//computed
|
||||
variables: {type: Object, blackbox: true},
|
||||
variables: {type: Object, blackbox: true, defaultValue: {}},
|
||||
|
||||
//permissions
|
||||
owner: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
|
||||
|
||||
@@ -39,7 +39,6 @@ export default () => ({
|
||||
{"name": "Level 9 Spell Slots", "variableName": "level9SpellSlots", "type": "spellSlot"},
|
||||
|
||||
{"name": "Proficiency Bonus", "variableName": "proficiencyBonus", "type": "modifier"},
|
||||
{"name": "Initiative", "variableName": "initiative", "type": "modifier"},
|
||||
|
||||
{"name": "Carry Capacity Multiplier", "variableName": "carryMultiplier", "type": "utility", "baseValue": 1},
|
||||
{"name": "Rage Damage", "variableName": "rageDamage", "type": "utility"},
|
||||
@@ -71,6 +70,8 @@ export default () => ({
|
||||
{"name": "Intelligence Save", "variableName": "intelligenceSave", "ability": "intelligence", "type":"save"},
|
||||
{"name": "Wisdom Save", "variableName": "wisdomSave", "ability": "wisdom", "type":"save"},
|
||||
{"name": "Charisma Save", "variableName": "charismaSave", "ability": "charisma", "type":"save"},
|
||||
|
||||
{"name": "Initiative", "variableName": "initiative", "ability": "dexterity", "type":"check"},
|
||||
],
|
||||
|
||||
"damageMultipliers": [
|
||||
|
||||
@@ -33,7 +33,7 @@ let skillSchema = schema({
|
||||
allowedValues: [
|
||||
"skill",
|
||||
"save",
|
||||
"stat",
|
||||
"check",
|
||||
"tool",
|
||||
"weapon",
|
||||
"language",
|
||||
|
||||
@@ -39,6 +39,14 @@
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div v-for="check in checks" class="check" :key="check._id">
|
||||
<attribute-card modifier
|
||||
v-bind="check"
|
||||
:data-id="check._id"
|
||||
@click="clickSkill({_id: check._id})"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="hit-dice">
|
||||
<v-card>
|
||||
<v-list>
|
||||
@@ -212,6 +220,14 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
checks(){
|
||||
return Skills.find({
|
||||
charId: this.charId,
|
||||
type: 'check',
|
||||
}, {
|
||||
sort: {order: 1},
|
||||
});
|
||||
},
|
||||
savingThrows(){
|
||||
return Skills.find({
|
||||
charId: this.charId,
|
||||
|
||||
Reference in New Issue
Block a user