Begin adding cost to items
This commit is contained in:
parent
dc5bf7aa07
commit
00228d3aae
7 changed files with 56 additions and 2 deletions
33
module/handlebarHelpers/inputs/currency.mjs
Normal file
33
module/handlebarHelpers/inputs/currency.mjs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { groupInput } from "./groupInput.mjs";
|
||||
|
||||
export function costInput(input, data) {
|
||||
return groupInput({
|
||||
title: input.label,
|
||||
fields: [
|
||||
{
|
||||
id: input.id + `-gold`,
|
||||
type: `integer`,
|
||||
label: `RipCrypt.common.currency.gold`,
|
||||
value: input.gold,
|
||||
path: `system.cost.gold`,
|
||||
limited: input.limited,
|
||||
},
|
||||
{
|
||||
id: input.id + `-silver`,
|
||||
type: `integer`,
|
||||
label: `RipCrypt.common.currency.silver`,
|
||||
value: input.silver,
|
||||
path: `system.cost.silver`,
|
||||
limited: input.limited,
|
||||
},
|
||||
{
|
||||
id: input.id + `-copper`,
|
||||
type: `integer`,
|
||||
label: `RipCrypt.common.currency.copper`,
|
||||
value: input.copper,
|
||||
path: `system.cost.copper`,
|
||||
limited: input.limited,
|
||||
},
|
||||
],
|
||||
}, data);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue