diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fbb3060..371ca12 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,7 +38,7 @@ jobs: download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/system.zip # Create a zip file with all files required by the system to add to the release - - run: zip -r ./system.zip system.json template.json readme.md LICENSE.txt module/ assets/ build/ fonts/ lang/ templates/ packs/ readme/ styles/ + - run: zip -r ./system.zip system.json template.json readme.md LICENSE.txt module/ assets/ build/ fonts/ lang/ templates/ packs/ readme/ css/ # Update Release with Files - name: Update Release with Files diff --git a/lang/en.json b/lang/en.json index 9a41cea..0dcec2b 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1,188 +1,191 @@ { "PUNKAPOCALYPTIC": { "Ability": { - "Muscles": { "long": "Músculos", "abbr": "mus", "Tooltip": "Página 27" }, - "Meat": { "long": "Carne", "abbr": "car", "Tooltip": "Página 27" }, - "Hands": { "long": "Mãos", "abbr": "mao", "Tooltip": "Página 27" }, - "Feet": { "long": "Pés", "abbr": "pes", "Tooltip": "Página 27" }, "Brains": { "long": "Miolos", "abbr": "mio", "Tooltip": "Página 28" }, "Eyes": { "long": "Olhos", "abbr": "olh", "Tooltip": "Página 28" }, + "Feet": { "long": "Pés", "abbr": "pes", "Tooltip": "Página 27" }, + "Guts": { "long": "Tripas", "abbr": "tri", "Tooltip": "Página 28" }, + "Hands": { "long": "Mãos", "abbr": "mao", "Tooltip": "Página 27" }, + "Meat": { "long": "Carne", "abbr": "car", "Tooltip": "Página 27" }, "Mouth": { "long": "Boca", "abbr": "boc", "Tooltip": "Página 28" }, - "Guts": { "long": "Tripas", "abbr": "tri", "Tooltip": "Página 28" } + "Muscles": { "long": "Músculos", "abbr": "mus", "Tooltip": "Página 27" } }, + "ChatMessage": { + "AttackMessage": "Atacando com {weapon}", + "TitleDamageRoll": "Rolando dano para {weapon}" + }, + "CreateNewItemFem": "Criar Nova {type}", + "CreateNewItemMasc": "Criar Novo {type}", "DefaultItems": { "Hand": { "name": "Golpe Desarmado", "description": "

Socos, chutes e cabeçadas: um golpe desarmado usa o corpo para infligir dano.

"} }, + "Effect": { + "Inactive": "Efeitos inativos", + "Passive": "Efeitos passivos", + "Source": "Fonte", + "TabDuration": "Duração", + "Temporary": "Efeitos temporários", + "Toggle": "Alternar efeito" + }, + "Item": { + "specialActivity": {"long": "Atividade Especial", "abbr": "AE" }, + "Spell": { + "AddLVL": "Add LVL {level}", + "SpellLVL": "Level {level} Spells" + } + }, + "Messages": { + "HandItemAdded": "Golpe desarmado adicionado as suas coisas.", + "SelectWeaponLimitExceeded": "Você só pode usar 2 armas simultaneamente." + }, + "Mutation": { + "Mental": { "long": "Mental"}, + "Physic": { "long": "Físico"} + }, + "New": { + "Armor": "Veste Nova", + "Background": "Background Novo", + "Benefit": "Benefício novo", + "Effect": "Efeito", + "Item": "Coisa Nova", + "Mutation": "Mutação nova", + "SpecialActivity": "Nova Atividade Especial", + "Talent": "Talento Novo", + "Trait": "Traço Novo", + "VehiclePart": "Parte de Veículo", + "Weapon": "Arma Nova" + }, + "NewItemFem": "Nova {type}", + "NewItemMasc": "Novo {type}", + "Other": { + "Damage": {"long": "Dano", "abbr": "D" }, + "None": { "long": "", "abbr": "", "Tooltip": "" }, + "Pag": "Página", + "Reach": {"long": "Alcance", "abbr": "Alc" }, + "Size": { "long": "Tamanho", "abbr": "Tam" }, + "Speed": {"long": "Velocidade", "abbr": "Vel" } + }, "OtherAttributes": { "Education": { "long": "Educação", "abbr": "edu", "Tooltip": "Página 15" }, "Grit": { "long": "Determinacão", "abbr": "DET", "Tooltip": "Página 15" }, - "Reach": { "long": "Alcance", "abbr": "ALC", "Tooltip": "Página 15" }, - "Size": { "long": "Tamanho", "abbr": "TAM", "Tooltip": "Página 15" }, + "Luck": { "long": "Sorte", "abbr": "SOR", "Tooltip": "Página 15" }, "Mutations": { "long": "Mutacões", "abbr": "MUT", "Tooltip": "Página 15" }, - "Luck": { "long": "Sorte", "abbr": "SOR", "Tooltip": "Página 15" } + "Reach": { "long": "Alcance", "abbr": "ALC", "Tooltip": "Página 15" }, + "Size": { "long": "Tamanho", "abbr": "TAM", "Tooltip": "Página 15" } + }, + "OtherStatistics": { + "Acceleration": { "long": "Aceleração", " tooltip": "Página 77 do livro de regras" }, + "Braking": { "long": "Freio", " tooltip": "Página 77 do livro de regras" }, + "Cargo": { "long": "Carga", " tooltip": "Página 77 do livro de regras" }, + "Fuel": { "long": "Combustível", " tooltip": "Página 77 do livro de regras" }, + "Handling": { "long": "Manobrabilidade", " tooltip": "Página 77 do livro de regras" }, + "Locations": { "long": "Locais", " tooltip": "Página 77 do livro de regras" }, + "Occupants": { "long": "Ocupantes", " tooltip": "Página 77 do livro de regras" }, + "TopVelocity": { "long": "Velocidade Máxima", " tooltip": "Página 77 do livro de regras" } + }, + "Path": { + "Expert": { "long": "Especialista" }, + "Master": {"long": "Mestre" }, + "Novice": { "long": "Novato" } }, "Resource": { "Bullets": { "long": "Balas", "abbr": "balas" }, "Food": { "long": "Comida", "abbr": "comida" }, - "Water": { "long": "Água", "abbr": "agua" }, + "Fuel": { "long": "Combustível", "abbr": "combustivel" }, + "Luck": { "long": "Sorte", "abbr": "Sor"}, "Medicine": { "long": "Remédio", "abbr": "remedio" }, "Power": { "long": "Energia", "abbr": "energia" }, - "Fuel": { "long": "Combustível", "abbr": "combustivel" }, - "Luck": { "long": "Sorte", "abbr": "Sor"} - }, - "Statuses": { - "Frightened": { "long": "Assustado", "abbr": "" }, - "Stunned": { "long": "Atordoado", "abbr": "" }, - "Blinded": { "long": "Cego", "abbr": "" }, - "Confused": { "long": "Confuso", "abbr": "" }, - "Impaired": { "long": "Debilitado", "abbr": "" }, - "Sickened": { "long": "Enjoado", "abbr": "" }, - "Fatigued": { "long": "Fatigado", "abbr": "" }, - "Immobilized": { "long": "Imobilizado", "abbr": "" }, - "Unconscious": { "long": "Inconsciente", "abbr": "" }, - "Insane": { "long": "Insano", "abbr": "" }, - "Proned": { "long": "prostado", "abbr": "" }, - "Slowed": { "long": "lento", "abbr": "" } + "Water": { "long": "Água", "abbr": "agua" } }, "SheetLabels": { + "Abilities": "Habilidades", "Actor": "Punkapocalyptic Actor Sheet", + "Acessories": "Acessórios", "Attributes": "Atributos", - "Abilities": "Habilidades", + "Background": "Histórico", + "Benefits": "Benefícios", + "Damage": "Dano", + "Description": "Descrição", + "Effects": "Efeitos", + "HealthCurrent": "Vida Atual", + "HealthMax": "Vida Máxima", + "Inventory": "Coisas", "Item": "Punkapocalyptic Item Sheet", + "MPG": "Km/L", + "Main": "Principal", + "Mission": "Missão", + "Mojo": "Mojo", + "Mutations": "Mutações", + "Name": "Nome", "Paths": "Caminhos", "Preferidos": "Preferidos", - "Description": "Descrição", - "Quantity": "Quantidade", "Price": "Preço", - "Damage": "Dano", + "Properties": "Propriedades", + "Quantity": "Quantidade", "Range": "Alcance", + "Resources": "Mercadorias", "RollDamage": "Rolar Dano", "RollRange": "Rolar Alcance", - "Name": "Nome", - "Type": "Tipo", - "Mission": "Missão", - "Mojo": "Mojo", - "Resources": "Mercadorias", - "Main": "Principal", - "Inventory": "Coisas", - "Benefits": "Benefícios", - "Effects": "Efeitos", - "Mutations": "Mutações", - "Background": "Histórico", - "Traits": "Traços", "SpecialActivities": "Atividades Especiais", - "HealthMax": "Vida Máxima", - "HealthCurrent": "Vida Atual", - "MPG": "Km/L", - "Properties": "Propriedades" - }, - "Item": { - "Spell": { - "SpellLVL": "Level {level} Spells", - "AddLVL": "Add LVL {level}" - }, - "SpecialActivity": {"long": "Atividade Especial", "abbr": "AE" } - }, - "Mutation": { - "Physic": { "long": "Físico"}, - "Mental": { "long": "Mental"} - }, - "Effect": { - "Source": "Fonte", - "Toggle": "Alternar efeito", - "Temporary": "Efeitos temporários", - "Passive": "Efeitos passivos", - "Inactive": "Efeitos inativos", - "TabDuration": "Duração" - }, - "Other": { - "Pag": "Página", - "Size": { "long": "Tamanho", "abbr": "Tam" }, - "None": { "long": "", "abbr": "", "Tooltip": "" }, - "Damage": {"long": "Dano", "abbr": "D" }, - "Reach": {"long": "Alcance", "abbr": "Alc" }, - "Speed": {"long": "Velocidade", "abbr": "Vel" } - }, - "New": { - "Armor": "Veste Nova", - "Weapon": "Arma Nova", - "Trait": "Traço Novo", - "Item": "Coisa Nova", - "Special_activity": "Nova Atividade Especial", - "Talent": "Talento Novo", - "Benefit": "Benefício novo", - "Mutation": "Mutação nova", - "Background": "Background Novo", - "Effect": "Efeito", - "VehiclePart": "Parte de Veículo" - }, - "ChatMessage": { - "AttackMessage": "Atacando com {weapon}", - "TitleDamageRoll": "Rolando dano para {weapon}" + "Traits": "Traços", + "Type": "Tipo", + "Upgrades": "Aprimoramentos" }, - "WeaponTrait": { - "AreaAttack": { "long": "Ataque de Área", "abbr": "AdA", "tooltip": "Página 77 do livro de regras" }, - "BurstFire": { "long": "Rajada", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Cumbersome": { "long": "Volumosa", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Defensive": { "long": "Defensiva", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Finesse": { "long": "Acuidade", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Firearm": { "long": "Arma de Fogo", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "FullAuto": { "long": "Disparo Automático", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Range": { "long": "Alcance", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Reach": { "long": "Distância", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Reload": { "long": "Recarga", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Shitty": { "long": "Ferrada", "abbr": "Fer", "tooltip": "Página 77 do livro de regras" }, - "Special": { "long": "Especial", "abbr": "", "tooltip": "Página 77 do livro de regras" }, - "Thrown": { "long": "Arremesso", "abbr": "Arr", "tooltip": "Página 77 do livro de regras" }, - "Unreliable": { "long": "Inconstante", "abbr": "", "tooltip": "Página 77 do livro de regras" } + "Statuses": { + "Blinded": { "long": "Cego", "abbr": "" }, + "Confused": { "long": "Confuso", "abbr": "" }, + "Fatigued": { "long": "Fatigado", "abbr": "" }, + "Frightened": { "long": "Assustado", "abbr": "" }, + "Immobilized": { "long": "Imobilizado", "abbr": "" }, + "Impaired": { "long": "Debilitado", "abbr": "" }, + "Insane": { "long": "Insano", "abbr": "" }, + "Proned": { "long": "prostado", "abbr": "" }, + "Sickened": { "long": "Enjoado", "abbr": "" }, + "Slowed": { "long": "lento", "abbr": "" }, + "Stunned": { "long": "Atordoado", "abbr": "" }, + "Unconscious": { "long": "Inconsciente", "abbr": "" } }, "Vehicle": { - "Handling": { "long": "Manobrabilidade", "abbr": ""}, "Acceleration": { "long": "Aceleração", "abbr": ""}, - "Braking": { "long": "Freios", "abbr": ""}, - "TopVelocity": { "long": "Velocidade Máxima", "abbr": ""}, - "Fuel": { "long": "Tanque", "abbr": ""}, - "Locations": { "long": "Locais", "abbr": ""}, - "Occupants": { "long": "Ocupantes", "abbr": ""}, - "Cargo": { "long": "Carga", "abbr": ""}, "AccelerationOptions": { - "standard": "Padrão", - "slow": "Lenta", "fast": "Rápida", + "slow": "Lenta", + "standard": "Padrão", "superFast": " Super-rápida" }, - "Damage": "Danificar Parte" + "Braking": { "long": "Freios", "abbr": ""}, + "Cargo": { "long": "Carga", "abbr": ""}, + "Damage": "Danificar Parte", + "Fuel": { "long": "Tanque", "abbr": ""}, + "Handling": { "long": "Manobrabilidade", "abbr": ""}, + "Locations": { "long": "Locais", "abbr": ""}, + "Occupants": { "long": "Ocupantes", "abbr": ""}, + "Parts": { "long": "Partes", "abbr": ""}, + "TopVelocity": { "long": "Velocidade Máxima", "abbr": ""} }, "WeaponCategory": { + "Area": { "long": "Area" }, + "Explosive": { "long": "Explosivo" }, "Melee": { "long": "Corpo a Corpo" }, "Ranged": { "long": "Distância" }, - "Explosive": { "long": "Explosivo" }, - "Area": { "long": "Area" }, "Thrown": { "long": "Arremesso" } }, - "Messages": { - "HandItemAdded": "Golpe desarmado adicionado as suas coisas.", - "SelectWeaponLimitExceeded": "Você só pode usar 2 armas simultaneamente." - }, - "OtherStatistics": { - "Handling": { "long": "Manobrabilidade", " tooltip": "Página 77 do livro de regras" }, - "Acceleration": { "long": "Aceleração", " tooltip": "Página 77 do livro de regras" }, - "Braking": { "long": "Freio", " tooltip": "Página 77 do livro de regras" }, - "TopVelocity": { "long": "Velocidade Máxima", " tooltip": "Página 77 do livro de regras" }, - "Fuel": { "long": "Combustível", " tooltip": "Página 77 do livro de regras" }, - "Locations": { "long": "Locais", " tooltip": "Página 77 do livro de regras" }, - "Occupants": { "long": "Ocupantes", " tooltip": "Página 77 do livro de regras" }, - "Cargo": { "long": "Carga", " tooltip": "Página 77 do livro de regras" } - }, - "Path": { - "Novice": { "long": "Novato" }, - "Expert": { "long": "Especialista" }, - "Master": {"long": "Mestre" } - }, - "NewItemMasc": "Novo {type}", - "NewItemFem": "Nova {type}", - "CreateNewItemFem": "Criar Nova {type}", - "CreateNewItemMasc": "Criar Novo {type}" + "WeaponTrait": { + "AreaAttack": { "long": "Ataque de Área", "abbr": "AdA", "tooltip": "Página 77 do livro de regras" }, + "BurstFire": { "long": "Rajada", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Cumbersome": { "long": "Volumosa", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Defensive": { "long": "Defensiva", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Finesse": { "long": "Acuidade", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Firearm": { "long": "Arma de Fogo", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "FullAuto": { "long": "Disparo Automático", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Range": { "long": "Alcance", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Reach": { "long": "Distância", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Reload": { "long": "Recarga", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Shitty": { "long": "Ferrada", "abbr": "Fer", "tooltip": "Página 77 do livro de regras" }, + "Special": { "long": "Especial", "abbr": "", "tooltip": "Página 77 do livro de regras" }, + "Thrown": { "long": "Arremesso", "abbr": "Arr", "tooltip": "Página 77 do livro de regras" }, + "Unreliable": { "long": "Inconstante", "abbr": "", "tooltip": "Página 77 do livro de regras" } + } }, "TYPES": { "Actor": { @@ -191,17 +194,20 @@ "vehicle": "Veículo" }, "Item": { - "item": "Coisa", - "weapon": "Arma", - "trait": "Traço", + "armor": "Veste", "background": "Histórico", - "talent": "Talento", - "SpecialActivity": "Atividade Especial", "benefit": "Benefício", - "path": "Caminho", - "mutation": "Mutação", "effect": "Efeito", - "vehiclePart": "Parte (Veículo)" + "item": "Coisa", + "mutation": "Mutação", + "path": "Caminho", + "specialActivity": "Atividade Especial", + "talent": "Talento", + "trait": "Traço", + "vehiclePart": "Parte (Veículo)", + "vehicleAccessory": "Acessório (Veículo)", + "vehicleUpgrade": "Aprimoramento (Veículo)", + "weapon": "Arma" } } -} +} \ No newline at end of file diff --git a/lang/pt-BR.json b/lang/pt-BR.json index 46210eb..0dcec2b 100644 --- a/lang/pt-BR.json +++ b/lang/pt-BR.json @@ -28,7 +28,7 @@ "Toggle": "Alternar efeito" }, "Item": { - "SpecialActivity": {"long": "Atividade Especial", "abbr": "AE" }, + "specialActivity": {"long": "Atividade Especial", "abbr": "AE" }, "Spell": { "AddLVL": "Add LVL {level}", "SpellLVL": "Level {level} Spells" @@ -49,7 +49,7 @@ "Effect": "Efeito", "Item": "Coisa Nova", "Mutation": "Mutação nova", - "Special_activity": "Nova Atividade Especial", + "SpecialActivity": "Nova Atividade Especial", "Talent": "Talento Novo", "Trait": "Traço Novo", "VehiclePart": "Parte de Veículo", @@ -100,6 +100,7 @@ "SheetLabels": { "Abilities": "Habilidades", "Actor": "Punkapocalyptic Actor Sheet", + "Acessories": "Acessórios", "Attributes": "Atributos", "Background": "Histórico", "Benefits": "Benefícios", @@ -127,7 +128,8 @@ "RollRange": "Rolar Alcance", "SpecialActivities": "Atividades Especiais", "Traits": "Traços", - "Type": "Tipo" + "Type": "Tipo", + "Upgrades": "Aprimoramentos" }, "Statuses": { "Blinded": { "long": "Cego", "abbr": "" }, @@ -192,16 +194,19 @@ "vehicle": "Veículo" }, "Item": { - "SpecialActivity": "Atividade Especial", + "armor": "Veste", "background": "Histórico", "benefit": "Benefício", "effect": "Efeito", "item": "Coisa", "mutation": "Mutação", "path": "Caminho", + "specialActivity": "Atividade Especial", "talent": "Talento", "trait": "Traço", "vehiclePart": "Parte (Veículo)", + "vehicleAccessory": "Acessório (Veículo)", + "vehicleUpgrade": "Aprimoramento (Veículo)", "weapon": "Arma" } } diff --git a/module/helpers/config.mjs b/module/helpers/config.mjs index 261dd5b..1cd0231 100644 --- a/module/helpers/config.mjs +++ b/module/helpers/config.mjs @@ -141,13 +141,15 @@ PUNKAPOCALYPTIC.items = { trait: "TYPES.Item.trait", weapon: "TYPES.Item.weapon", item: "TYPES.Item.item", - special_activity: "TYPES.Item.special_activity", + specialActivity: "TYPES.Item.specialActivity", background: "TYPES.Item.background", //talent: "TYPES.Item.talent", benefit: "TYPES.Item.benefit", path: "TYPES.Item.path", mutation: "TYPES.Item.mutation", - vehiclePart: "TYPES.Item.vehiclePart" + vehiclePart: "TYPES.Item.vehiclePart", + vehicleUpgrade: "TYPES.Item.vehicleUpgrade", + vehicleAccessory: "TYPES.Item.vehicleAccessory" } PUNKAPOCALYPTIC.itemImages = { @@ -155,13 +157,15 @@ PUNKAPOCALYPTIC.itemImages = { trait: "icons/skills/trades/academics-investigation-puzzles.webp", weapon: "icons/weapons/clubs/club-spiked-glowing.webp", item: "icons/tools/fasteners/washer-square-steel-grey.webp", - special_activity: "icons/magic/control/silhouette-aura-energy.webp", + specialActivity: "icons/magic/control/silhouette-aura-energy.webp", background: "icons/sundries/documents/document-sealed-signatures-red.webp", //talent: "icons/magic/perception/eye-slit-orange.webp", benefit: "icons/magic/perception/eye-slit-orange.webp", path: "icons/skills/social/intimidation-impressing.webp", mutation: "icons/magic/symbols/triangle-glowing-green.webp", vehiclePart: "icons/tools/smithing/plate-steel-grey.webp", + vehicleUpgrade: "icons/commodities/metal/pin-cottar-steel.webp", + vehicleAccessory: "icons/commodities/metal/clasp-steel.webp", default: "icons/svg/item-bag.svg" } diff --git a/module/helpers/templates.mjs b/module/helpers/templates.mjs index f3661f1..0107a9c 100644 --- a/module/helpers/templates.mjs +++ b/module/helpers/templates.mjs @@ -22,6 +22,8 @@ export const preloadHandlebarsTemplates = async function () { // Vehicles partials 'systems/punkapocalyptic/templates/actor/parts/vehicle-occupants-item.hbs', 'systems/punkapocalyptic/templates/actor/parts/vehicle-parts-item.hbs', + 'systems/punkapocalyptic/templates/actor/parts/vehicle-vehicleAccessories.hbs', + 'systems/punkapocalyptic/templates/actor/parts/vehicle-vehicleUpgrades.hbs', // Item partials 'systems/punkapocalyptic/templates/item/parts/item-effects.hbs', 'systems/punkapocalyptic/templates/item/parts/item-talents.hbs', diff --git a/module/punkapocalyptic.mjs b/module/punkapocalyptic.mjs index 7c5c8e0..baf6de5 100644 --- a/module/punkapocalyptic.mjs +++ b/module/punkapocalyptic.mjs @@ -85,7 +85,7 @@ Hooks.once('init', async function () { //spell: models.PunkapocalypticSpell, weapon: models.PunkapocalypticItemWeapon, trait: models.PunkapocalypticTrait, - special_activity: models.PunkapocalypticSpecialActivity, + specialActivity: models.PunkapocalypticSpecialActivity, background: models.PunkapocalypticBackgroundItem, talent: models.PunkapocalypticItemTalent, benefit: models.PunkapocalypticItemBenefit, diff --git a/module/sheets/actor-sheet.mjs b/module/sheets/actor-sheet.mjs index a3bcbbb..4017776 100644 --- a/module/sheets/actor-sheet.mjs +++ b/module/sheets/actor-sheet.mjs @@ -163,7 +163,7 @@ export class PunkapocalypticActorSheet extends ActorSheet { features.push(i); } else if (CONFIG.PUNKAPOCALYPTIC.inventoryTypes.includes(i.type)) { inventory.push(i); - } else if (i.type === 'special_activity') { + } else if (i.type === 'specialActivity') { activities.push(i); } else if (CONFIG.PUNKAPOCALYPTIC.benefitSubTypes.includes(i.type)) { benefits.push(i); diff --git a/module/sheets/npc-sheet.mjs b/module/sheets/npc-sheet.mjs index dbec599..d97347a 100644 --- a/module/sheets/npc-sheet.mjs +++ b/module/sheets/npc-sheet.mjs @@ -163,7 +163,7 @@ export class PunkapocalypticNPCSheet extends ActorSheet { features.push(i); } else if (CONFIG.PUNKAPOCALYPTIC.inventoryTypes.includes(i.type)) { inventory.push(i); - } else if (i.type === 'special_activity') { + } else if (i.type === 'specialActivity') { activities.push(i); } else if (CONFIG.PUNKAPOCALYPTIC.benefitSubTypes.includes(i.type)) { benefits.push(i); diff --git a/module/sheets/vehicle-sheet.mjs b/module/sheets/vehicle-sheet.mjs index bed7871..3604a54 100644 --- a/module/sheets/vehicle-sheet.mjs +++ b/module/sheets/vehicle-sheet.mjs @@ -275,6 +275,8 @@ export class PunkapocalypticVehicleSheet extends ActorSheet { // Initialize containers. const occupants = []; const parts = []; + const vehicleUpgrades = []; + const vehicleAccessories = []; for (let i of this.actor.system.occupants) { const actor = await fromUuid(i.uuid); @@ -292,6 +294,10 @@ export class PunkapocalypticVehicleSheet extends ActorSheet { // Append to gear. if (i.type === "vehiclePart") { parts.push(i); + } else if (i.type === "vehicleUpgrade") { + vehicleUpgrades.push(i); + } else if (i.type === "vehicleAccessory") { + vehicleAccessories.push(i); } } @@ -302,7 +308,8 @@ export class PunkapocalypticVehicleSheet extends ActorSheet { context.parts = parts; - + context.vehicleUpgrades = vehicleUpgrades; + context.vehicleAccessories = vehicleAccessories; const effects = Array.from(context.effects); context.showeffects = effects.filter(i => !i.disabled); context.occupants = occupants; diff --git a/template.json b/template.json index 44a0246..b9a442b 100644 --- a/template.json +++ b/template.json @@ -3,6 +3,6 @@ "types": ["character", "npc", "vehicle"] }, "Item": { - "types": ["armor", "benefit", "item", "weapon", "trait", "mutation", "background","special_activity", "path", "talent", "vehicleUpgrade", "vehicleAccessory", "vehiclePart"] + "types": ["armor", "benefit", "item", "weapon", "trait", "mutation", "background","specialActivity", "path", "talent", "vehicleUpgrade", "vehicleAccessory", "vehiclePart"] } } diff --git a/templates/actor/actor-vehicle-sheet.hbs b/templates/actor/actor-vehicle-sheet.hbs index 0071bb8..4f2abb2 100644 --- a/templates/actor/actor-vehicle-sheet.hbs +++ b/templates/actor/actor-vehicle-sheet.hbs @@ -333,16 +333,16 @@
-

{{localize "PUNKAPOCALYPTIC.Vehicle.Occupants" }}

+

{{localize "PUNKAPOCALYPTIC.Vehicle.Occupants.long" }}

{{> "systems/punkapocalyptic/templates/actor/parts/vehicle-occupants-item.hbs" }}
@@ -354,11 +354,11 @@
- {{> "systems/punkapocalyptic/templates/actor/parts/actor-category-item.hbs" category="accessories" items="" }} + {{> "systems/punkapocalyptic/templates/actor/parts/vehicle-vehicleAccessories.hbs" category="accessories" items="" }}
-
- {{> "systems/punkapocalyptic/templates/actor/parts/actor-category-item.hbs" category="upgrades" items="" }} +
+ {{> "systems/punkapocalyptic/templates/actor/parts/vehicle-vehicleUpgrades.hbs" category="upgrades" items="" }}
diff --git a/templates/actor/parts/actor-special-activities.hbs b/templates/actor/parts/actor-special-activities.hbs index fb8c798..312f424 100644 --- a/templates/actor/parts/actor-special-activities.hbs +++ b/templates/actor/parts/actor-special-activities.hbs @@ -4,11 +4,11 @@ @@ -16,7 +16,7 @@
  • +
    {{localize 'Name'}}
    +
    {{localize 'Vida'}}
    +
    +
  • + {{#each vehicleAccessories as |item id|}} +
  • +
    +
    + + + +
    + +

    {{item.name}}

    + +
    + + + +
    {{item.system.health.value}} / {{item.system.health.max}}
    + +
  • + {{/each}} + \ No newline at end of file diff --git a/templates/actor/parts/vehicle-vehicleUpgrades.hbs b/templates/actor/parts/vehicle-vehicleUpgrades.hbs new file mode 100644 index 0000000..fbf5dfa --- /dev/null +++ b/templates/actor/parts/vehicle-vehicleUpgrades.hbs @@ -0,0 +1,39 @@ +
      +
    1. +
      {{localize 'Name'}}
      +
      {{localize 'Vida'}}
      + +
    2. + {{#each vehicleUpgrades as |item id|}} +
    3. +
      +
      + + + +
      +

      {{item.name}}

      +
      + + + +
      {{item.system.health.value}} / {{item.system.health.max}}
      + +
    4. + {{/each}} +
    \ No newline at end of file diff --git a/templates/item/item-benefit-sheet.hbs b/templates/item/item-benefit-sheet.hbs index 31f2d0e..6f9918d 100644 --- a/templates/item/item-benefit-sheet.hbs +++ b/templates/item/item-benefit-sheet.hbs @@ -17,7 +17,7 @@ {{! Sheet Tab Navigation }} {{! Sheet Body }} diff --git a/templates/item/item-item-sheet.hbs b/templates/item/item-item-sheet.hbs index a218d9a..7f318dd 100644 --- a/templates/item/item-item-sheet.hbs +++ b/templates/item/item-item-sheet.hbs @@ -22,7 +22,7 @@ {{! Sheet Tab Navigation }} {{! Sheet Body }} diff --git a/templates/item/item-vehicleAccessory-sheet.hbs b/templates/item/item-vehicleAccessory-sheet.hbs new file mode 100644 index 0000000..7f318dd --- /dev/null +++ b/templates/item/item-vehicleAccessory-sheet.hbs @@ -0,0 +1,48 @@ +
    +
    + +
    +

    + +

    +
    +
    + + +
    +
    + + +
    + +
    +
    +
    + + {{! Sheet Tab Navigation }} + + + {{! Sheet Body }} +
    + + {{! Description Tab }} + + + {{! Attributes Tab }} +
    + {{! Editors must receive enriched text data from getData to properly handle rolls }} + {{editor + enrichedDescription + target='system.description' + engine='prosemirror' + button=true + editable=editable + }} +
    +
    +
    \ No newline at end of file diff --git a/templates/item/item-vehicleUpgrade-sheet.hbs b/templates/item/item-vehicleUpgrade-sheet.hbs new file mode 100644 index 0000000..7f318dd --- /dev/null +++ b/templates/item/item-vehicleUpgrade-sheet.hbs @@ -0,0 +1,48 @@ +
    +
    + +
    +

    + +

    +
    +
    + + +
    +
    + + +
    + +
    +
    +
    + + {{! Sheet Tab Navigation }} + + + {{! Sheet Body }} +
    + + {{! Description Tab }} + + + {{! Attributes Tab }} +
    + {{! Editors must receive enriched text data from getData to properly handle rolls }} + {{editor + enrichedDescription + target='system.description' + engine='prosemirror' + button=true + editable=editable + }} +
    +
    +
    \ No newline at end of file