-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the start of prepared spells Plus NPC levels
- Loading branch information
1 parent
c69f82a
commit 896a868
Showing
13 changed files
with
254 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<ol class="inventory-list directory-list"> | ||
{{#each actor.spellbook as |section lvl|}} | ||
<li class="item inventory-header spellbook-header"> | ||
<div class="item-name flexrow"> | ||
<h3>{{section.label}}</h3> | ||
|
||
{{#unless section.isCantrip}} | ||
<!-- <span class="spell-slots-input"> | ||
<input type="text" name="data.spells.spell{{lvl}}.value" value="{{section.uses}}" placeholder="0"/> | ||
</span> | ||
<span class="flex0"> / </span> --> | ||
<span class="spell-max-input"> | ||
<input type="text" name="data.spells.spell{{lvl}}.max" value="{{section.slots}}" placeholder="0"/> | ||
</span> | ||
{{else}} | ||
<!-- <span class="spell-slots">∞</span> | ||
<span class="flex0"> / </span> --> | ||
<span class="spell-max">∞</span> | ||
{{/unless}} | ||
</div> | ||
|
||
<div class="spell-school-header">School</div> | ||
<div class="spell-action-header">Action</div> | ||
|
||
{{#if ../owner}} | ||
<div class="item-controls"> | ||
<a class="item-control item-create" title="Create Spell" data-type="spell" | ||
data-level="{{lvl}}"><i class="fas fa-plus"></i> Add</a> | ||
</div> | ||
{{/if}} | ||
</li> | ||
|
||
|
||
{{#each section.spells as |item i|}} | ||
<li class="item" data-item-id="{{item.id}}"> | ||
<div class="item-name rollable"> | ||
<div class="item-image" style="background-image: url({{item.img}})"></div> | ||
<h4>{{item.name}}</h4> | ||
</div> | ||
|
||
<div class="spell-school">{{item.data.school.str}}</div> | ||
<div class="spell-action">{{item.data.time.value}}</div> | ||
|
||
{{#if ../../owner}} | ||
<div class="item-controls" {{#if section.isCantrip}}style="padding-left:22px;"{{/if}}> | ||
{{#unless section.isCantrip}} | ||
{{#if item.data.prepared.value}} | ||
<a class="item-control item-prepare" title="unprepare Spell"><i class="fas fa-haykal"></i></a> | ||
{{else}} | ||
<a class="item-control item-prepare" title="prepare Spell"><i class="fas fa-circle"></i></a> | ||
{{/if}} | ||
{{/unless}} | ||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a> | ||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> | ||
</div> | ||
{{/if}} | ||
</li> | ||
{{/each}} | ||
|
||
|
||
{{else}} | ||
<li class="item inventory-header spellbook-header spellbook-empty"> | ||
{{#if owner}} | ||
<div class="item-controls pf-bluelist"> | ||
<a class="item-control item-create" title="Create Spell" data-type="spell" | ||
data-level="{{lvl}}"><i class="fas fa-plus"></i> Add Spell</a> | ||
</div> | ||
{{/if}} | ||
</li> | ||
{{/each}} | ||
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<ol class="inventory-list directory-list"> | ||
{{#each actor.spellbook as |section lvl|}} | ||
<li class="item inventory-header spellbook-header"> | ||
<div class="item-name flexrow"> | ||
<h3>{{section.label}}</h3> | ||
|
||
{{#unless section.isCantrip}} | ||
<span class="spell-slots-input"> | ||
<input type="text" name="data.spells.spell{{lvl}}.value" value="{{section.uses}}" placeholder="0"/> | ||
</span> | ||
<span class="flex0"> / </span> | ||
<span class="spell-max-input"> | ||
<input type="text" name="data.spells.spell{{lvl}}.max" value="{{section.slots}}" placeholder="0"/> | ||
</span> | ||
{{else}} | ||
<span class="spell-slots">∞</span> | ||
<span class="flex0"> / </span> | ||
<span class="spell-max">∞</span> | ||
{{/unless}} | ||
</div> | ||
|
||
<div class="spell-school-header">School</div> | ||
<div class="spell-action-header">Action</div> | ||
|
||
{{#if ../owner}} | ||
<div class="item-controls"> | ||
<a class="item-control item-create" title="Create Spell" data-type="spell" | ||
data-level="{{lvl}}"><i class="fas fa-plus"></i> Add</a> | ||
</div> | ||
{{/if}} | ||
</li> | ||
|
||
|
||
{{#each section.spells as |item i|}} | ||
<li class="item" data-item-id="{{item.id}}"> | ||
<div class="item-name rollable"> | ||
<div class="item-image" style="background-image: url({{item.img}})"></div> | ||
<h4>{{item.name}}</h4> | ||
</div> | ||
|
||
<div class="spell-school">{{item.data.school.str}}</div> | ||
<div class="spell-action">{{item.data.time.value}}</div> | ||
|
||
{{#if ../../owner}} | ||
<div class="item-controls" {{#if section.isCantrip}}style="padding-left:22px;"{{/if}}> | ||
{{#unless section.isCantrip}} | ||
{{#if item.data.prepared.value}} | ||
<a class="item-control item-prepare" title="unprepare Spell"><i class="fas fa-haykal"></i></a> | ||
{{else}} | ||
<a class="item-control item-prepare" title="prepare Spell"><i class="fas fa-circle"></i></a> | ||
{{/if}} | ||
{{/unless}} | ||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a> | ||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a> | ||
</div> | ||
{{/if}} | ||
</li> | ||
{{/each}} | ||
|
||
|
||
{{else}} | ||
<li class="item inventory-header spellbook-header spellbook-empty"> | ||
{{#if owner}} | ||
<div class="item-controls pf-bluelist"> | ||
<a class="item-control item-create" title="Create Spell" data-type="spell" | ||
data-level="{{lvl}}"><i class="fas fa-plus"></i> Add Spell</a> | ||
</div> | ||
{{/if}} | ||
</li> | ||
{{/each}} | ||
</ol> |
Oops, something went wrong.