diff --git a/DnD_3_5_Modern/src/html/roll-templates.html b/DnD_3_5_Modern/src/html/roll-templates.html
index 49c3fe022e..54995be70e 100644
--- a/DnD_3_5_Modern/src/html/roll-templates.html
+++ b/DnD_3_5_Modern/src/html/roll-templates.html
@@ -9,21 +9,21 @@
{{Jet}}
-
+
{{/Jet}}
{{#Attaque}}
{{Attaque}}
-
+
{{/Attaque}}
{{#Dégats}}
{{Dégats}}
-
+
{{/Dégats}}
{{#allprops() titre subtitle description Attaque Dégats Jet}}
@@ -54,14 +54,14 @@
{{attack}}
-
+
{{/attack}}
{{#damage}}
{{damage}}
-
+
{{/damage}}
{{#notes}}
@@ -80,19 +80,19 @@
{{name}} ({{level}})
{{#school}}
-
+
{{/school}}
{{#casting-time}}
-
+
{{/casting-time}}
{{#range}}
-
+
{{/range}}
{{#duration}}
-
+
{{/duration}}
{{#innate}}
-
+
{{/innate}}
{{#allprops() name subtitle description school casting-time range duration innate level}}
diff --git a/DnD_3_5_Modern/src/js/attacks.js b/DnD_3_5_Modern/src/js/attacks.js
index 6786c200ed..849b60e580 100644
--- a/DnD_3_5_Modern/src/js/attacks.js
+++ b/DnD_3_5_Modern/src/js/attacks.js
@@ -125,7 +125,7 @@ let updateAttack = (attackId, modifiers) => {
}
let getRollFromModifiers = (modifiers) => {
- let baseRoll = "&{template:attack} {{titre=Attaque avec @{name}}} {{subtitle=@{character_name}}}";
+ let baseRoll = `&{template:attack} {{titre=^{rolltemplate.attack.with} @{name}}} {{subtitle=@{character_name}}}`;
let attackRoll = "1d20+@{bba}[BAB]+@{atq-carac-val}[Caracteristic]+@{atq-bonus}[Enhancement Bonus]+@{atq-bonus-2}[Misc Bonus]";
let damageRoll = "@{dgt-base}[Base Damage]+@{dgt-carac-val}[Caracteristic]+@{dgt-bonus}[Enhancement Bonus]";
for(let modifier of modifiers){
diff --git a/DnD_3_5_Modern/src/js/modifiers.js b/DnD_3_5_Modern/src/js/modifiers.js
index c6beae761d..4b76304eff 100644
--- a/DnD_3_5_Modern/src/js/modifiers.js
+++ b/DnD_3_5_Modern/src/js/modifiers.js
@@ -38,7 +38,6 @@ let updateModifierAndApplyChanges = (modifier_id) => {
//Get all modifiers Id then call a recursive method to build a list of modifiers
let getModifiersByTypeAndUpdateValues = (applicationType,callback,callback_id) => {
- debugger;
getSectionIDs("repeating_modifiers", (idArray) => {
getNextModifierByTypeAndUpdateValues(idArray, [], applicationType,callback,callback_id);
});
@@ -79,7 +78,6 @@ let getNextModifierByTypeAndUpdateValues = (modifierToGetList,modifierList,appli
}
let getLargestModifierOfEachTypeFor = (modifiersList,attr_name) =>{
- debugger;
let types = {};
let _name = attr_name?.toLowerCase();
let filteredModifierList = [];
diff --git a/DnD_3_5_Modern/src/js/saves.js b/DnD_3_5_Modern/src/js/saves.js
index 455dbc5900..a4147efbc9 100644
--- a/DnD_3_5_Modern/src/js/saves.js
+++ b/DnD_3_5_Modern/src/js/saves.js
@@ -44,7 +44,6 @@ let updateAllSaves = (modifierList) => {
let saves = ["ref","vig","vol"];
getAttrs(["dex_mod","con_mod","sag_mod","ref_base","ref_mod","vig_base","vig_mod","vol_base","vol_mod"], (values) => {
for(let save of saves){
- debugger;
let carac = 0;
let caracName = 0;
switch (save){
@@ -63,6 +62,7 @@ let updateAllSaves = (modifierList) => {
}
let base = parseInt(values[`${save}_base`]) || 0;
let mod = parseInt(values[`${save}_mod`]) || 0;
+ let save_name = `^{saves.${save}.roll}`
let total = base+carac;
let mods = mod;
let roll = `${carac}[${caracName}] + ${base}[${save}_base] + ${mod}[${save}_mod]`
@@ -73,7 +73,7 @@ let updateAllSaves = (modifierList) => {
}
let toUpdate = {};
toUpdate[`${save}_total`] = total + mods;
- toUpdate[`${save}_roll_value`] = `&{template:main} {{titre=Test de ${save}}} {{subtitle=@{character_name} }} {{Jet=[[1d20+${roll}]]}}`;
+ toUpdate[`${save}_roll_value`] = `&{template:main} {{titre=${save_name}}} {{subtitle=@{character_name} }} {{Jet=[[1d20+${roll}]]}}`;
toUpdate[`${save}_modified`] = !!mods;
setAttrs(toUpdate);
}
diff --git a/DnD_3_5_Modern/src/js/skills.js b/DnD_3_5_Modern/src/js/skills.js
index 330ec2407e..442e83c094 100644
--- a/DnD_3_5_Modern/src/js/skills.js
+++ b/DnD_3_5_Modern/src/js/skills.js
@@ -82,7 +82,7 @@ function updateSkillList(skillList,modifierList){
}
toUpdate[`${skillId}_modified`] = (!!mods);
toUpdate[`${skillId}_total`] = total+mods;
- toUpdate[`${skillId}_skillrollvalue`] = `&{template:main} {{titre=Test de '@{name}'}} {{subtitle=@{character_name} }} {{Jet=[[1d20+${roll}]]}}`;
+ toUpdate[`${skillId}_skillrollvalue`] = `&{template:main} {{titre=^{rolltemplate.rollof} '@{name}'}} {{subtitle=@{character_name} }} {{Jet=[[1d20+${roll}]]}}`;
toUpdate[`${skillId}_caracname`] = caracname;
}
setAttrs(toUpdate, {silent: true});
diff --git a/DnD_3_5_Modern/src/js/spells.js b/DnD_3_5_Modern/src/js/spells.js
index a57df4f39f..163ed059f0 100644
--- a/DnD_3_5_Modern/src/js/spells.js
+++ b/DnD_3_5_Modern/src/js/spells.js
@@ -9,7 +9,7 @@ for(let i = 0 ; i < 10; i++) {
}
-let baseSpell = "&{template:spell} {{name=Sort: @{name}}}";
+let baseSpell = "&{template:spell} {{name=^{spells.spell}: @{name}}}";
let update_spell = (id,level) =>{
let school = id+"_school";
let casting = id+"_casting-time";
diff --git a/DnD_3_5_Modern/src/pug/characteristics.pug b/DnD_3_5_Modern/src/pug/characteristics.pug
index a90e03c85e..f01510f58d 100644
--- a/DnD_3_5_Modern/src/pug/characteristics.pug
+++ b/DnD_3_5_Modern/src/pug/characteristics.pug
@@ -7,7 +7,7 @@ div.attributes.w-3
span(data-i18n=`attribute.${attribute}`)= attribute
span.mod(type="text" name=`attr_${attribute}_mod`)
input(type="hidden" name=`attr_${attribute}_rollvalue`
- value=`&{template:main} {{titre=Test de ${attribute}}} {{subtitle=@{character_name} }} {{Jet=[[1d20+@{${attribute}_mod}]]}}`)
+ value=`&{template:main} {{titre=^{attribute.${attribute}.roll}}} {{subtitle=@{character_name} }} {{Jet=[[1d20+@{${attribute}_mod}]]}}`)
div.base
input(type="hidden" name=`attr_${attribute}_modified` value="false")
input.base(type="number" name=`attr_${attribute}_base` value="10")
diff --git a/DnD_3_5_Modern/src/pug/spells.pug b/DnD_3_5_Modern/src/pug/spells.pug
index 31ed654896..556c872204 100644
--- a/DnD_3_5_Modern/src/pug/spells.pug
+++ b/DnD_3_5_Modern/src/pug/spells.pug
@@ -22,7 +22,7 @@ div.spells.flex-row
span!=" "
span.spell-innate(name="attr_innate")
input(type="hidden" name="attr_rollvalue"
- value!="&{template:spell} {{name=Sort: @{name}}}" +
+ value!="&{template:spell} {{name=^{spells.spell}: @{name}}}" +
" {{school=@{school}}} {{casting-time=@{casting-time}}} {{range=@{range}}}" +
" {{duration=@{duration}}} {{innate=@{innate}}}" +
" {{subtitle=@{character_name}}} {{level="+spell_level+"}} {{description=@{description}}}")
diff --git a/DnD_3_5_Modern/translation.json b/DnD_3_5_Modern/translation.json
index e2366962b7..81348a02f3 100644
--- a/DnD_3_5_Modern/translation.json
+++ b/DnD_3_5_Modern/translation.json
@@ -24,11 +24,17 @@
"attribute.charisma.short": "CHA",
"attribute.for": "STR",
+ "attribute.for.roll": "Roll of Strength",
"attribute.dex": "DEX",
+ "attribute.dex.roll": "Roll of Dexterity",
"attribute.con": "CON",
+ "attribute.con.roll": "Roll of Constitution",
"attribute.int": "INT",
+ "attribute.int.roll": "Roll of Intelligence",
"attribute.sag": "WIS",
+ "attribute.sag.roll": "Roll of Wisdom",
"attribute.cha": "CHA",
+ "attribute.cha.roll": "Roll of Charisma",
"attribute.title": "Ability Scores",
@@ -113,7 +119,7 @@
"inventory.title": "Inventory",
"inventory.name": "Name",
- "inventory.quantity": "Qty.",
+ "inventory.quantity": "Quantity",
"inventory.weight": "Weight",
"inventory.description": "Description",
@@ -161,12 +167,22 @@
"npc.cr": "CR",
"npc.xp": "XP",
+ "rolltemplate.attack": "Attack",
+ "rolltemplate.damage": "Damage",
+ "rolltemplate.result": "Result",
+ "rolltemplate.rollof": "Roll of",
+ "rolltemplate.mastery": "Mastery ",
+ "rolltemplate.attack.with": "Attack with",
+
"saves.title": "Saving Throws",
"saves.base": "Base",
"saves.mod": "Mod.",
"saves.reflex": "Reflex",
+ "saves.ref.roll": "Roll of Reflex",
"saves.willpower" : "Willpower",
+ "saves.vol.roll" : "Roll of Willpower",
"saves.fortitude" : "Fortitude",
+ "saves.vig.roll" : "Roll of Fortitude",
"skills.title": "Skills",
"skills.total": "Tot.",
@@ -185,6 +201,7 @@
"spells.innate": "Innate",
"spells.left": "Left",
"spells.max": "Maximum",
+ "spells.spell": "Spell",
"stats.initiative": "Initiative",
"stats.dr": "DR",