diff --git a/lang/en.json b/lang/en.json
index 4984c43..dba7ff8 100644
--- a/lang/en.json
+++ b/lang/en.json
@@ -85,7 +85,43 @@
"WH.ui.conditions": "Conditions",
"WH.ui.effect": "Effect",
- "WH.ui.magicschool": "Magic School",
+ "WH.ui.main": "Main",
+ "WH.ui.combat": "Combat",
+ "WH.ui.skillstab": "Skills&Effects",
+ "WH.ui.powers": "Powers",
+ "WH.ui.equipment": "Equipment",
+ "WH.ui.biography": "Biography",
+ "WH.ui.race": "Race",
+ "WH.ui.class": "Class",
+ "WH.ui.religion": "Religion",
+ "WH.ui.origin": "Origin",
+ "WH.ui.age": "Age",
+ "WH.ui.height": "Height",
+ "WH.ui.eyes": "Eyes",
+ "WH.ui.hair": "Hair",
+ "WH.ui.preferredhand": "Preferred Hand",
+ "WH.ui.size": "Size",
+ "WH.ui.gender": "Gender",
+ "WH.ui.background": "Background",
+ "WH.ui.type": "Type",
+ "WH.ui.description": "Description",
+ "WH.ui.rawroll": "Raw Roll Formula (ex: 1d20+@statistics.str.value)",
+ "WH.ui.rawdamage": "Raw Damage Formula (ex: 1d6+(@statistics.str.value/2))",
+ "WH.ui.damage": "Damage",
+ "WH.ui.2hdamage": "2 Hands Damage",
+ "WH.ui.slotlocation": "Slot location",
+ "WH.ui.quantity": "Quantity",
+ "WH.ui.cost": "Cost",
+ "WH.ui.details": "Details",
- "WH.chat.save": "Save"
+ "WH.chat.save": "Save",
+ "WH.chat.mweaponmalus": "Multiple weapons malus ",
+ "WH.chat.diceresult": "Dice result",
+ "WH.chat.result": "Result",
+ "WH.chat.parysuccess": "Parry success !",
+ "WH.chat.paryfailed": "Parry failed !",
+ "WH.chat.rollformula": "Roll Formula",
+ "WH.chat.useshield":"Use shield ?",
+ "WH.chat.power": "Power",
+ "WH.chat.powerlevel": "Power Level"
}
\ No newline at end of file
diff --git a/lang/it.json b/lang/it.json
new file mode 100644
index 0000000..186f221
--- /dev/null
+++ b/lang/it.json
@@ -0,0 +1,91 @@
+{
+ "WH.conf.short": "Corte",
+ "WH.conf.long": "Lunghe",
+ "WH.conf.twohanded": "A Due mani",
+ "WH.conf.shooting": "Da tiro",
+ "WH.conf.throwing": "Da lancio",
+ "WH.conf.lightarmor" : "Leggera",
+ "WH.conf.mediumarmor": "Media",
+ "WH.conf.heavyarmor": "Pesante",
+ "WH.conf.lightshield": "Leggero",
+ "WH.conf.mediumshield": "Medio",
+ "WH.conf.towershield": "Torre",
+ "WH.conf.polearm": "Armi in asta",
+ "WH.conf.special": "Speciali",
+
+ "WH.conf.head": "Testa",
+ "WH.conf.cloak": "Mantello",
+ "WH.conf.weapon1": "Mano primaria",
+ "WH.conf.weapon2": "Mano secondaria",
+ "WH.conf.gloves": "Guanti",
+ "WH.conf.dress": "Abito",
+ "WH.conf.boots": "Stivali",
+ "WH.conf.ring": "Anelli",
+ "WH.conf.belt": "Cintura",
+ "WH.conf.quiver": "Faretra",
+ "WH.conf.armor": "Armatura",
+ "WH.conf.shield": "Scudo",
+ "WH.conf.backpack": "Zaino",
+ "WH.conf.beltpouch1": "Borsa da cintura 1",
+ "WH.conf.beltpouch2": "Borsa da cintura 2",
+ "WH.conf.beltpouch3": "Borsa da cintura 3",
+
+ "WH.ui.level": "Livello",
+ "WH.ui.notes": "Note",
+
+ "WH.ui.hpprog": "Progressione PF",
+ "WH.ui.lan": "Lingue",
+ "WH.ui.attrbonus": "Attributi",
+ "WH.ui.weapons": "Armi",
+ "WH.ui.armors": "Armature",
+ "WH.ui.shields": "Scudi",
+ "WH.ui.weapon": "Arma",
+
+ "WH.ui.Strength": "Fisico",
+ "WH.ui.Instinct": "Istinto",
+ "WH.ui.Dexterity": "Istinto",
+ "WH.ui.Mind": "Mente",
+ "WH.ui.Type": "Tipo",
+ "WH.ui.HitPoints": "Punti ferita",
+ "WH.ui.Defence": "Difesa",
+ "WH.ui.Throw2HitM": "TxC (corpo a corpo)",
+ "WH.ui.Throw2HitR": "TxC (distanza)",
+ "WH.ui.Mana": "Mana",
+ "WH.ui.Initiative": "Iniziativa",
+ "WH.ui.Movement": "Movimento (Terra)",
+ "WH.ui.MovementSwim": "Movimento (Nuoto)",
+ "WH.ui.MovementFly": "Movimento (Volare)",
+ "WH.ui.power": "Potere",
+
+ "WH.ui.Qty": "Quantitá",
+ "WH.ui.maxslots": "Max slots",
+ "WH.ui.slotsused": "Slots usati",
+ "WH.ui.Damage": "Danni",
+ "WH.ui.parrybonus": "Bonus a parata",
+ "WH.ui.damagereduction": "Riduzione danno",
+ "WH.ui.save": "Salva",
+ "WH.ui.XP": "PE",
+ "WH.ui.xphp": "Progressione PF",
+ "WH.ui.Knowledge": "Conoscenze",
+ "WH.ui.malusmultiweapon": "Malus nell uso di due armi",
+ "WH.ui.drbonus": "Bonus RD",
+ "WH.ui.parrybonustotal": "Bonus Parata totale",
+ "WH.ui.drbonustotal": "Bonus RD totale",
+ "WH.ui.counterspell": "Contropotere",
+ "WH.ui.createitem": "Bonus ai tiri percentuali",
+ "WH.ui.classSkills": "Abilitá di classe",
+ "WH.ui.skills": "Abilitá Aggiuntiva",
+ "WH.ui.isclassskill": "Abilitá di classe?",
+ "WH.ui.unlimited": "Usi illimitati?",
+ "WH.ui.currentuse": "Numero di usi",
+ "WH.ui.maxuse": "Usi Massimi",
+ "WH.ui.languages": "Lingue",
+ "WH.ui.languagesbonus": "Bonus a linguaggi conosciuti (men/2)",
+ "WH.ui.competency": "Competeze",
+ "WH.ui.conditions": "Condizioni",
+ "WH.ui.effect": "Effetti",
+
+ "WH.ui.magicschool": "Sfera di magia",
+
+ "WH.chat.save": "Salva"
+}
\ No newline at end of file
diff --git a/modules/warhero-utility.js b/modules/warhero-utility.js
index 5810a26..375c815 100644
--- a/modules/warhero-utility.js
+++ b/modules/warhero-utility.js
@@ -216,10 +216,8 @@ export class WarheroUtility {
const templatePaths = [
'systems/fvtt-warhero/templates/editor-notes-gm.html',
- 'systems/fvtt-warhero/templates/partial-roll-select.html',
'systems/fvtt-warhero/templates/partial-actor-stat-block.html',
'systems/fvtt-warhero/templates/partial-actor-status.html',
- 'systems/fvtt-warhero/templates/partial-options-abilities.html',
'systems/fvtt-warhero/templates/partial-item-nav.html',
'systems/fvtt-warhero/templates/partial-item-description.html',
'systems/fvtt-warhero/templates/partial-item-common-equipment.html',
diff --git a/system.json b/system.json
index c798a80..9774592 100644
--- a/system.json
+++ b/system.json
@@ -18,6 +18,12 @@
"name": "English",
"path": "lang/en.json",
"flags": {}
+ },
+ {
+ "lang": "it",
+ "name": "English",
+ "path": "lang/it.json",
+ "flags": {}
}
],
"license": "LICENSE.txt",
@@ -101,7 +107,7 @@
"styles": [
"styles/simple.css"
],
- "version": "10.0.25",
+ "version": "10.0.26",
"compatibility": {
"minimum": "10",
"verified": "10",
@@ -109,7 +115,7 @@
},
"title": "Warhero RPG",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-warhero/raw/branch/master/system.json",
- "download": "https://www.uberwald.me/gitea/uberwald/fvtt-warhero/archive/fvtt-warhero-10.0.25.zip",
+ "download": "https://www.uberwald.me/gitea/uberwald/fvtt-warhero/archive/fvtt-warhero-10.0.26.zip",
"url": "https://www.uberwald.me/gitea/public/fvtt-warhero",
"background": "images/ui/warhero_welcome_page.webp",
"id": "fvtt-warhero"
diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html
index 517f058..09877ba 100644
--- a/templates/actor-sheet.html
+++ b/templates/actor-sheet.html
@@ -64,12 +64,12 @@
{{!-- Sheet Tab Navigation --}}
- Main
- Combat
- Skills&Effects
- Powers
- Equipment
- Biography
+ {{localize "WH.ui.main"}}
+ {{localize "WH.ui.combat"}}
+ {{localize "WH.ui.skillstab"}}
+ {{localize "WH.ui.powers"}}
+ {{localize "WH.ui.equipment"}}
+ {{localize "WH.ui.biography"}}
{{!-- Sheet Body --}}
@@ -176,7 +176,7 @@
{{localize "WH.ui.Type"}}
@@ -216,7 +216,7 @@
{{localize "WH.ui.Type"}}
@@ -248,7 +248,7 @@
{{localize "WH.ui.Type"}}
@@ -485,28 +485,20 @@
- Background :
+ {{localize "WH.ui.background"}} :
{{editor description target="system.biodata.description" button=true owner=owner
editable=editable}}
- Notes :
+ {{localize "WH.ui.notes"}} :
{{editor notes target="system.biodata.notes" button=true owner=owner editable=editable}}
diff --git a/templates/chat-attack-defense-result.html b/templates/chat-attack-defense-result.html
deleted file mode 100644
index 4367f4b..0000000
--- a/templates/chat-attack-defense-result.html
+++ /dev/null
@@ -1,75 +0,0 @@
-
-
-
-
- {{#if img}}
-
-
-
- {{/if}}
-
-
-
-
-
-
- Fight result !
- {{#if successDetails.fumbleDetails}}
- Fumble ! : {{successDetails.fumbleDetails.data.text}}
- {{/if}}
-
-
- {{#if armorResult}}
- Armor initial result : {{armorResult.rawArmor}}
- {{#each armorResult.messages as |message idx|}}
- {{message}}
- {{/each}}
- {{/if}}
-
- {{#if successDetails.hack_vs_shields}}
- Hack weapon : check shield !
- {{/if}}
-
- {{#if successDetails.entangle}}
- Entangle weapon : attacker can entangle !
- {{/if}}
-
- {{#if successDetails.knockback}}
- Knockback weapon : check knockback !
- {{/if}}
-
- {{#if successDetails.hack_armors}}
- Hack weapon : check armor damage !
- {{/if}}
-
- {{#if successDetails.penetrating_impale}}
- Penetrating weapon : apply the Impale condition !
- {{/if}}
-
- {{#if (or successDetails.critical_1 successDetails.critical_2)}}
- Critical {{#if successDetails.critical_1}} 1 {{else}} 2 {{/if}} : {{successDetails.criticalText}}
- {{/if}}
-
- {{#if successDetails.attackerHPLossValue}}
- Attacker has lost HP : {{successDetails.attackerHPLossValue}} HP
- {{/if}}
-
- {{#if successDetails.defenderHPLossValue}}
- Defender has lost HP : {{successDetails.defenderHPLossValue}} HP
- {{/if}}
-
- Success details : {{successDetails.result}}
-
- Final successes {{sumSuccess}}
-
-
-
-
-
-
-
diff --git a/templates/chat-generic-result.html b/templates/chat-generic-result.html
index b461d47..82d0fc5 100644
--- a/templates/chat-generic-result.html
+++ b/templates/chat-generic-result.html
@@ -31,18 +31,18 @@
{{/if}}
{{#if usemWeaponMalus}}
- Multiple weapons malus : {{mWeaponMalus}}
+ {{localize "WH.chat.mweaponmalus"}}: {{mWeaponMalus}}
{{/if}}
{{#if diceFormula}}
Formula : {{diceFormula}}
{{#if isCriticalSuccess}}
- Dice result : {{diceResult}}
+ {{localize "WH.chat.diceresult"}} : {{diceResult}}
{{else}}
{{#if isCriticalFailure}}
- Dice result : {{diceResult}}
+ {{localize "WH.chat.diceresult"}} : {{diceResult}}
{{else}}
- Dice result : {{diceResult}}
+ {{localize "WH.chat.diceresult"}} : {{diceResult}}
{{/if}}
{{/if}}
{{/if}}
@@ -53,7 +53,7 @@
{{localize "WH.ui.level"}} : {{power.system.level}}
{{{powerText}}}
{{else}}
- Result : {{roll.total}}
+ {{localize "WH.chat.result"}} : {{roll.total}}
{{/if}}
diff --git a/templates/chat-opposed-fail.html b/templates/chat-opposed-fail.html
deleted file mode 100644
index 4e71d14..0000000
--- a/templates/chat-opposed-fail.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
- {{defenderName}} wins the opposition against {{attackerName}} !
-
-
-
diff --git a/templates/chat-parry-result.html b/templates/chat-parry-result.html
index 35e007b..973d1f5 100644
--- a/templates/chat-parry-result.html
+++ b/templates/chat-parry-result.html
@@ -20,19 +20,19 @@
Formula : {{diceFormula}}
{{#if isCriticalSuccess}}
- Dice result : {{diceResult}}
+ {{localize "WH.chat.diceresult"}} : {{diceResult}}
{{else}}
{{#if isCriticalFailure}}
- Dice result : {{diceResult}}
+ {{localize "WH.chat.diceresult"}} : {{diceResult}}
{{else}}
- Dice result : {{diceResult}}
+ {{localize "WH.chat.diceresult"}} : {{diceResult}}
{{/if}}
{{/if}}
{{#if isSuccess}}
- Parry success !
+ {{localize "WH.chat.parysuccess"}}
{{else}}
- Parry failed !
+ {{localize "WH.chat.paryfailed"}}
{{/if}}
diff --git a/templates/chat-request-defense.html b/templates/chat-request-defense.html
deleted file mode 100644
index f5bda4d..0000000
--- a/templates/chat-request-defense.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-{{#if img}}
-
-
-
-{{/if}}
-
-
-
-
-
-
- {{#if isRangedAttack}}
-
{{defender.name}} is under Ranged attack. He must roll a Target Roll to defend himself.
- {{else}}
-
{{defender.name}} is under Melee attack. He must roll a Defense Roll to defend himself.
- {{/if}}
-
-
- {{#if isRangedAttack}}
-
- Roll Target !
-
- {{else}}
-
- {{#each defenderWeapons as |weapon idx|}}
- {{weapon.name}}
- {{/each}}
-
- {{/if}}
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/templates/item-armor-sheet.html b/templates/item-armor-sheet.html
index 769bf3e..b7640d8 100644
--- a/templates/item-armor-sheet.html
+++ b/templates/item-armor-sheet.html
@@ -18,7 +18,7 @@
- Type
+ {{localize "WH.ui.type"}}
{{#select system.armortype}}
{{#each config.armorTypes as |type key|}}
@@ -28,7 +28,7 @@
- Damage reduction
+ {{localize "WH.ui.damagereduction"}}
diff --git a/templates/item-class-sheet.html b/templates/item-class-sheet.html
index e7798ce..e11dfd5 100644
--- a/templates/item-class-sheet.html
+++ b/templates/item-class-sheet.html
@@ -12,7 +12,7 @@
-
Description
+
{{localize "WH.ui.description"}}
{{editor description target="system.description" button=true owner=owner editable=editable}}
diff --git a/templates/item-shield-sheet.html b/templates/item-shield-sheet.html
index 5aaebc1..5f53d88 100644
--- a/templates/item-shield-sheet.html
+++ b/templates/item-shield-sheet.html
@@ -18,7 +18,7 @@
diff --git a/templates/item-weapon-sheet.html b/templates/item-weapon-sheet.html
index 2a539bb..bf724bf 100644
--- a/templates/item-weapon-sheet.html
+++ b/templates/item-weapon-sheet.html
@@ -18,7 +18,7 @@
- Type
+ {{localize "WH.ui.type"}}
{{#select system.weapontype}}
{{#each config.weaponTypes as |type key|}}
@@ -29,20 +29,20 @@
{{#if (eq system.weapontype "special")}}
- Raw Roll Formula (ex: 1d20+@statistics.str.value)
+ {{localize "WH.ui.rawroll"}}
- Raw Damage Formula (ex: 1d6+(@statistics.str.value/2))
+ {{localize "WH.ui.rawdamage"}}
{{else}}
- Damage
+ {{localize "WH.ui.damage"}}
{{/if}}
{{#if (eq system.weapontype "polearm")}}
- Damage 2 arms
+ {{localize "WH.ui.2hdamage"}}
{{/if}}
diff --git a/templates/monster-sheet.html b/templates/monster-sheet.html
index c3a1258..09877ba 100644
--- a/templates/monster-sheet.html
+++ b/templates/monster-sheet.html
@@ -64,12 +64,12 @@
{{!-- Sheet Tab Navigation --}}
- Main
- Combat
- Skills&Effects
- Powers
- Equipment
- Biography
+ {{localize "WH.ui.main"}}
+ {{localize "WH.ui.combat"}}
+ {{localize "WH.ui.skillstab"}}
+ {{localize "WH.ui.powers"}}
+ {{localize "WH.ui.equipment"}}
+ {{localize "WH.ui.biography"}}
{{!-- Sheet Body --}}
@@ -176,7 +176,7 @@
{{localize "WH.ui.Type"}}
@@ -192,8 +192,16 @@
{{weapon.name}}
{{weapon.system.weapontype}}
-
+
+ {{#if (eq system.weapontype "special")}}
+ {{weapon.system.damageformula}}
+ {{else}}
{{weapon.damageFormula}}
+ {{/if}}
+
+ {{#if (eq system.weapontype "polearm")}}
+ {{weapon.damageFormula2Hands}}
+ {{/if}}
@@ -208,7 +216,7 @@
{{localize "WH.ui.Type"}}
@@ -240,7 +248,7 @@
+
{{!-- Powers Tab --}}
@@ -476,28 +485,20 @@
-
Background :
+
{{localize "WH.ui.background"}} :
{{editor description target="system.biodata.description" button=true owner=owner
editable=editable}}
-
Notes :
+
{{localize "WH.ui.notes"}} :
{{editor notes target="system.biodata.notes" button=true owner=owner editable=editable}}
diff --git a/templates/partial-item-common-equipment.html b/templates/partial-item-common-equipment.html
index 80298cd..95cf073 100644
--- a/templates/partial-item-common-equipment.html
+++ b/templates/partial-item-common-equipment.html
@@ -1,7 +1,7 @@
-
Slots used
+{{localize "WH.ui.slotsused"}}
-
Slot location
+{{localize "WH.ui.slotlocation"}}
{{#select system.slotlocation}}
{{#each config.slotNames as |type key|}}
@@ -10,9 +10,9 @@
{{/select}}
-
Quantity
+ {{localize "WH.ui.quantity"}}
-
Cost
+ {{localize "WH.ui.cost"}}
diff --git a/templates/partial-item-description.html b/templates/partial-item-description.html
index 26c9623..af0db77 100644
--- a/templates/partial-item-description.html
+++ b/templates/partial-item-description.html
@@ -1,6 +1,6 @@
-
Description
+
{{localize "WH.ui.description"}}
{{editor description target="system.description" button=true owner=owner editable=editable}}
diff --git a/templates/partial-item-nav.html b/templates/partial-item-nav.html
index 95b52cd..127fc33 100644
--- a/templates/partial-item-nav.html
+++ b/templates/partial-item-nav.html
@@ -1,5 +1,5 @@
{{!-- Sheet Tab Navigation --}}
- Description
- Details
+ {{localize "WH.ui.description"}}
+ {{localize "WH.ui.details"}}
diff --git a/templates/partial-options-abilities.html b/templates/partial-options-abilities.html
deleted file mode 100644
index 0efa008..0000000
--- a/templates/partial-options-abilities.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
Agility
-
Strength
-
Dexterity
-
Constitution
-
Intelligence
-
Wits
-
Charisma
diff --git a/templates/partial-options-equipment-types.html b/templates/partial-options-equipment-types.html
deleted file mode 100644
index ab60653..0000000
--- a/templates/partial-options-equipment-types.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
Camping & Survival
-
Communication & Information
-
Equestrian
-
Law/Security/Spy/Thief
-
Medical
-
Tools
-
Weapons accessories
-
Wizards materials
-
Mounts
-
Vehicles
-
Clothing
-
Ammo
-
Misc
diff --git a/templates/partial-options-level.html b/templates/partial-options-level.html
deleted file mode 100644
index 0fb86c0..0000000
--- a/templates/partial-options-level.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{{#if notapplicable}}
-
Not applicable
-{{/if}}
-
0
-
d4
-
d6
-
d8
-
d10
-
d12
-
d12 d4
-
d12 d6
-
d12 d8
-
d12 d10
-
d12 d12
diff --git a/templates/partial-options-range.html b/templates/partial-options-range.html
deleted file mode 100644
index e08a1e5..0000000
--- a/templates/partial-options-range.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{{#if notapplicable}}
-
Not applicable
-{{/if}}
-
Self Only
-
Touch/Self
-
Threat Zone
-
Close
-
Medium
-
Long
-
Extreme
-
Line of Sight
-
TZ/Close
-
Close/Medium
-
Medium/Long
-
Long/Extreme
diff --git a/templates/partial-roll-select.html b/templates/partial-roll-select.html
deleted file mode 100644
index 7c9e85f..0000000
--- a/templates/partial-roll-select.html
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
diff --git a/templates/post-item.html b/templates/post-item.html
index 1bad9c8..8ce0f51 100644
--- a/templates/post-item.html
+++ b/templates/post-item.html
@@ -4,5 +4,5 @@
{{/if}}
Description :
-
{{{data.description}}}
+
{{{system.description}}}
diff --git a/templates/roll-dialog-generic.html b/templates/roll-dialog-generic.html
index 205a410..9256771 100644
--- a/templates/roll-dialog-generic.html
+++ b/templates/roll-dialog-generic.html
@@ -10,19 +10,19 @@
{{#if weapon}}
- Weapon :
+ {{localize "WH.ui.weapon"}} :
{{weapon.name}}
{{#if (eq mode "damage")}}
{{#if (eq weapon.system.weapontype "special")}}
- Damage :
+ {{localize "WH.ui.damage"}} :
{{weapon.system.damageformula}}
{{else}}
-
Damage :
+
{{localize "WH.ui.damage"}} :
{{#if is2hands}}
{{weapon.damageFormula2Hands}}
{{else}}
@@ -34,7 +34,7 @@
{{else}}
{{#if (eq weapon.system.weapontype "special")}}
- Roll Formula :
+ {{localize "WH.chat.rollformula"}} :
{{weapon.system.rollformula}}
{{/if}}
@@ -54,7 +54,7 @@
{{#if stat.istxc}}
- Multiple weapons malus ({{mWeaponMalus}})?
+ {{localize "WH.chat.mweaponmalus}}" ({{mWeaponMalus}})?
{{/if}}
@@ -62,7 +62,7 @@
{{#if shield}}
-
Use shield ? :
+
{{localize "WH.chat.useshield"}} :
@@ -75,11 +75,11 @@
{{#if power}}
- Power :
+ {{localize "WH.chat.power"}} :
{{power.name}}
- Power Level :
+ {{localize "WH.chat.powerlevel"}} :
{{power.system.level}}
{{/if}}