Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Dec 13, 2021
1 parent bac3dd0 commit eeb1c8e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
"enhancedcombathud.settings.switchEquip.hint" : "Automatically equip/unequip items when switching sets",
"enhancedcombathud.settings.showWeaponsItems.name" : "Show Weapons in 'Use Item' Section",
"enhancedcombathud.settings.showWeaponsItems.hint" : "Show weapons in the 'Use Item' section. Usefull if your weapon slots are not enough",
"enhancedcombathud.settings.noAA.name" : "Don't Apply Active Effects",
"enhancedcombathud.settings.noAA.hint" : "Don't apply active effects when using special actions. (requires refresh)",

"enhancedcombathud.tooltip.target.name" : "Target",
"enhancedcombathud.tooltip.range.name" : "Range",
Expand Down
9 changes: 9 additions & 0 deletions scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,15 @@ Hooks.once("init", function () {
default: false,
});

game.settings.register("enhancedcombathud", "noAA", {
name: game.i18n.localize("enhancedcombathud.settings.noAA.name"),
hint: game.i18n.localize("enhancedcombathud.settings.noAA.hint"),
scope: "world",
config: true,
type: Boolean,
default: false,
});

game.settings.register("enhancedcombathud", "openCombatStart", {
name: game.i18n.localize("enhancedcombathud.settings.openCombatStart.name"),
hint: game.i18n.localize("enhancedcombathud.settings.openCombatStart.hint"),
Expand Down
5 changes: 5 additions & 0 deletions scripts/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,4 +571,9 @@ Hooks.once("ready",()=>{
}
}
}
if(game.settings.get("enhancedcombathud", "noAA")){
for(let key of Object.keys(ECHItems)) {
delete ECHItems[key].effects
}
}
})

0 comments on commit eeb1c8e

Please sign in to comment.