Spells and ranged attacks. Partial cleanup of i18n

This commit is contained in:
Neill Cox 2024-05-06 11:37:28 +10:00
parent 1d5328a9f1
commit 4619b787e5
5 changed files with 139 additions and 12 deletions

View file

@ -28,10 +28,15 @@ export const ACTION_TYPE = {
/**
* Groups
*/
// Note: names are automatically localized. I could have avoided some effort if I had realised that sooner.
export const GROUP = {
attributes: { id: 'attributes', name: 'tokenActionHud.gurps.attributes', type: 'system' },
skills: { id: 'skills', name: 'tokenActionHud.gurps.skills', type: 'system' },
melee: { id: 'melee', name: 'tokenActionHud.gurps.melee', type: 'system' },
attributes: { id: 'attributes', name: 'GURPS.attributes', type: 'system' },
skills: { id: 'skills', name: 'GURPS.skills', type: 'system' },
spells: { id: 'spells', name: 'GURPS.spells', type: 'system' },
melee: { id: 'melee', name: 'GURPS.meleeAttack', type: 'system' },
ranged: { id: 'ranged', name: 'GURPS.rangedAttack', type: 'system' },
armor: { id: 'armor', name: 'tokenActionHud.template.armor', type: 'system' },
equipment: { id: 'equipment', name: 'tokenActionHud.template.equipment', type: 'system' },
consumables: { id: 'consumables', name: 'tokenActionHud.template.consumables', type: 'system' },
@ -49,7 +54,9 @@ export const GROUP = {
export const ITEM_TYPE = {
attributes: { groupId: 'attributes' },
skills: { groupId: 'skills' },
spells: { groupId: 'spells' },
melee: { groupId: 'melee' },
ranged: { groupId: 'ranged' },
armor: { groupId: 'armor' },
backpack: { groupId: 'containers' },
consumable: { groupId: 'consumables' },