Files
RingBRP/templates/dialog-attack.hbs
T
slaguru666andClaude Opus 5 2e10ecced9 Fire modes, fitted sights and lamps, and a tab rail
Selectable fire, with the modifiers on the choice
  Every weapon has carried a fireMode since the packs were first built and nothing
  read it: a musket could rip a ten-round burst and "rapid" bought a weapon nothing.
  FIRE_MODE now gates the burst rules and carries its own attack modifier — slow +10%
  and then you work for the next one, fast a second shot at -20% to both, rapid
  bursts, beam +5% and it can be held on the target for damage instead of hits. The
  gate lives in burstAttack too, so no macro can route round it. `fast` was on five
  catalogue weapons and was not in the system's list of modes at all, so re-saving one
  of them silently blanked it; the list is derived from the rule now.

  burstAttack shipped complete and was reachable from nothing. It is the resolution
  path the selector chooses, and takes the dialog's whole stack rather than charging
  the player twice for the same burst.

Sights and lamps that apply themselves
  A sight is graded by range band, so a telescopic sight is a -10% liability inside
  ten metres and worth +20% at extreme, and it only counts if it fits. The band is
  already known when the modifier is wanted, so nothing is selected and nothing is
  forgotten. The dark costs something now; a carried lamp buys it back to dim, never
  to daylight, and the card says it shows them exactly where you are. A migration
  fits gear that predates the fields, matched on the stamped key rather than by name.

The damage card
  The last card still wearing Foundry's stock dice styling — it posted a bare Roll and
  let the core template dress it. It renders through the module's own card now, with
  the Roll still on the message so dice stay inspectable.

A rail instead of a strip
  Eight tabs across an 820px sheet compressed to 11px type. They run down the side
  now, one line each, with counts as badges; the sheet is 152px wider to pay for it.

Also fixed: any weapon with a Coherence cost could not be attacked with AT ALL — the
handler re-read the weapon after an await, when currentTarget is already null, and the
attack died on a TypeError with nothing shown. And the duplicate-rule guard failed an
honest table because FIRE_MODE and speedBands share two key names; it wants a majority
now, and prints partial overlaps rather than swallowing them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 08:56:04 +01:00

59 lines
2.1 KiB
Handlebars

<form class="rb-dialog">
{{#if fire.options.length}}
<div class="form-group rb-fire-group">
<label>{{localize "RINGBRP.Dialog.Fire"}}</label>
<select name="fire">
{{#each fire.options as |f|}}
<option value="{{f.value}}" {{#if f.selected}}selected{{/if}}>{{f.label}}{{#if f.mod}} ({{rbSign f.mod}}%){{/if}}{{#if f.effect}} — {{f.effect}}{{/if}}</option>
{{/each}}
</select>
<p class="notes">{{fire.note}}</p>
</div>
{{/if}}
{{#if bandOptions.length}}
<div class="form-group">
<label>{{localize "RINGBRP.Dialog.Range"}}</label>
<select name="distance">
{{#each bandOptions as |b|}}
<option value="{{b.value}}">{{b.label}} — {{b.span}}{{#unless (rbEq b.mod null)}} ({{rbSign b.mod}}%){{else}} ({{localize "RINGBRP.Range.Impossible"}}){{/unless}}</option>
{{/each}}
</select>
</div>
{{/if}}
<div class="form-group">
<label>{{localize "RINGBRP.Dialog.Cover"}}</label>
<select name="cover">
{{#each RINGBRP.cover as |c key|}}
<option value="{{key}}">{{localize c.label}} ({{rbSign c.mod}}%)</option>
{{/each}}
</select>
</div>
<div class="form-group">
<label>{{localize "RINGBRP.Dialog.Lighting"}}</label>
<select name="lighting">
{{#each RINGBRP.lighting as |l key|}}
<option value="{{key}}">{{localize l.label}} ({{rbSign l.mod}}%)</option>
{{/each}}
</select>
</div>
<div class="form-group">
<label class="rb-check"><input type="checkbox" name="moved"/> {{localize "RINGBRP.Dialog.Moved"}}</label>
</div>
<div class="form-group">
<label class="rb-check"><input type="checkbox" name="aiming"/> {{localize "RINGBRP.Dialog.Aiming"}}</label>
</div>
<div class="form-group">
<label>{{localize "RINGBRP.Dialog.Situational"}}</label>
<input type="number" name="situational" value="0" step="5"/>
</div>
{{#if kit.length}}
<div class="rb-dialog-kit">
<span class="rb-kit-head">{{localize "RINGBRP.Dialog.Fitted"}}</span>
<ul>{{#each kit as |k|}}<li><b>{{k.name}}</b> {{k.effect}}</li>{{/each}}</ul>
</div>
{{/if}}
</form>