First version with weapons

This commit is contained in:
2024-08-23 11:45:23 +02:00
parent 45ee08e6c2
commit 8cb2969d70
22 changed files with 3648 additions and 3493 deletions

View File

@@ -15,7 +15,6 @@
<th>{{localize "rmfrp.weapon.weight"}}</th>
<th>{{localize "rmfrp.weapon.breakage_range"}}</th>
<th>{{localize "rmfrp.weapon.strength"}}</th>
<th>{{localize "rmfrp.weapon.fumble_range"}}</th>
</tr>
<td>
@@ -42,12 +41,69 @@
<td>
<input name="system.strength" type="text" value="{{system.strength}}" data-dtype="String"/>
</td>
<td>
<input name="system.fumble_range" type="text" value="{{system.fumble_range}}" data-dtype="String"/>
</td>
</table>
{{localize "rmfrp.item.description"}}
<table>
<tr>
<th>{{localize "rmfrp.weapon.skill"}}</th>
<th>{{localize "rmfrp.weapon.weapon_bonus"}}</th>
</tr>
<td>
<select class="long-input" name="system.skill" type="text" value="{{system.skill}}" data-dtype="String">
{{selectOptions skills selected=system.skill }}
</select>
</td>
<td>
<input class="short-input" name="system.weapon_bonus" type="text" value="{{system.weapon_bonus}}" data-dtype="Number"/>
</td>
</table>
<table>
<tr>
<th>{{localize "rmfrp.weapon.attack_table"}}</th>
<th>{{localize "rmfrp.weapon.max_rank_size"}}</th>
</tr>
<td>
<select class="long-input" name="system.attack_table" type="text" value="{{system.attack_table}}" data-dtype="String">
{{selectOptions attackTables selected=system.attack_table nameAttr="key" valueAttr="key" labelAttr="name"}}
</select>
</td>
<td>
<input class="short-input" name="system.max_rank_size" type="text" value="{{system.max_rank_size}}" data-dtype="Number"/>
</td>
</table>
<table>
<tr>
<th>{{localize "rmfrp.weapon.critical_table"}}</th>
<th>{{localize "rmfrp.weapon.lsl_crit_column"}}</th>
</tr>
<td>
<select class="long-input" name="system.critical_table" type="text" value="{{system.critical_table}}" data-dtype="String">
{{selectOptions criticalTables selected=system.critical_table nameAttr="key" valueAttr="key" labelAttr="name"}}
</select>
</td>
<td>
<input class="short-input" name="system.lsl_crit_column" type="text" value="{{system.lsl_crit_column}}" data-dtype="Number"/>
</td>
</table>
<table class="short-input">
<th class="short-input">{{localize "rmfrp.weapon.range_modifier"}}</th>
{{#each system.range_modifier as |range idx|}}
<tr class="short-input">
<td class="short-input">
<input class="short-input" name="system.range_modifier.{{@index}}.range" type="text" value="{{range.range}}" data-dtype="Number"/>
</td>
<td class="short-input">
<input class="short-input" name="system.range_modifier.{{@index}}.modifier" type="text" value="{{range.modifier}}" data-dtype="Number"/>
</td>
</tr>
{{/each}}
</table>
{{localize "rmfrp.item.description"}}
{{editor enrichedDescription target="system.description" button=true owner=owner editable=editable}}
</div>
</div>