Added 'prepared' field to spells
This commit is contained in:
@@ -25,6 +25,10 @@ let SpellSchema = new SimpleSchema({})
|
||||
type: Boolean,
|
||||
optional: true,
|
||||
},
|
||||
prepared: {
|
||||
type: Boolean,
|
||||
optional: true,
|
||||
},
|
||||
// This spell ignores spell slot rules
|
||||
castWithoutSpellSlots: {
|
||||
type: Boolean,
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
<template lang="html">
|
||||
<div class="attribute-form">
|
||||
<div class="spell-form">
|
||||
<div class="layout row wrap justify-space-between">
|
||||
<smart-switch
|
||||
label="Prepared"
|
||||
style="width: 200px; flex-grow: 0;"
|
||||
class="mx-2"
|
||||
:value="model.prepared"
|
||||
:error-messages="errors.prepared"
|
||||
@change="change('prepared', ...arguments)"
|
||||
/>
|
||||
<smart-switch
|
||||
label="Always prepared"
|
||||
style="width: 200px; flex-grow: 0;"
|
||||
class="mx-2"
|
||||
:value="model.alwaysPrepared"
|
||||
:error-messages="errors.alwaysPrepared"
|
||||
@change="change('alwaysPrepared', ...arguments)"
|
||||
/>
|
||||
</div>
|
||||
<text-field
|
||||
ref="focusFirst"
|
||||
label="Name"
|
||||
@@ -27,16 +45,6 @@
|
||||
@change="change('school', ...arguments)"
|
||||
/>
|
||||
</div>
|
||||
<div class="layout row wrap">
|
||||
<smart-switch
|
||||
label="Always prepared"
|
||||
style="width: 200px; flex-grow: 0;"
|
||||
class="ml-2"
|
||||
:value="model.alwaysPrepared"
|
||||
:error-messages="errors.alwaysPrepared"
|
||||
@change="change('alwaysPrepared', ...arguments)"
|
||||
/>
|
||||
</div>
|
||||
<text-field
|
||||
label="Casting Time"
|
||||
:value="model.castingTime"
|
||||
|
||||
Reference in New Issue
Block a user