fix npc dice roll, and with category id instead of skill id
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<li class="skill skill-wrapper" data-skill="{{skillId}}">
|
||||
<label class="skill-content">
|
||||
<span class="skill-name attribute-label rollable">{{ localizeSkill categoryId skillId }}</span>
|
||||
<input type="text" name="data.skills.{{categoryId}}.{{skillId}}.value" value="{{skill.value}}" data-dtype="Number" placeholder="0"/>
|
||||
<input type="text" name="data.skills.{{categoryId}}.{{skillId}}" value="{{skill}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
<!-- Roll button -->
|
||||
</li>
|
||||
@@ -1,10 +1,10 @@
|
||||
<ul class="npc-skill">{{!-- Skills --}}
|
||||
{{#each data.skills as |skillValue skillCatId|}}
|
||||
<li>
|
||||
<label>
|
||||
<li class="skill skill-wrapper" data-skillcat="{{skillCatId}}">
|
||||
<label for="skill_{{skillCatId}}" class="skill-name">
|
||||
{{localizeSkill skillCatId "title"}}
|
||||
<input type="text" name="data.skills.{{skillCatId}}" value="{{skillValue}}" data-dtype="Number" placeholder="0"/>
|
||||
</label>
|
||||
<input id="skill_{{skillCatId}}" type="text" name="data.skills.{{skillCatId}}" value="{{skillValue}}" data-dtype="Number" placeholder="0"/>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user