DND5e Core 1.3.5

DND5e Core 1.3.5 modded to SW5e System

Combining with DND5e Core 1.3.2 to see one big commit since last core update

DND5e Core 1.3.2 modded to SW5e System
This commit is contained in:
supervj 2021-05-18 09:11:03 -04:00
parent c208552f70
commit b56a074697
147 changed files with 3615 additions and 1875 deletions

View file

@ -60,8 +60,11 @@
</footer>
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "SW5E.HitDice" }}</h4>
<li class="attribute hit-dice">
<h4 class="attribute-name box-title">
{{ localize "SW5E.HitDice" }}
<a class="config-button" data-action="hit-dice" title="{{localize 'SW5E.HitDiceConfig'}}"><i class="fas fa-cog"></i></a>
</h4>
<div class="attribute-value multiple">
<label class="hit-dice">{{data.attributes.hd}} <span class="sep"> / </span> {{data.details.level}}</label>
</div>
@ -131,10 +134,10 @@
<h4 class="ability-name box-title rollable">{{ability.label}}</h4>
<input class="ability-score" name="data.abilities.{{id}}.value" type="number" value="{{ability.value}}" placeholder="10"/>
<div class="ability-modifiers flexrow">
<span class="ability-mod" title="Modifier">{{numberFormat ability.mod decimals=0 sign=true}}</span>
<span class="ability-mod" title="{{ localize 'SW5E.Modifier' }}">{{numberFormat ability.mod decimals=0 sign=true}}</span>
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.proficient}}" data-dtype="Number"/>
<a class="proficiency-toggle ability-proficiency" title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
<span class="ability-save" title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
<span class="ability-save" title="{{ localize 'SW5E.SavingThrow' }}">{{numberFormat ability.save decimals=0 sign=true}}</span>
</div>
</li>
{{/each}}
@ -142,15 +145,17 @@
{{!-- Skills --}}
<ul class="skills-list">
{{#each data.skills as |skill s|}}
{{#each config.skills as |label s|}}
{{#with (lookup ../data.skills s) as |skill|}}
<li class="skill flexrow {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}" data-dtype="Number"/>
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
<h4 class="skill-name rollable">{{skill.label}}</h4>
<h4 class="skill-name rollable">{{label}}</h4>
<span class="skill-ability">{{skill.ability}}</span>
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
<span class="skill-passive">({{skill.passive}})</span>
</li>
{{/with}}
{{/each}}
</ul>
@ -165,16 +170,16 @@
placeholder="{{res.placeholder}}" />
</h4>
<div class="attribute-value">
<label class="recharge checkbox">
{{ localize "SW5E.AbbreviationSR" }} <input name="data.resources.{{res.name}}.sr" type="checkbox" {{checked res.sr}}/>
<label class="recharge checkbox flexcol">
<span>{{ localize "SW5E.AbbreviationSR" }}</span><input name="data.resources.{{res.name}}.sr" type="checkbox" {{checked res.sr}}/>
</label>
<input name="data.resources.{{res.name}}.value" type="number" value="{{res.value}}" placeholder="0"/>
<span class="sep"> / </span>
<input name="data.resources.{{res.name}}.max" type="number" value="{{res.max}}" placeholder="0"/>
<label class="recharge checkbox">
{{ localize "SW5E.AbbreviationLR" }} <input name="data.resources.{{res.name}}.lr" type="checkbox" {{checked res.lr}}/>
<label class="recharge checkbox flexcol">
<span>{{ localize "SW5E.AbbreviationLR" }}</span><input name="data.resources.{{res.name}}.lr" type="checkbox" {{checked res.lr}}/>
</label>
</div>
</li>
@ -250,7 +255,7 @@
<textarea name="data.details.flaw">{{data.details.flaw}}</textarea>
</div>
<div class="biography">
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable rollData=rollData}}
</div>
</div>
</section>

View file

@ -14,7 +14,7 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="tab biography">
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable rollData=rollData}}
</div>
</section>
</form>

View file

@ -27,8 +27,9 @@
<li>
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}" placeholder="{{ localize 'SW5E.Alignment' }}"/>
</li>
<li>
<input type="text" name="data.details.type" value="{{data.details.type}}" placeholder="{{ localize 'SW5E.Type' }}"/>
<li class="creature-type">
<span title="{{labels.type}}">{{labels.type}}</span>
<a class="config-button" data-action="type" title="{{localize 'SW5E.CreatureTypeConfig'}}"><i class="fas fa-cog"></i></a>
</li>
<li>
<input type="text" name="data.details.source" value="{{data.details.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
@ -97,10 +98,10 @@
<h4 class="ability-name box-title rollable">{{ability.label}}</h4>
<input class="ability-score" name="data.abilities.{{id}}.value" type="number" value="{{ability.value}}" placeholder="10"/>
<div class="ability-modifiers flexrow">
<span class="ability-mod" title="Modifier">{{numberFormat ability.mod decimals=0 sign=true}}</span>
<span class="ability-mod" title="{{ localize 'SW5E.Modifier' }}">{{numberFormat ability.mod decimals=0 sign=true}}</span>
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.proficient}}" data-dtype="Number"/>
<a class="proficiency-toggle ability-proficiency" title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
<span class="ability-save" title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
<span class="ability-save" title="{{ localize 'SW5E.SavingThrow' }}">{{numberFormat ability.save decimals=0 sign=true}}</span>
</div>
</li>
{{/each}}
@ -108,15 +109,17 @@
{{!-- Skills --}}
<ul class="skills-list">
{{#each data.skills as |skill s|}}
{{#each config.skills as |label s|}}
{{#with (lookup ../data.skills s) as |skill|}}
<li class="skill flexrow {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}" data-dtype="Number"/>
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
<h4 class="skill-name rollable">{{skill.label}}</h4>
<h4 class="skill-name rollable">{{label}}</h4>
<span class="skill-ability">{{skill.ability}}</span>
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
<span class="skill-passive">({{skill.passive}})</span>
</li>
{{/with}}
{{/each}}
</ul>
@ -172,7 +175,7 @@
{{!-- Biography Tab --}}
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable rollData=rollData}}
</div>
</section>
</form>

View file

@ -2,8 +2,8 @@
{{#each effects as |section sid|}}
<li class="items-header flexrow" data-effect-type="{{section.type}}">
<h3 class="item-name effect-name flexrow">{{localize section.label}}</h3>
<div class="effect-source">Source</div>
<div class="effect-source">Duration</div>
<div class="effect-source">{{localize "SW5E.Source"}}</div>
<div class="effect-source">{{localize "SW5E.Duration"}}</div>
<div class="item-controls effect-controls flexrow">
<a class="effect-control" data-action="create" title="{{localize 'SW5E.EffectCreate'}}">
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}

View file

@ -38,7 +38,10 @@
<li class="item flexrow {{#if isDepleted}}depleted{{/if}}" data-item-id="{{item._id}}">
<div class="item-name flexrow rollable">
<div class="item-image" style="background-image: url('{{item.img}}')"></div>
<h4>{{item.name}}</h4>
<h4>
{{item.name}}
{{#if item.isOriginalClass}} <i class="original-class fas fa-sun" title="{{localize 'SW5E.ClassOriginal'}}"></i>{{/if}}
</h4>
</div>
{{#if section.hasActions}}
@ -52,7 +55,6 @@
<input type="text" value="{{item.data.uses.value}}" placeholder="0"/>/ {{item.data.uses.max}}
{{/if}}
</div>
<div class="item-detail item-action">
{{#if item.data.activation.type }}
{{item.labels.activation}}
@ -64,14 +66,14 @@
{{item.data.archetype}}
</div>
<div class="item-detail item-action">
Level {{item.data.levels}}
{{localize "SW5E.Level"}} {{item.data.levels}}
</div>
{{/if}}
{{#if section.columns}}
{{#each section.columns}}
<div class="item-detail {{css}}">
{{#with (getProperty item property)}}
{{#with (lookup item property)}}
{{#if ../editable}}
<input type="text" value="{{this}}" placeholder="&mdash;"
data-dtype="{{../editable}}">
@ -91,8 +93,8 @@
<i class="fas fa-sun"></i>
</a>
{{/if}}
<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>
<a class="item-control item-edit" title="{{localize 'SW5E.ItemEdit'}}"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="{{localize 'SW5E.ItemDelete'}}"><i class="fas fa-trash"></i></a>
</div>
{{/if}}
</li>

View file

@ -4,7 +4,7 @@
<ol class="currency flexrow">
<h3>
{{localize "SW5E.Currency"}}
<a class="currency-convert rollable" data-action="convertCurrency" title="Convert Currency">
<a class="currency-convert rollable" data-action="convertCurrency" title="{{localize 'SW5E.CurrencyConvert'}}">
<i class="fas fa-coins"></i>
</a>
</h3>
@ -89,13 +89,13 @@
{{/each}}
{{else}}
{{#if ../../isCharacter}}
<div class="item-detail item-weight">
{{#if item.totalWeight}}
<div class="item-detail">
{{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}}
</div>
{{/if}}
</div>
<div class="item-detail item-weight">
{{#if item.totalWeight}}
<div class="item-detail">
{{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}}
</div>
{{/if}}
</div>
{{/if}}
<div class="item-detail item-uses">

View file

@ -1,7 +1,7 @@
<div class="inventory-filters powerbook-filters flexrow">
<div class="form-group powercasting-ability">
{{#unless isNPC}}
<label>{{localize "SW5E.PowerAbility"}}</label>
<label>{{localize "SW5E.Powercasting"}}</label>
{{else}}
<label>{{localize "SW5E.Level"}}</label>
<input class="powercasting-level" type="text" name="data.details.powerLevel"
@ -86,7 +86,7 @@
<div class="power-target" title="{{localize 'SW5E.Range'}}: {{labels.range}}">
{{#if labels.target}}
{{labels.target}}
{{else}}None
{{else}}{{localize 'SW5E.None'}}
{{/if}}
</div>
@ -95,8 +95,8 @@
{{#if section.canPrepare}}
<a class="item-control item-toggle {{item.toggleClass}}" title="{{item.toggleTitle}}"><i class="fas fa-sun"></i></a>
{{/if}}
<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>
<a class="item-control item-edit" title="{{localize 'SW5E.ItemEdit'}}"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="{{localize 'SW5E.ItemDelete'}}"><i class="fas fa-trash"></i></a>
</div>
{{/if}}
</li>

View file

@ -158,7 +158,7 @@
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
{{editor content=data.details.biography.value target='data.details.biography.value'
button=true owner=owner editable=editable}}
button=true owner=owner editable=editable rollData=rollData}}
</div>
</section>
</form>

View file

@ -2,6 +2,15 @@
<section class="form-body">
<p class="notes">{{localize 'SW5E.FlagsInstructions'}}</p>
<h3 class="form-header">{{localize "SW5E.ItemTypeClass"}}</h3>
<div class="form-group">
<label>{{localize "SW5E.ClassMakeOriginal"}}</label>
<select name="data.details.originalClass" data-dtype="String">
{{selectOptions classes selected=actor.data.data.details.originalClass}}
</select>
<p class="notes">{{localize "SW5E.ClassMakeOriginalHint"}}</p>
</div>
{{#each flags as |fs section|}}
<h3 class="form-header">{{localize section}}</h3>
{{#each fs as |flag key|}}

View file

@ -0,0 +1,38 @@
<form autocomplete="off">
<input type="text" name="preview" value="{{preview}}" disabled>
<div class="form-group stacked">
<label>{{ localize "SW5E.CreatureType" }}</label>
<ul class="trait-list">
{{#each types as |type key|}}
<li>
<label class="radio">
<input type="radio" name="value" value="{{key}}" data-dtype="String" {{checked type.chosen}}/>
{{type.label}}
</label>
</li>
{{/each}}
<li class="custom-type form-group">
<input type="radio" name="value" value="custom" title="{{custom.label}}" {{checked custom.chosen}}/>
<label>{{custom.label}}</label>
<input type="text" name="custom" value="{{custom.value}}"/>
</li>
<li class="subtype form-group">
<label>{{ localize "SW5E.CreatureTypeSelectorSubtype" }}</label>
<input type="text" name="subtype" value="{{subtype}}"/>
</li>
</ul>
</div>
<div class="swarm-size form-group">
<label>{{ localize "SW5E.CreatureSwarmSize" }}</label>
<select name="swarm">
{{selectOptions sizes selected=swarm blank="" localize=true}}
</select>
</div>
<button type="submit" name="submit" value="1">
<i class="far fa-save"></i> {{ localize "SW5E.TraitSave"}}
</button>
</form>

View file

@ -0,0 +1,23 @@
<form autocomplete="off">
<p class="notes">{{ localize "SW5E.HitDiceConfigHint" }}</p>
{{#each classes}}
<div class="form-group">
<label>{{this.name}} ({{this.diceDenom}})</label>
<div class="form-fields">
<button class="decrement" type="button">-</button>
<input title="{{ localize 'SW5E.HitDiceRemaining' }}" class="current" name="{{this.classItemId}}" type="number" value="{{this.currentHitDice}}" />
<span class="sep">/</span>
<input title="{{ localize 'SW5E.HitDiceMax' }}" class="max" type="number" value="{{this.maxHitDice}}" disabled />
<button class="increment" type="button">+</button>
<button class="roll-hd" data-hd-denom="{{this.diceDenom}}" {{#unless this.canRoll}}disabled{{/unless}}>
<i class="fas fa-dice-d20"></i> {{ localize "SW5E.Roll" }}
</button>
</div>
</div>
{{/each}}
<div class="dialog-buttons">
<button type="reset" name="reset"><i class="fas fa-redo"></i> {{ localize "SETTINGS.5eUndoChanges" }}</button>
<button type="submit" name="submit" value="1"><i class="far fa-save"></i> {{ localize "SETTINGS.Save"}}</button>
</div>
</form>

View file

@ -1,11 +1,11 @@
<form id="long-rest" class="dialog-content" onsubmit="event.preventDefault();">
<p>Take a long rest? On a long rest you will recover hit points, half your maximum hit dice, class resources, limited use item charges, and power slots.</p>
<p>{{ localize "SW5E.LongRestHint" }}</p>
{{#if promptNewDay}}
<div class="form-group">
<label>Is New Day?</label>
<label>{{ localize "SW5E.NewDay" }}</label>
<input type="checkbox" name="newDay" {{checked newDay}}/>
<p class="hint">Recover limited use abilities which recharge "per day"?</p>
<p class="hint">{{ localize "SW5E.NewDayHint" }}</p>
</div>
{{/if}}

View file

@ -0,0 +1,19 @@
<form>
<p class="hint">{{hint}}</p>
<ul class="items-list">
{{#each items}}
<li class="item flexrow">
<div class="item-name flexrow">
<div class="item-image" style="background-image:url({{data.img}})" data-item-id="{{id}}"></div>
<label class="flexrow">
<h4>{{data.name}}</h4>
<input type="checkbox" checked name="{{id}}" />
</label>
</div>
</li>
{{/each}}
</ul>
</form>

View file

@ -11,7 +11,7 @@
{{/select}}
</select>
<button id="roll-hd" {{#unless canRoll}}disabled{{/unless}}>
<i class="fas fa-dice-d20"></i> {{ localize "Roll" }}
<i class="fas fa-dice-d20"></i> {{ localize "SW5E.Roll" }}
</button>
</div>
{{#unless canRoll}}
@ -21,9 +21,9 @@
{{#if promptNewDay}}
<div class="form-group">
<label>Is New Day?</label>
<label>{{ localize "SW5E.NewDay" }}</label>
<input type="checkbox" name="newDay" {{checked newDay}}/>
<p class="hint">Recover limited use abilities which recharge "per day"?</p>
<p class="hint">{{ localize "SW5E.NewDayHint" }}</p>
</div>
{{/if}}

View file

@ -39,6 +39,10 @@
{{#if hasAreaTarget}}
<button data-action="placeTemplate">{{ localize "SW5E.PlaceTemplate" }}</button>
{{/if}}
{{#if isTool}}
<button data-action="toolCheck" data-ability="{{data.ability.value}}">{{ localize "SW5E.Use" }} {{item.name}}</button>
{{/if}}
</div>
<footer class="card-footer">

View file

@ -3,6 +3,14 @@
<label>{{ localize "SW5E.Formula" }}</label>
<input type="text" name="formula" value="{{formula}}" disabled/>
</div>
{{#if chooseModifier}}
<div class="form-group">
<label>{{ localize "SW5E.AbilityModifier" }}</label>
<select name="ability">
{{selectOptions abilities selected=defaultAbility}}
</select>
</div>
{{/if}}
<div class="form-group">
<label>{{ localize "SW5E.RollSituationalBonus" }}</label>
<input type="text" name="bonus" value="" placeholder="{{ localize 'SW5E.RollExample' }}"/>
@ -10,11 +18,7 @@
<div class="form-group">
<label>{{ localize "SW5E.RollMode" }}</label>
<select name="rollMode">
{{#select rollMode}}
{{#each rollModes as |label mode|}}
<option value="{{mode}}">{{localize label}}</option>
{{/each}}
{{/select}}
{{selectOptions rollModes selected=defaultRollMode localize=true}}
</select>
</div>
</form>
</form>

View file

@ -1,18 +0,0 @@
<div class="sw5e chat-card item-card" data-actor-id="{{actor._id}}" data-item-id="{{item._id}}" {{#if tokenId}}data-token-id="{{tokenId}}"{{/if}}>
<header class="card-header flexrow">
<img src="{{item.img}}" title="{{item.name}}" width="36" height="36"/>
<h3 class="item-name">{{item.name}}</h3>
</header>
<div class="card-content">{{{data.description.value}}}</div>
<div class="card-buttons">
<button data-action="toolCheck" data-ability="{{data.ability.value}}">{{ localize "SW5E.Use" }} {{item.name}}</button>
</div>
<footer class="card-footer">
{{#each data.properties}}
<span>{{this}}</span>
{{/each}}
</footer>
</div>

View file

@ -1,33 +0,0 @@
<form>
<div class="form-group">
<label>{{ localize "SW5E.Formula" }}</label>
<input type="text" name="formula" value="{{formula}}" disabled/>
</div>
<div class="form-group">
<label>{{ localize "SW5E.AbilityModifier" }}</label>
<select name="ability">
{{#select data.item.ability}}
{{#each config.abilities as |ability a|}}
<option value="{{a}}">{{ability}}</option>
{{/each}}
{{/select}}
</select>
</div>
<div class="form-group">
<label>{{ localize "SW5E.RollSituationalBonus" }}</label>
<input type="text" name="bonus" value="" placeholder="{{ localize 'SW5E.RollExample' }}"/>
</div>
<div class="form-group">
<label>{{ localize "SW5E.RollMode" }}</label>
<select name="rollMode">
{{#select rollMode}}
{{#each rollModes as |label mode|}}
<option value="{{mode}}">{{localize label}}</option>
{{/each}}
{{/select}}
</select>
</div>
</form>

View file

@ -76,19 +76,44 @@
</div>
</div>
{{!-- Powercasting --}}
<div class="form-group">
<label>{{localize 'SW5E.PowerProgression'}}</label>
<div class="form-fields">
<select name="data.powercasting">
{{#select data.powercasting}}
{{#each config.powerProgression}}
<option value="{{@key}}">{{localize this}}</option>
{{/each}}
{{/select}}
<select name="data.powercasting.progression">
{{selectOptions config.powerProgression selected=data.powercasting.progression localize=true}}
</select>
</div>
</div>
<div class="form-group">
<label>{{localize "SW5E.PowerAbility"}}</label>
<div class="form-fields">
<select name="data.powercasting.ability">
{{selectOptions config.abilities selected=data.powercasting.ability blank=""}}
</select>
</div>
</div>
{{!-- Proficiencies --}}
<div class="form-group">
<label>
{{ localize "SW5E.ClassSaves" }}
{{#if editable}}
<a class="trait-selector class-saves" data-target="data.saves" data-options="saves">
<i class="fas fa-edit"></i>
</a>
{{/if}}
</label>
<div class="form-fields">
<ul class="traits-list">
{{#each data.saves}}
<li class="tag {{this}}">{{lookup ../config.abilities this}}</li>
{{/each}}
</ul>
</div>
</div>
{{!-- Level 1 skills --}}
<div class="form-group">
<label>{{localize "SW5E.ClassSkillsNumber"}}</label>