diff --git a/lang/en.json b/lang/en.json index 7616558..2cb04c4 100644 --- a/lang/en.json +++ b/lang/en.json @@ -17,7 +17,6 @@ "ordemparanormal.ability.plural": "Abilities", "ordemparanormal.OrdemActorSheet": "Agent's Sheet", - "ordemparanormal.tab": { "skills": "Skills", @@ -68,10 +67,17 @@ "ordemparanormal.attPre": "Presence", "ordemparanormal.attFor": "Strength", + "ordemparanormal.newItem": "Novo(a)", + "ordemparanormal.effectCreate": "Create Effect", "ordemparanormal.effectToggle": "Toggle Effect", "ordemparanormal.effectEdit": "Edit Effect", "ordemparanormal.effectDelete": "Delete Effect", + "ordemparanormal.temporaryEffects": "Temporary Effects", + "ordemparanormal.passiveEffects": "Passive Effects", + "ordemparanormal.inactiveEffects": "Inactive Effects", + "ordemparanormal.newEffect": "New Effect", + "ordemparanormal.sourceEffect": "Source", "ordemparanormal.Add": "Add", diff --git a/lang/pt-BR.json b/lang/pt-BR.json index f2badd9..fda7821 100644 --- a/lang/pt-BR.json +++ b/lang/pt-BR.json @@ -70,10 +70,17 @@ "ordemparanormal.attPre": "Presença", "ordemparanormal.attFor": "Força", + "ordemparanormal.newItem": "Novo(a)", + "ordemparanormal.effectCreate": "Criar Efeito", "ordemparanormal.effectToggle": "Trocar Efeito", "ordemparanormal.effectEdit": "Editar Efeito", "ordemparanormal.effectDelete": "Deletar Efeito", + "ordemparanormal.temporaryEffects": "Efeitos Temporários", + "ordemparanormal.passiveEffects": "Efeitos Passivos", + "ordemparanormal.inactiveEffects": "Efeitos Inativos", + "ordemparanormal.newEffect": "Novo Efeito", + "ordemparanormal.sourceEffect": "Fonte", "ordemparanormal.add": "Adicionar", diff --git a/module/helpers/effects.mjs b/module/helpers/effects.mjs index c0e3609..72871d1 100644 --- a/module/helpers/effects.mjs +++ b/module/helpers/effects.mjs @@ -14,7 +14,7 @@ export function onManageActiveEffect(event, owner) { case 'create': return owner.createEmbeddedDocuments('ActiveEffect', [ { - label: 'New Effect', + label: game.i18n.localize('ordemparanormal.newEffect'), icon: 'icons/svg/aura.svg', origin: owner.uuid, 'duration.rounds': @@ -41,17 +41,17 @@ export function prepareActiveEffectCategories(effects) { const categories = { temporary: { type: 'temporary', - label: 'Temporary Effects', + label: game.i18n.localize('ordemparanormal.temporaryEffects'), effects: [], }, passive: { type: 'passive', - label: 'Passive Effects', + label: game.i18n.localize('ordemparanormal.passiveEffects'), effects: [], }, inactive: { type: 'inactive', - label: 'Inactive Effects', + label: game.i18n.localize('ordemparanormal.inactiveEffects'), effects: [], }, }; diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index 12b5d5a..a4d6e7d 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -53,6 +53,7 @@ export class OrdemActorSheet extends ActorSheet { context.optionClass = CONFIG.ordemparanormal.dropdownClass; context.optionTrilhas = CONFIG.ordemparanormal.dropdownTrilha; context.optionOrigins = CONFIG.ordemparanormal.dropdownOrigins; + // CONFIG.ActiveEffect.legacyTransferral = true; // Prepara os dados do Agente e seus Items. if (actorData.type == 'agent') { @@ -67,11 +68,11 @@ export class OrdemActorSheet extends ActorSheet { // Prepare active effects context.effects = prepareActiveEffectCategories(this.actor.effects); - // TODO: pendente - // for (const i of context.items) { - // console.log(i); - // } - // console.log(context.effects); + // TODO: terminar a migração dos efeitos de itens para efeitos de ator. + for (const i of context.items) { + console.log(i); + } + console.log(context.effects); return context; } @@ -326,7 +327,7 @@ export class OrdemActorSheet extends ActorSheet { // Grab any data associated with this control. const data = duplicate(header.dataset); // Initialize a default name. - const name = `New ${type.capitalize()}`; + const name = game.i18n.localize('ordemparanormal.newItem') + ' ' + game.i18n.localize('TYPES.Item.' + type); // Prepare the item object. const itemData = { name: name, diff --git a/templates/actor/parts/actor-effects.html b/templates/actor/parts/actor-effects.html index b4d8652..53e4675 100644 --- a/templates/actor/parts/actor-effects.html +++ b/templates/actor/parts/actor-effects.html @@ -1,8 +1,8 @@
    {{#each effects as |section sid|}}
  1. -

    {{localize section.label}}

    -
    Source
    +

    {{localize section.label}}

    +
    {{localize "ordemparanormal.sourceEffect"}}
    {{localize "ordemparanormal.duration"}}