Make the spell cost correctly save / render

This commit is contained in:
Oliver-Akins 2024-01-26 20:27:57 -07:00
parent 0c211be7dc
commit 4a3523d6cf
2 changed files with 4 additions and 4 deletions

View file

@ -4,8 +4,8 @@
<summary data-collapse-id="{{spell.uuid}}">
<span class="flex-grow" style="flex-grow: 1">
{{spell.name}}
{{#if (defined spell.system.cost)}}
{{localize "dotdungeon.actor.pc.spells.title.cost" cost=spell.system.cost}}
{{#if (defined spell.system.usage_cost)}}
{{localize "dotdungeon.actor.pc.spells.title.cost" cost=spell.system.usage_cost}}
{{/if}}
</span>
</summary>

View file

@ -12,8 +12,8 @@
{{localize "dotdungeon.item.spell.cost.label"}}
<input
type="number"
name="system.cost"
value="{{system.cost}}"
name="system.usage_cost"
value="{{system.usage_cost}}"
aria-label="{{localize "dotdungeon.item.spell.aria.cost"}}"
>
</label>