Don't tint a secret door when opening it if setting is disabled

This commit is contained in:
2020-12-07 23:28:31 +01:00
parent 408eee8bc0
commit 2f12e06e3b

View File

@@ -50,6 +50,8 @@ Hooks.on("canvasReady", () => {
// If door type has been changed, tint the door accordingly
Hooks.on("updateWall", (scene, wall, update) => {
if (!game.settings.get(settingsKey, "highlightSecretDoors"))
return
const types = CONST.WALL_DOOR_TYPES
if (wall.door === types.NONE)
return