First adaptation pass

This commit is contained in:
2025-11-06 00:01:59 +01:00
parent 5b1fd847c2
commit 6b883f8126
112 changed files with 44142 additions and 953 deletions
+60 -24
View File
@@ -2,32 +2,68 @@
<div class="header">
<img class="item-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}" />
{{formInput fields.name value=source.name}}
</div>
{{formField systemFields.category value=system.category localize=true}}
{{formField systemFields.base value=system.base}}
{{formField systemFields.bonus value=system.bonus}}
{{formField systemFields.classesCost.fields.fighter value=system.classesCost.fighter}}
{{formField systemFields.classesCost.fields.rogue value=system.classesCost.rogue}}
{{formField systemFields.classesCost.fields.ranger value=system.classesCost.ranger}}
{{formField systemFields.classesCost.fields.cleric value=system.classesCost.cleric}}
{{formField systemFields.classesCost.fields.magicuser value=system.classesCost.magicuser}}
{{#if (eq system.category "weapon")}}
{{formField systemFields.weaponClass value=system.weaponClass localize=true}}
<span class="flexrow">
<span><strong>Available Bonus : {{system.availableBonus}}</strong></span>
</span>
{{formField systemFields.weaponBonus.fields.attack value=system.weaponBonus.attack}}
{{formField systemFields.weaponBonus.fields.defense value=system.weaponBonus.defense}}
{{formField systemFields.weaponBonus.fields.damage value=system.weaponBonus.damage}}
{{/if}}
<div class="total flexrow">
<legend>{{localize "PRISMRPG.Label.total"}}</legend>
{{system.skillTotal}}
</div>
{{!-- Core Skill Selection --}}
{{formField systemFields.coreSkill value=system.coreSkill localize=true label="PRISMRPG.Label.coreSkillType"}}
{{!-- Is this the character's Core Skill? --}}
<div class="form-group">
<label>{{localize "PRISMRPG.Label.isCoreSkill"}}</label>
<input type="checkbox" name="system.isCoreSkill" {{checked system.isCoreSkill}} />
<p class="hint">{{localize "PRISMRPG.Hint.isCoreSkill"}}</p>
</div>
{{#if system.isCoreSkill}}
{{!-- Attribute Bonus Selection --}}
<div class="form-group">
<label>{{localize "PRISMRPG.Label.attributeBonusChoice"}}</label>
<select name="system.attributeBonus">
<option value="">{{localize "PRISMRPG.Label.selectAttribute"}}</option>
{{#each (lookup config.CORE_SKILLS system.coreSkill).attributeChoices as |attr|}}
<option value="{{attr}}" {{selected system.attributeBonus attr}}>
{{localize (concat "PRISMRPG.Label." attr)}}
</option>
{{/each}}
</select>
<p class="hint">{{localize "PRISMRPG.Hint.attributeBonus"}}</p>
</div>
{{!-- Modifier Display --}}
<div class="form-group">
<label>{{localize "PRISMRPG.Label.modifier"}}</label>
<div class="modifier-display">
<span class="basic-bonus">+{{system.modifier}} {{localize "PRISMRPG.Label.basicChecks"}}</span>
{{#if system.attributeBonus}}
<span class="attribute-bonus">+2 {{localize (concat "PRISMRPG.Label." system.attributeBonus)}}</span>
{{/if}}
</div>
</div>
{{!-- Advanced Checks --}}
<div class="form-group">
<label>{{localize "PRISMRPG.Label.advancedChecks"}}</label>
<span class="{{#if system.canAdvancedCheck}}enabled{{else}}disabled{{/if}}">
{{#if system.canAdvancedCheck}}
{{localize "PRISMRPG.Label.enabled"}}
{{else}}
{{localize "PRISMRPG.Label.disabled"}}
{{/if}}
</span>
<p class="hint">{{localize "PRISMRPG.Hint.advancedChecks"}}</p>
</div>
{{!-- Core Skill Class --}}
{{formField systemFields.coreSkillClass value=system.coreSkillClass label="PRISMRPG.Label.coreSkillClass"}}
{{/if}}
{{!-- Notes --}}
<fieldset>
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
{{formInput systemFields.notes enriched=enrichedNotes value=system.notes name="system.notes" toggled=true}}
</fieldset>
{{!-- Description --}}
<fieldset>
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}