Skip to content

Commit

Permalink
fix: Removed read only, attempts to fix drop-down
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraKev committed Aug 18, 2020
1 parent 809fbb9 commit 2420161
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions static/templates/actors/actor-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,16 @@

<label for="data.skills.{{key}}.value" class="flex3 resource-label skill-{{skill.trained}}">{{skill.label}}</label>

<span><select class="skill-stat" name="characteristic">
<option value="data.characteristics.strength.mod">{{../data.characteristics.strength.shortlabel}}</option>
<option value="data.characteristics.dexterity.mod">{{../data.characteristics.dexterity.shortlabel}}</option>
<option value="data.characteristics.endurance.mod">{{../data.characteristics.endurance.shortlabel}}</option>
<option value="data.characteristics.intellect.mod">{{../data.characteristics.intellect.shortlabel}}</option>
<option value="data.characteristics.education.mod">{{../data.characteristics.education.shortlabel}}</option>
<option value="data.characteristics.social.mod">{{../data.characteristics.social.shortlabel}}</option>
<option value="data.characteristics.psionics.mod">{{../data.characteristics.psionics.shortlabel}}</option>
</select></span>
<select class="select-mod">
{{#select data.characteristics.label}}
{{#each ../data.characteristics as |mod k|}}
<option value="data.character.{{k}}.mod" for="skill-modifier">{{shortlabel}}</option>
{{/each}}
{{/select}}
</select>




<span class="skill-arrows flex1">

Expand All @@ -131,7 +132,7 @@
<!-- TODO Hardcoded dexterity for now, but it should get the value from the dropdown. Also moved dexterity to the top and disabled the select to make it seem less strange. :) -->
<span class="skill-output" trainable="true" trained="{{skill.trained}}" class="flex1 skill-mod rollable"
data-label="{{skill.label}}">{{numberFormat (getSkillValueWithJoat skill @root.data.jackofalltrades) decimals=0 sign=true}}
<img class="rollable" data-roll="2d6+@skills.{{key}}.value+@characteristics.{{key}}.mod" src="./systems/twodsix/assets/d6-icon.svg"/>
<img class="rollable" data-roll="2d6+@skills.{{key}}.value+@skill-modifier" src="./systems/twodsix/assets/d6-icon.svg"/>
</span>


Expand Down

0 comments on commit 2420161

Please sign in to comment.