diff --git a/DreamsAndMachines/Dreams and Machines.css b/DreamsAndMachines/Dreams and Machines.css index 8564838711..b06cb2e5cd 100644 --- a/DreamsAndMachines/Dreams and Machines.css +++ b/DreamsAndMachines/Dreams and Machines.css @@ -608,6 +608,8 @@ img { } .sheet-rolltemplate-foweapon .sheet-hidden-attribute[data-i18n-placeholder*=might] ~ .sheet-container .sheet-might, .sheet-rolltemplate-foweapon .sheet-hidden-attribute[data-i18n-placeholder*=quickness] ~ .sheet-container .sheet-quickness, +.sheet-rolltemplate-foweapon .sheet-hidden-attribute[data-i18n-placeholder*=main] ~ .sheet-container .sheet-main, +.sheet-rolltemplate-foweapon .sheet-hidden-attribute[data-i18n-placeholder*=default] ~ .sheet-container .sheet-default, .sheet-rolltemplate-foskill .sheet-hidden-attribute[data-i18n-placeholder*=might] ~ .sheet-container .sheet-might, .sheet-rolltemplate-foskill .sheet-hidden-attribute[data-i18n-placeholder*=quickness] ~ .sheet-container .sheet-quickness, .sheet-rolltemplate-foskill .sheet-hidden-attribute[data-i18n-placeholder*=insight] ~ .sheet-container .sheet-insight, @@ -615,6 +617,8 @@ img { .sheet-rolltemplate-foskill .sheet-hidden-attribute[data-i18n-placeholder*=main] ~ .sheet-container .sheet-main, .sheet-rolltemplate-foskill .sheet-hidden-attribute[data-i18n-placeholder*=default] ~ .sheet-container .sheet-default, .sheet-rolltemplate-foweapon .sheet-hidden-skill[data-i18n-placeholder*=fight] ~ .sheet-container .sheet-fight, +.sheet-rolltemplate-foweapon .sheet-hidden-skill[data-i18n-placeholder*=mainskill] ~ .sheet-container .sheet-mainskill, +.sheet-rolltemplate-foweapon .sheet-hidden-skill[data-i18n-placeholder*=defaultskill] ~ .sheet-container .sheet-defaultskill, .sheet-rolltemplate-foskill .sheet-hidden-skill[data-i18n-placeholder*=fight] ~ .sheet-container .sheet-fight, .sheet-rolltemplate-foskill .sheet-hidden-skill[data-i18n-placeholder*=move] ~ .sheet-container .sheet-move, .sheet-rolltemplate-foskill .sheet-hidden-skill[data-i18n-placeholder*=operate] ~ .sheet-container .sheet-operate, @@ -716,3 +720,4 @@ img { border: solid 1px #1aa2e1; color: #1aa2e1; } + diff --git a/DreamsAndMachines/Dreams and Machines.html b/DreamsAndMachines/Dreams and Machines.html index bf0eb89a49..e3664557f2 100644 --- a/DreamsAndMachines/Dreams and Machines.html +++ b/DreamsAndMachines/Dreams and Machines.html @@ -333,15 +333,17 @@
@@ -370,7 +372,7 @@
@@ -382,8 +384,8 @@
-
@@ -404,8 +406,8 @@
-
@@ -592,6 +596,40 @@ buttonlist.forEach(button => { }); }); +on("change:repeating_weapons:weapontype", function() { + getAttrs(["repeating_weapons_weapontype","might","quickness"], function(values) { + var weapontype = values["repeating_weapons_weapontype"]||""; + var migt = values["might"]||""; + var quik = values["quickness"]||""; + var attributename = "unset"; + var attributevalue = quik; + if (weapontype == "ranged") { attributename= "quickness" ; attributevalue = quik}; + if (weapontype == "melee") { attributename= "might" ; attributevalue = migt}; + + setAttrs({ + "repeating_class_weaponattributename": attributename, + "repeating_class_weaponattributevalue": attributevalue, + }); + }); + }); +on("change:repeating_weapons:weapontype", function() { + getAttrs(["repeating_weapons_weapontype","might","quickness"], function(values) { + var weapontype = values["repeating_weapons_weapontype"]||""; + var migt = values["might"]||""; + var quik = values["quickness"]||""; + var attributename = "unset"; + var attributevalue = quik; + if (weapontype == "ranged") { attributename= "quickness" ; attributevalue = quik}; + if (weapontype == "melee") { attributename= "might" ; attributevalue = migt}; + + setAttrs({ + "repeating_class_weaponattributename": attributename, + "repeating_class_weaponattributevalue": attributevalue, + }); + }); + }); + + @@ -928,10 +966,14 @@ buttonlist.forEach(button => { {{#attribute}} + + ({{attr_num}}) {{/attribute}} {{#skill}} + + ({{skill_num}}{{#rollTotal() tag 1}} {{/rollTotal() tag 1}}) {{/skill}}