forked from GitHub-Mirrors/foundry-sw5e

System main update to be inline with dnd5e 1.1.1 Added active effects to as many sheets as I thought applicable. Please check loot, I made an attempt but it may be broken All .less .css and actor .html updates were made to the old actors. New actors may be broken with this update removed templates\actors\oldActor\parts\actor-effects.html for newer templates\actors\parts\active-effects.html removed module\apps\cast-dialog, templates\apps\cast-cast.html, and templates\items\cast.html. I do not think they are used, I think they were deprecated when powers were treated as items, if not we can add them back in. **NOTE** REQUIRES Foundry 0.7.6
74 lines
3.7 KiB
HTML
74 lines
3.7 KiB
HTML
<form class="{{cssClass}} flexcol" autocomplete="off">
|
|
|
|
{{!-- Item Sheet Header --}}
|
|
<header class="sheet-header flexrow">
|
|
<img class="profile" src="{{item.img}}" title="{{item.name}}" data-edit="img"/>
|
|
|
|
<div class="header-details flexrow">
|
|
<h1 class="charname">
|
|
<input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'SW5E.ItemName' }}"/>
|
|
</h1>
|
|
|
|
<div class="item-subtitle">
|
|
<h4 class="item-type">{{itemType}}</h4>
|
|
</div>
|
|
|
|
<ul class="summary">
|
|
<li>
|
|
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
|
|
{{!-- Item Sheet Navigation --}}
|
|
<nav class="sheet-navigation tabs" data-group="primary">
|
|
<a class="item active" data-tab="description">{{ localize "SW5E.Description" }}</a>
|
|
<a class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</a>
|
|
<!-- <a class="item" data-tab="details">{{ localize "SW5E.Details" }}</a> -->
|
|
</nav>
|
|
|
|
{{!-- Item Sheet Body --}}
|
|
<section class="sheet-body">
|
|
|
|
{{!-- Description Tab --}}
|
|
<div class="tab description" data-group="primary" data-tab="description">
|
|
<div class="background">{{editor content=data.flavorText.value target="data.flavorText.value" button=true editable=editable}}</div>
|
|
<div class="background"><p><strong>Skill Proficiencies:</strong> {{{data.skillProficiencies.value}}}</p></div>
|
|
<div class="background"><p><strong>Tool Proficiencies:</strong> {{{data.toolProficiencies.value}}}</p></div>
|
|
<div class="background"><p><strong>Languages:</strong> {{{data.languages.value}}}</p></div>
|
|
<div class="background"><p><strong>Equipment:</strong> {{{data.equipment.value}}}</p></div>
|
|
<div class="background"><h3>{{{data.flavorName.value}}}</h3></div>
|
|
<div class="background"><p>{{{data.flavorDescription.value}}}</p></div>
|
|
<div class="smalltable"><p>{{{data.flavorOptions.value}}}</p></div>
|
|
<div class="background"><h2>Feature: {{{data.featureName.value}}}</h2></div>
|
|
<div class="background"><p>{{{data.featureText.value}}}</p></div>
|
|
<h2>Background Feat</h2>
|
|
<p>As a further embodiment of the experience and training of your background, you can choose from the following feats:</p>
|
|
<div class="smalltable"><p>{{{data.featOptions.value}}}</p></div>
|
|
<h3>Suggested Characteristics</h3>
|
|
<div class="background"><p>{{{data.suggestedCharacteristics.value}}}</p></div>
|
|
<div class="medtable"><p>{{{data.personalityTraitOptions.value}}}</p></div><p> </p>
|
|
<div class="medtable"><p>{{{data.idealOptions.value}}}</p></div><p> </p>
|
|
<div class="medtable"><p>{{{data.flawOptions.value}}}</p></div><p> </p>
|
|
<div class="medtable"><p>{{{data.bondOptions.value}}}</p></div>
|
|
|
|
<script>
|
|
let nullField = document.querySelectorAll('.background > div');
|
|
|
|
nullField.forEach(function(element) {
|
|
if (element.value === null) {
|
|
element.previousElementSibling.style.display = 'none';
|
|
element.style.display = 'none';
|
|
}
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
{{!-- Effects Tab --}}
|
|
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
|
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
|
</div>
|
|
|
|
</section>
|
|
</form>
|