Nombreuses corrections sur les fiches settlement/NPC

This commit is contained in:
2026-03-22 21:35:47 +01:00
parent ec291e9c60
commit b46c6d804c
51 changed files with 2892 additions and 227 deletions

View File

@@ -0,0 +1,38 @@
<section class="item-sheet-common npcattack-sheet">
<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>
<div class="npcattack-stats">
<div class="form-group">
<label>{{localize "OATHHAMMER.NpcAttack.FIELDS.damageDice.label"}}</label>
<div class="form-fields">
<select name="system.damageDice">
{{selectOptions dicePoolChoices selected=system.damageDice}}
</select>
</div>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.NpcAttack.FIELDS.colorDiceType.label"}}</label>
<div class="form-fields">
<select name="system.colorDiceType">
{{selectOptions colorChoices selected=system.colorDiceType}}
</select>
</div>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.NpcAttack.FIELDS.ap.label"}}</label>
<div class="form-fields">
<select name="system.ap">
{{selectOptions apChoices selected=system.ap}}
</select>
</div>
</div>
</div>
<fieldset>
<legend>{{localize "OATHHAMMER.NpcAttack.FIELDS.description.label"}}</legend>
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset>
</section>

View File

@@ -0,0 +1,122 @@
<section class="item-sheet-common regiment-sheet">
<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>
<fieldset class="regiment-stats">
<legend>{{localize "OATHHAMMER.Label.Stats"}}</legend>
<div class="regiment-stats-row">
<div class="form-group">
<label>{{localize "OATHHAMMER.Label.GritMax"}}</label>
<div class="form-fields">
<input type="number" name="system.grit.max" value="{{system.grit.max}}" min="0" max="200" />
</div>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.Label.ArmorDice"}}</label>
<div class="form-fields regiment-armor-fields">
<input type="number" name="system.armorDice.value" value="{{system.armorDice.value}}" min="0" max="20" />
<select name="system.armorDice.colorDiceType">
{{selectOptions colorChoices selected=system.armorDice.colorDiceType}}
</select>
</div>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.Label.Movement"}}</label>
<div class="form-fields">
<input type="number" name="system.movement" value="{{system.movement}}" min="0" max="500" /> ft
</div>
</div>
</div>
</fieldset>
<fieldset class="regiment-skills">
<legend>
{{localize "OATHHAMMER.Tab.Skills"}}
<a data-action="addSkill" class="create-btn" data-tooltip="{{localize 'OATHHAMMER.NewItem.RegimentSkill'}}"><i class="fa-solid fa-plus"></i></a>
</legend>
{{#if system.skills.length}}
<div class="regiment-skill-header regiment-skill-row">
<span>{{localize "OATHHAMMER.Label.Name"}}</span>
<span>{{localize "OATHHAMMER.Label.Rank"}}</span>
<span>{{localize "OATHHAMMER.Label.DiceColor"}}</span>
<span></span>
</div>
{{#each system.skills as |skill idx|}}
<div class="regiment-skill-row" data-idx="{{idx}}">
<input type="text" name="system.skills.{{idx}}.name" value="{{skill.name}}" placeholder="{{localize 'OATHHAMMER.Label.SkillName'}}" />
<input type="number" name="system.skills.{{idx}}.value" value="{{skill.value}}" min="1" max="6" />
<select name="system.skills.{{idx}}.colorDiceType">
{{selectOptions ../colorChoices selected=skill.colorDiceType}}
</select>
<a data-action="removeSkill" data-idx="{{idx}}" class="item-delete"><i class="fa-solid fa-times"></i></a>
</div>
{{/each}}
{{else}}
<p class="no-items">{{localize "OATHHAMMER.Label.NoSkills"}}</p>
{{/if}}
</fieldset>
<fieldset class="regiment-attacks">
<legend>
{{localize "OATHHAMMER.Label.Attacks"}}
<a data-action="addAttack" class="create-btn" data-tooltip="{{localize 'OATHHAMMER.NewItem.RegimentAttack'}}"><i class="fa-solid fa-plus"></i></a>
</legend>
{{#if system.attacks.length}}
<div class="regiment-attack-header regiment-attack-row">
<span>{{localize "OATHHAMMER.Label.Name"}}</span>
<span>{{localize "OATHHAMMER.Label.Dice"}}</span>
<span>{{localize "OATHHAMMER.Label.DiceColor"}}</span>
<span>AP</span>
<span>{{localize "OATHHAMMER.Label.Special"}}</span>
<span></span>
</div>
{{#each system.attacks as |attack idx|}}
<div class="regiment-attack-row" data-idx="{{idx}}">
<input type="text" name="system.attacks.{{idx}}.name" value="{{attack.name}}" placeholder="{{localize 'OATHHAMMER.Label.AttackName'}}" />
<select name="system.attacks.{{idx}}.damageDice">
{{selectOptions ../dicePoolChoices selected=attack.damageDice}}
</select>
<select name="system.attacks.{{idx}}.colorDiceType">
{{selectOptions ../colorChoices selected=attack.colorDiceType}}
</select>
<select name="system.attacks.{{idx}}.ap">
{{selectOptions ../apChoices selected=attack.ap}}
</select>
<input type="text" name="system.attacks.{{idx}}.special" value="{{attack.special}}" placeholder="—" />
<a data-action="removeAttack" data-idx="{{idx}}" class="item-delete"><i class="fa-solid fa-times"></i></a>
</div>
{{/each}}
{{else}}
<p class="no-items">{{localize "OATHHAMMER.Label.NoAttacks"}}</p>
{{/if}}
</fieldset>
<fieldset class="regiment-traits">
<legend>
{{localize "OATHHAMMER.Tab.Traits"}}
<a data-action="addTrait" class="create-btn" data-tooltip="{{localize 'OATHHAMMER.NewItem.RegimentTrait'}}"><i class="fa-solid fa-plus"></i></a>
</legend>
{{#if system.traits.length}}
{{#each system.traits as |trait idx|}}
<div class="regiment-trait-row" data-idx="{{idx}}">
<input type="text" name="system.traits.{{idx}}.name" value="{{trait.name}}" placeholder="{{localize 'OATHHAMMER.Label.TraitName'}}" />
<input type="text" name="system.traits.{{idx}}.description" value="{{trait.description}}" placeholder="{{localize 'OATHHAMMER.Label.Description'}}" />
<a data-action="removeTrait" data-idx="{{idx}}" class="item-delete"><i class="fa-solid fa-times"></i></a>
</div>
{{/each}}
{{else}}
<p class="no-items">{{localize "OATHHAMMER.Label.NoTraits"}}</p>
{{/if}}
</fieldset>
<fieldset>
<legend>{{localize "OATHHAMMER.Label.Description"}}</legend>
<prose-mirror name="system.description" toggled="false" collaborate="false">
{{{system.description}}}
</prose-mirror>
</fieldset>
</section>

View File

@@ -0,0 +1,38 @@
<section class="item-sheet-common skillnpc-sheet">
<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>
<div class="skillnpc-stats">
<div class="form-group">
<label>{{localize "OATHHAMMER.SkillNPC.FIELDS.dicePool.label"}}</label>
<div class="form-fields">
<select name="system.dicePool">
{{selectOptions dicePoolChoices selected=system.dicePool}}
</select>
</div>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.SkillNPC.FIELDS.colorDiceType.label"}}</label>
<div class="form-fields">
<select name="system.colorDiceType">
{{selectOptions colorChoices selected=system.colorDiceType}}
</select>
</div>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.SkillNPC.FIELDS.skillRef.label"}}</label>
<div class="form-fields">
<select name="system.skillRef">
{{selectOptions skillRefChoices selected=system.skillRef}}
</select>
</div>
</div>
</div>
<fieldset>
<legend>{{localize "OATHHAMMER.SkillNPC.FIELDS.description.label"}}</legend>
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset>
</section>

View File

@@ -6,6 +6,14 @@
<div class="flexrow">
<div class="align-top">
{{formField systemFields.proficiencyGroup value=system.proficiencyGroup name="system.proficiencyGroup" localize=true}}
<div class="form-group">
<label>{{localize "OATHHAMMER.Weapon.FIELDS.skillOverride.label"}}</label>
<div class="form-fields">
<select name="system.skillOverride">
{{selectOptions skillChoices selected=system.skillOverride}}
</select>
</div>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.Weapon.FIELDS.damageMod.label"}}</label>
<div class="form-fields">
@@ -43,12 +51,29 @@
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset>
{{#if system.isMagic}}
<fieldset>
<fieldset class="enchantment-fieldset">
<legend>{{localize "OATHHAMMER.Label.Enchantment"}}</legend>
<div class="flexrow">
{{formField systemFields.magicQuality value=system.magicQuality name="system.magicQuality" localize=true}}
{{formField systemFields.isCursed value=system.isCursed name="system.isCursed"}}
{{formField systemFields.classRestriction value=system.classRestriction name="system.classRestriction"}}
<div class="form-group">
<label>{{localize "OATHHAMMER.Label.MagicQuality"}}</label>
<div class="form-fields">
<select name="system.magicQuality">
<option value="">—</option>
{{selectOptions systemFields.magicQuality.choices selected=system.magicQuality localize=true}}
</select>
</div>
<label class="enchant-cursed-label">
<input type="checkbox" name="system.isCursed" {{checked system.isCursed}}>
{{localize "OATHHAMMER.Label.Cursed"}}
</label>
</div>
<div class="form-group">
<label>{{localize "OATHHAMMER.Label.ClassRestriction"}}</label>
<div class="form-fields">
<select name="system.classRestriction">
<option value="">— {{localize "OATHHAMMER.ClassRestriction.None"}} —</option>
{{selectOptions classRestrictionChoices selected=system.classRestriction localize=true}}
</select>
</div>
</div>
{{formInput systemFields.magicEffect enriched=enrichedMagicEffect value=system.magicEffect name="system.magicEffect" toggled=true}}
</fieldset>