forked from GitHub-Mirrors/foundry-sw5e

Things unfinished: - Migration - The update adds new sections to the class sheet to allow some light customisation, this hasn't been included, but could be extended for the sake of dynamic classes with automatic class features and more - The French - The packs have not yet been updated, meaning due to the addition of a progression field to the class item, classes now don't set force or tech points - I updated the function calls in starships, but I didn't update it very thoroughly, it'll need checking - I only did a little testing - There has since been updates to DND5e that hasn't made it to release that patch bugs, those should be implemented Things changed from base 5e: - Short rests and long rests were merged into one function, this needed some rewrites to account for force and tech points, and for printing the correct message Extra Comments: - Unfinished code exists for automatic spell scrolls, this could be extended for single use force or tech powers - Weapon proficiencies probably need revising - Elven accuracy, halfling lucky, and reliable talent are present in the roll logic, this probably needs revising for sw5e - SW5e has a variant rule that permits force powers of any alignment to use either charisma or wisdom, that could be implemented - SW5e's version of gritty realism, [Longer Rests](https://sw5e.com/rules/variantRules/Longer%20Rests) differs from base dnd, this could be implemented - Extra ideas I've had while looking through the code can be found in Todos next to the ideas relevant context
153 lines
No EOL
6.7 KiB
HTML
153 lines
No EOL
6.7 KiB
HTML
<form class="{{cssClass}} swalt-sheet" autocomplete="off">
|
|
{{!-- Sheet Header --}}
|
|
<header class="panel">
|
|
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
|
<h1 class="character-name">
|
|
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
|
</h1>
|
|
<div class="level-experience">
|
|
<div class="charlevel" title="{{multiclassLabels}}">
|
|
{{ localize "SW5E.Level" }} {{data.details.level}} {{classLabels}}
|
|
</div>
|
|
{{#unless disableExperience}}
|
|
<div class="experience">
|
|
<input name="data.details.xp.value" type="text" value="{{data.details.xp.value}}" data-dtype="Number"
|
|
placeholder="0" />
|
|
<span class="sep">/</span>
|
|
<span class="max">{{data.details.xp.max}}</span>
|
|
</div>
|
|
<div class="xpbar">
|
|
<span class="bar" style="width: {{data.details.xp.pct}}%"></span>
|
|
</div>
|
|
{{/unless}}
|
|
</div>
|
|
<div class="summary">
|
|
<input type="text" name="data.details.species" value="{{data.details.species}}"
|
|
placeholder="{{ localize 'SW5E.Species' }}" />
|
|
<input type="text" name="data.details.background" value="{{data.details.background}}"
|
|
placeholder="{{ localize 'SW5E.Background' }}" />
|
|
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}"
|
|
placeholder="{{ localize 'SW5E.Alignment' }}" />
|
|
<div class="proficiency">
|
|
{{ localize "SW5E.Proficiency" }} {{numberFormat data.attributes.prof decimals=0 sign=true}}
|
|
</div>
|
|
</div>
|
|
{{!-- Header Attributes --}}
|
|
<div class="attributes">
|
|
{{!-- ARMOR CLASS --}}
|
|
<section>
|
|
<h1>{{ localize "SW5E.ArmorClass" }}</h1>
|
|
<div class="attribute-value">
|
|
<input class="ac-display" name="data.attributes.ac.value" type="text"
|
|
value="{{data.attributes.ac.value}}" data-dtype="Number" placeholder="10" />
|
|
</div>
|
|
</section>
|
|
|
|
{{!-- HIT POINTS --}}
|
|
<section>
|
|
<h1>{{ localize "SW5E.HP" }}</h1>
|
|
<div class="attribute-value multiple">
|
|
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
|
data-dtype="Number" placeholder="10" class="value-number" />
|
|
<span class="value-separator">/</span>
|
|
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
|
data-dtype="Number" placeholder="10" class="value-number" />
|
|
</div>
|
|
<footer class="attribute-footer hit-points">
|
|
<input name="data.attributes.hp.temp" type="text" class="temphp" placeholder="+Temp"
|
|
value="{{data.attributes.hp.temp}}" data-dtype="{{data.attributes.hp.type}}" />
|
|
<input name="data.attributes.hp.tempmax" type="text" class="temphp" placeholder="+Max"
|
|
value="{{data.attributes.hp.tempmax}}" data-dtype="{{data.attributes.hp.type}}" />
|
|
</footer>
|
|
</section>
|
|
|
|
{{!-- HIT DICE / SHORT & LONG REST BUTTONS --}}
|
|
<section>
|
|
<h1>
|
|
{{ localize "SW5E.HitDice" }}
|
|
<a class="config-button" data-action="hit-dice" title="{{localize 'SW5E.HitDiceConfig'}}"><i class="fas fa-cog"></i></a>
|
|
</h1>
|
|
<div class="attribute-value multiple">
|
|
<span class="value-number">{{data.attributes.hd}}</span>
|
|
<span class="value-separator">/</span>
|
|
<span class="value-number">{{data.details.level}}</span>
|
|
</div>
|
|
<footer class="attribute-footer hit-dice">
|
|
<button type="button" class="rest short-rest">{{ localize "SW5E.RestS" }}</button>
|
|
<button type="button" class="rest long-rest">{{ localize "SW5E.RestL" }}</button>
|
|
</footer>
|
|
</section>
|
|
|
|
{{!-- INITIATIVE --}}
|
|
<section>
|
|
<h1 class="attribute-name box-title rollable" data-action="rollInitiative">{{ localize "SW5E.Initiative" }}</h1>
|
|
<div class="attribute-value">
|
|
<span class="initiative">{{numberFormat data.attributes.init.total decimals=0 sign=true}}</span>
|
|
</div>
|
|
<footer class="attribute-footer initiative">
|
|
<span>{{ localize "SW5E.Modifier" }}</span>
|
|
<input name="data.attributes.init.value" type="text" data-dtype="Number" placeholder="0"
|
|
value="{{numberFormat data.attributes.init.value decimals=0 sign=true}}"/>
|
|
</footer>
|
|
</section>
|
|
|
|
{{!-- SPEED / MOVEMENT TYPES --}}
|
|
<section>
|
|
<h1>
|
|
{{ localize "SW5E.Movement" }}
|
|
<a class="config-button" data-action="movement" title="{{localize 'SW5E.MovementConfig'}}"><i class="fas fa-cog"></i></a>
|
|
</h1>
|
|
<div class="attribute-value">
|
|
<span>{{movement.primary}}</span>
|
|
</div>
|
|
<footer class="attribute-footer">
|
|
<span>{{movement.special}} {{data.attributes.movement.units}}</span>
|
|
</footer>
|
|
</section>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
{{!-- PC Sheet Navigation --}}
|
|
<nav class="sheet-navigation root-tabs" data-group="primary">
|
|
<button class="item active" data-tab="attributes">{{localize "SW5E.Core"}}</button>
|
|
<button class="item" data-tab="inventory">{{ localize "SW5E.Inventory" }}</button>
|
|
<button class="item" data-tab="features">{{ localize "SW5E.Features" }}</button>
|
|
<button class="item" data-tab="force-powerbook">{{ localize "SW5E.ForcePowerbook" }}</button>
|
|
<button class="item" data-tab="tech-powerbook">{{ localize "SW5E.TechPowerbook" }}</button>
|
|
<button class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</button>
|
|
<button class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</button>
|
|
</nav>
|
|
{{!-- PC Sheet Body --}}
|
|
<section class="sheet-body">
|
|
{{!-- Core Tab --}}
|
|
<section class="tab attributes core" data-group="primary" data-tab="attributes">
|
|
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-core.html" sections=attributes}}
|
|
</section>
|
|
{{!-- Inventory Tab --}}
|
|
<section class="tab inventory" data-group="primary" data-tab="inventory">
|
|
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-inventory.html" sections=inventory}}
|
|
</section>
|
|
{{!-- Features Tab --}}
|
|
<section class="tab features" data-group="primary" data-tab="features">
|
|
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-features.html" sections=features}}
|
|
</section>
|
|
{{!-- Powerbook Tabs --}}
|
|
<section class="tab force-powerbook" data-group="primary" data-tab="force-powerbook">
|
|
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-force-powerbook.html"}}
|
|
</section>
|
|
|
|
<section class="tab tech-powerbook" data-group="primary" data-tab="tech-powerbook">
|
|
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-tech-powerbook.html"}}
|
|
</section>
|
|
{{!-- Effects Tab --}}
|
|
<section class="tab effects flexcol" data-group="primary" data-tab="effects">
|
|
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-active-effects.html"}}
|
|
</section>
|
|
{{!-- Biography Tab --}}
|
|
<section class="tab biography" data-group="primary" data-tab="biography">
|
|
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-biography.html"}}
|
|
</section>
|
|
</form> |