Various fixes/update based on first tests feedback
This commit is contained in:
@@ -167,12 +167,9 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
|
||||
const kits = this.actor.itemTypes?.kit ?? []
|
||||
const actions = []
|
||||
for (const kit of kits) {
|
||||
const charges = kit.system.charges
|
||||
const chargesText = `${charges.value}/${charges.max}`
|
||||
actions.push({
|
||||
name: kit.name,
|
||||
id: kit.id,
|
||||
info1: { text: chargesText },
|
||||
encodedValue: ['kit', kit.id].join(this.delimiter)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user