Skip to content

Commit

Permalink
Fixed player skills not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
colecrouter committed Sep 11, 2024
1 parent d231070 commit 90997e6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/routes/(edit)/character/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
hasMagicInk = !!c.hasMagicInk;
hasTownKey = !!c.HasTownKey;
skillValues = c.experiencePoints.int.slice(0, 5);
skillValues = c.experiencePoints.int;
});
let save: Save;
Expand Down Expand Up @@ -71,18 +71,19 @@
{#if player}
<Container>
<h3>Skills</h3>

<div class="wrapper">
{#each skillValues as skill, i}
<label>
{skills[i]}
<SkillBar bind:skill />
<input
type="number"
min="0"
max="99999"
bind:value={skill} />
</label>
{#if skills[i] !== undefined}
<label>
{skills[i]}
<SkillBar bind:skill />
<input
type="number"
min="0"
max="99999"
bind:value={skill} />
</label>
{/if}
{/each}
</div>

Expand Down

0 comments on commit 90997e6

Please sign in to comment.