Merge pull request #158 from justinross/bugfix/crew-xp
Fix bug with setting crew xp and tier display
This commit is contained in:
commit
9a715320da
2 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ Hooks.once("init", async function() {
|
|||
let html = options.fn(this);
|
||||
for (let i = 1; i <= 10; i++) {
|
||||
|
||||
html += `<input type="radio" id="crew-${actor._id}-experience-${i}" name="data.experience" value="${i}" dtype="Radio"><label for="crew-experience-${i}"></label>`;
|
||||
html += `<input type="radio" id="crew-${actor._id}-experience-${i}" name="data.experience" value="${i}" dtype="Radio"><label for="crew-${actor._id}-experience-${i}"></label>`;
|
||||
}
|
||||
|
||||
return html;
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
{{/multiboxes}}
|
||||
</div>
|
||||
|
||||
<div id="crew-{{actor._id}}-tier">
|
||||
<div class="crew-tier">
|
||||
{{#multiboxes data.tier}}
|
||||
<input id="crew-{{actor._id}}-tier-0" type="radio" name="data.tier" value="0">
|
||||
<label for="crew-{{actor._id}}-tier-0" class="black-label">{{localize "BITD.Tier"}}</label>
|
||||
|
@ -225,7 +225,7 @@
|
|||
<div class="flex-fertical">
|
||||
<div class="big-teeth-section">
|
||||
<div id="crew-{{actor._id}}-xp" class="big-teeth">
|
||||
<label class="black-label" for="crew-{{../actor._id}}-experience-0">{{localize "BITD.CrewXP"}}</label>
|
||||
<label class="black-label" for="crew-{{actor._id}}-experience-0">{{localize "BITD.CrewXP"}}</label>
|
||||
{{#multiboxes data.experience}}
|
||||
<input type="radio" id="crew-{{actor._id}}-experience-0" name="data.experience" value="0" dtype="Radio">
|
||||
{{#crew_experience actor}}{{/crew_experience}}
|
||||
|
|
Reference in a new issue