diff --git a/DnD_3_5_Modern/generated/characteristics.html b/DnD_3_5_Modern/generated/characteristics.html index f0b761f12b..e4592faff5 100644 --- a/DnD_3_5_Modern/generated/characteristics.html +++ b/DnD_3_5_Modern/generated/characteristics.html @@ -2,7 +2,7 @@
- +
10 @@ -10,7 +10,7 @@
- +
10 @@ -18,7 +18,7 @@
- +
10 @@ -26,7 +26,7 @@
- +
10 @@ -34,7 +34,7 @@
- +
10 @@ -42,7 +42,7 @@
- +
10 diff --git a/DnD_3_5_Modern/generated/spells.html b/DnD_3_5_Modern/generated/spells.html index ca4e986122..07b00d62c8 100644 --- a/DnD_3_5_Modern/generated/spells.html +++ b/DnD_3_5_Modern/generated/spells.html @@ -18,7 +18,7 @@
- +
@@ -69,7 +69,7 @@
- +
@@ -120,7 +120,7 @@
- +
@@ -173,7 +173,7 @@
- +
@@ -224,7 +224,7 @@
- +
@@ -275,7 +275,7 @@
- +
@@ -328,7 +328,7 @@
- +
@@ -379,7 +379,7 @@
- +
@@ -430,7 +430,7 @@
- +
@@ -481,7 +481,7 @@
- +
diff --git a/DnD_3_5_Modern/src/css/conditional-visibility.css b/DnD_3_5_Modern/src/css/conditional-visibility.css index 87d43dfb01..9f3c3b0362 100644 --- a/DnD_3_5_Modern/src/css/conditional-visibility.css +++ b/DnD_3_5_Modern/src/css/conditional-visibility.css @@ -75,6 +75,8 @@ z-index: 10; } +.trait:hover > options-flag, +.trait:hover > options-flag + span, .flex-row:hover > .options-flag + span, .flex-row:hover > .options-flag, .attq:hover > .options-flag + span, diff --git a/DnD_3_5_Modern/src/css/npc.css b/DnD_3_5_Modern/src/css/npc.css index 610c045235..c9e1e19c2f 100644 --- a/DnD_3_5_Modern/src/css/npc.css +++ b/DnD_3_5_Modern/src/css/npc.css @@ -32,4 +32,4 @@ margin: 0; } -} +} \ No newline at end of file diff --git a/DnD_3_5_Modern/src/html/npc.html b/DnD_3_5_Modern/src/html/npc.html index 2ab444a796..79b9389db6 100644 --- a/DnD_3_5_Modern/src/html/npc.html +++ b/DnD_3_5_Modern/src/html/npc.html @@ -4,37 +4,37 @@

Caractéristiques

-
-
-
-
-
- @@ -56,7 +56,7 @@

Classe d'armure

@@ -64,7 +64,7 @@
@@ -72,7 +72,7 @@
@@ -81,15 +81,15 @@

Jets de sauvegarde

- - + +
+ value="&{template:main} {{titre=^{save.ref.roll}}} {{subtitle=@{character_name} }} {{Jet=[[1d20+@{dex_mod}+@{ref_base}+@{ref_mod}]]}}"> @@ -98,7 +98,7 @@ + value="&{template:main} {{titre=^{save.vig.roll}}} {{subtitle=@{character_name} }} {{Jet=[[1d20+@{con_mod}+@{vig_base}+@{vig_mod}]]}}"> @@ -107,7 +107,7 @@ + value="&{template:main} {{titre=^{save.vol.roll}}} {{subtitle=@{character_name} }} {{Jet=[[1d20+@{sag_mod}+@{vol_base}+@{vol_mod}]]}}"> @@ -116,7 +116,7 @@

Capacités spécifiques

-
+
y
diff --git a/DnD_3_5_Modern/src/html/pc.html b/DnD_3_5_Modern/src/html/pc.html index d85ea56794..876e47a25f 100644 --- a/DnD_3_5_Modern/src/html/pc.html +++ b/DnD_3_5_Modern/src/html/pc.html @@ -64,7 +64,7 @@ name="attr_mastery-type"> + value="&{template:main} {{titre=^{rolltemplate.mastery} (@{mastery-type})}} {{subtitle=@{character_name} }} {{description=@{mastery-desc}}}"> @@ -161,7 +161,7 @@ + value="&{template:main} {{titre=^{stats.initiative} }} {{subtitle=@{character_name}}} {{Jet=[[1D20+@{init_tot} &{tracker}]]}}">
@@ -248,7 +248,7 @@   + value="&{template:main} {{titre=@{name}}} {{subtitle=@{character_name}}} {{description=@{description}}}">
@@ -274,7 +274,7 @@   + value="&{template:main} {{titre=@{name}}} {{subtitle=@{character_name}}} {{description=@{description}}}">
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",