Boss Identifier Replacer

Replace two-letter identifiers with unique single characters in the boss map and panel without altering data-title attributes. Mark blocks with specified styles based on boss names.

作者
Lucky11
今日安裝
0
安裝總數
2
評價
0 0 0
版本
1.2
建立日期
2025-08-06
更新日期
2025-08-06
尺寸
8.4 KB
授權條款
MIT
腳本執行於

Boss Identifier Replacer Script

Boss Identifier Replacer Script

The Boss Identifier Replacer UserScript enhances the Dead Frontier Profiler (DFP) by replacing two-letter identifiers in the boss map and panel with unique single characters. This improvement boosts readability and allows for better visual distinction between different bosses. Additionally, the script supports custom border styling for specific bosses, enabling users to visually mark blocks based on boss names.

Key Features

  • Identifier Replacement: Two-letter identifiers are replaced with unique single characters, making it easier to identify bosses at a glance.
  • Custom Boss Styling: Users can define styles for specific bosses, such as borders and colors, to visually differentiate them on the map.
  • Flexible Styling Options: A new variable, useFullTitleForStyling, allows users to choose whether to use the full boss block name (including counts) or just the boss name for styling.

How to Use

  1. Enable or Disable Features: Modify the following settings in the script:
    const enableIdentifierReplacement = true; // Set to false to disable identifier replacement
    const enableBossStyling = true; // Set to false to disable custom boss block styling
    const useFullTitleForStyling = false; // Set to true to use the full boss block name (e.g., "4 x Bandits")
                
  2. Custom Boss Styles: Edit the bossStyles object to define styles for specific bosses. For example when useFullTitleForStyling is set to false:
    const useFullTitleForStyling = false;
    const bossStyles = {
        "Bandits": "1px dashed red",
        "Six-Armed Bandit": "1px dashed yellow",
        "Wraith": "2px dashed #F54927",
        "Scarab Knight": "3px dotted #194857",//hex color used instead of color name #194857
        "Weak Eldritch Horror": "1px solid blue",// solid, dotted, dashed is just border line style.
    };
                
  3. Custom Boss Styles: Edit the bossStyles object to define styles for specific bosses. For example when useFullTitleForStyling is set to true:
    const useFullTitleForStyling = true;
    const bossStyles = {
        "2 x Bandits": "1px dashed orange",
        "4 x Bandits": "1px dashed red",
        "4 x Six-Armed Bandit": "1px dashed yellow",
        "Wraith": "2px dashed #F54927",
        "Scarab Knight": "3px dotted #194857",//hex color used instead of color name #194857
        "3 x Weak Eldritch Horror": "1px solid blue",// solid, dotted, dashed is just border line style.
    };
                
  4. Understanding useFullTitleForStyling:
    • When useFullTitleForStyling is set to true, the script will use the exact boss block name as it appears on the BossMap (e.g., "4 x Bandits"). This means that styles will be applied based on the full title, including the count.
    • If set to false, the script will only consider the boss name (e.g., "Bandits"), ignoring the count. This allows for broader styling applications, as multiple counts of the same boss will share the same style. By setting Boss Name as "Flaming" You will be able to apply the style to every block which has Flaming boss in it "Flaming Spider" "Flaming Titan" ect.

Important Note

In cases where a boss block contains multiple bosses (e.g., both "Bandits" and "Flaming Titan"), only one style will be applied to the border.

Example of Boss Block Names

Refer to the image below to see how the boss block names appear based on the useFullTitleForStyling setting:


Boss Block Name Example