Extract colors to variables in menucolors

This commit is contained in:
2025-10-07 16:52:31 -05:00
parent 09ee6feaed
commit 5d2e7ff73b
4 changed files with 82 additions and 61 deletions
+3
View File
@@ -0,0 +1,3 @@
OPTIONS=autopickup,pickup_types:$
autopickup_exception=">.*iron chain.*"
autopickup_exception=">.*heavy iron ball.*"
+1 -1
View File
@@ -3,7 +3,7 @@
just --list just --list
[group("show")] [group("show")]
@show_37 *FLAGS: @show_v37 *FLAGS:
uv run upload.py hdf-37.rc {{FLAGS}} uv run upload.py hdf-37.rc {{FLAGS}}
[group("show")] [group("show")]
+2 -4
View File
@@ -24,11 +24,9 @@ AUTOCOMPLETE=twoweapon
OPTIONS=dogname:Athena OPTIONS=dogname:Athena
OPTIONS=catname:Moldorm OPTIONS=catname:Moldorm
OPTIONS=horsename:Horse OPTIONS=horsename:Horse
OPTIONS=fruitname:word OPTIONS=fruit:word
OPTIONS=autopickup,pickup_types:$ {% include "autopickup.rc" %}
autopickup_exception=">.*iron chain.*"
autopickup_exception=">.*heavy iron ball.*"
OPTIONS=scores:10 top/2 around/own OPTIONS=scores:10 top/2 around/own
+76 -56
View File
@@ -1,82 +1,102 @@
OPTIONS=menucolors,menu_objsyms OPTIONS=menucolors,menu_objsyms
### Item Status (BUC/worn) ### Item Status (BUC/worn)
MENUCOLOR=""=white {% set unknown_buc = "white" %}
MENUCOLOR="gold pieces?"=yellow {% set cursed = "red" %}
{% set uncursed = "gray" %}
{% set blessed = "green" %}
{% set danger_item = "red" %}
{% set valuable_item = "yellow" %}
{% set bag_kaboom = "cyan" %}
MENUCOLOR="[Bb]lessed"=green MENUCOLOR=""={{ unknown_buc }}
MENUCOLOR="[Hh]oly"=green MENUCOLOR="gold pieces?"={{ valuable_item }}
MENUCOLOR="[Cc]ursed"=red MENUCOLOR="[Bb]lessed"={{ blessed }}
MENUCOLOR="[Uu]nholy"=red MENUCOLOR="[Hh]oly"={{ blessed }}
MENUCOLOR="[Uu]ncursed"=gray MENUCOLOR="[Cc]ursed"={{ cursed }}
MENUCOLOR="[Uu]nholy"={{ cursed }}
MENUCOLOR=".*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"=white&inverse MENUCOLOR="[Uu]ncursed"={{ uncursed }}
MENUCOLOR="[Cc]ursed.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"=red&inverse
MENUCOLOR="[Uu]ncursed.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"=gray&inverse MENUCOLOR=".*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"={{ unknown_buc }}&inverse
MENUCOLOR="[Bb]lessed.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"=green&inverse MENUCOLOR="[Cc]ursed.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"={{ cursed }}&inverse
MENUCOLOR="[Uu]ncursed.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"={{ uncursed }}&inverse
MENUCOLOR="[Bb]lessed.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"={{ blessed }}&inverse
### Items ### Items
## Gray Stones ## Gray Stones
MENUCOLOR="luckstone|called luck"=bright blue MENUCOLOR="luckstone|called luck"=bright blue
MENUCOLOR="touchstone|called touch"=bright blue MENUCOLOR="touchstone|called touch"=bright blue
MENUCOLOR=" [Cc]ursed luckstone|[Cc]usred.*called luck"=red MENUCOLOR=" [Cc]ursed luckstone| [Cc]ursed.*called luck"=red
MENUCOLOR="loadstone|called load"=red MENUCOLOR="loadstone|called load"={{ danger_item }}
MENUCOLOR="gray stone"=red MENUCOLOR="gray stone"={{ danger_item }}
MENUCOLOR="doppelganger corpse"=red MENUCOLOR="chameleon corpse"={{ danger_item }}
MENUCOLOR="were.* corpse"=red MENUCOLOR="doppelganger corpse"={{ danger_item }}
MENUCOLOR="were.* corpse"={{ danger_item }}
## Gemstones ## Gemstones
MENUCOLOR="dilithium crystal"=yellow MENUCOLOR="dilithium crystal"={{ valuable_item }}
MENUCOLOR="diamond"=yellow MENUCOLOR="diamonds?$"={{ valuable_item }}
MENUCOLOR="rub(y|ies)"=yellow MENUCOLOR="rub(y|ies)$"={{ valuable_item }}
MENUCOLOR="jacinth stone"=yellow MENUCOLOR="jacinth stone"={{ valuable_item }}
MENUCOLOR="sapphire"=yellow MENUCOLOR="sapphires?$"={{ valuable_item }}
MENUCOLOR="black opal"=yellow MENUCOLOR="black opal"={{ valuable_item }}
MENUCOLOR="emerald"=yellow MENUCOLOR="emeralds?$"={{ valuable_item }}
MENUCOLOR="turquoise stone"=yellow MENUCOLOR="turquoise stone"={{ valuable_item }}
MENUCOLOR="citrine"=yellow MENUCOLOR="citrine"={{ valuable_item }}
MENUCOLOR="aquamarine"=yellow MENUCOLOR="aquamarine"={{ valuable_item }}
MENUCOLOR="amber stone"=yellow MENUCOLOR="amber stone"={{ valuable_item }}
MENUCOLOR="topaz stone"=yellow MENUCOLOR="topaz stone"={{ valuable_item }}
MENUCOLOR="jet stone"=yellow MENUCOLOR="jet stone"={{ valuable_item }}
MENUCOLOR="opals"=yellow MENUCOLOR="opals?$"={{ valuable_item }}
MENUCOLOR="chrysoberyl"=yellow MENUCOLOR="chrysoberyl"={{ valuable_item }}
MENUCOLOR="garnet stone"=yellow MENUCOLOR="garnet stone"={{ valuable_item }}
MENUCOLOR="amethyst"=yellow MENUCOLOR="amethyst"={{ valuable_item }}
MENUCOLOR="jasper stone"=yellow MENUCOLOR="jasper stone"={{ valuable_item }}
MENUCOLOR="fluorite"=yellow MENUCOLOR="fluorite"={{ valuable_item }}
MENUCOLOR="jade stone"=yellow MENUCOLOR="jade stone"={{ valuable_item }}
MENUCOLOR="obsidian"=yellow MENUCOLOR="obsidian stone"={{ valuable_item }}
MENUCOLOR="agate stone"=yellow MENUCOLOR="agate stone"={{ valuable_item }}
MENUCOLOR="Amulet of Yendor named"=blue MENUCOLOR="Amulet of Yendor named"={{ valuable_item }}
MENUCOLOR="Amulet of Yendor named.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"=blue&inverse MENUCOLOR="Amulet of Yendor named.*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"={{ valuable_item }}&inverse
MENUCOLOR="wand (of|called) cancellation"=cyan MENUCOLOR="wand (of|called) cancellation"={{ bag_kaboom }}
MENUCOLOR="bag (of|called) tricks"=cyan MENUCOLOR="bag (of|called) tricks"={{ bag_kaboom }}
MENUCOLOR="bag (of|called) holding"={{ bag_kaboom }}
## Branches ## Branches
MENUCOLOR="The Dungeons of Doom:"=bright blue&reverse {% set branch_header = "white&inverse" %}
MENUCOLOR="The Gnomish Mines:"=bright blue&reverse {% set branch_transition = "yellow" %}
MENUCOLOR="Sokoban:"=bright blue&reverse
MENUCOLOR="The Quest:"=bright blue&reverse MENUCOLOR="The Tutorial:"={{ branch_header }}
MENUCOLOR="Fort Ludios:"=bright blue&reverse MENUCOLOR="The Dungeons of Doom:"={{ branch_header }}
MENUCOLOR="Gehennom:"=bright blue&reverse MENUCOLOR="The Gnomish Mines:"={{ branch_header }}
MENUCOLOR="Vlad.s Tower:"=bright blue&reverse MENUCOLOR="Stairs down to The Gnomish Mines"={{ branch_transition }}
MENUCOLOR="The Elemental Planes:"=bright blue&reverse MENUCOLOR="Sokoban:"={{ branch_header }}
MENUCOLOR="The Tutorial:"=bright blue&reverse MENUCOLOR="Stairs up to Sokoban"={{ branch_transition }}
MENUCOLOR="Portal to The Quest"=bright blue&underline MENUCOLOR="The Quest:"={{ branch_header }}
MENUCOLOR="Portal to Fort Ludios"=bright blue&underline MENUCOLOR="Portal to The Quest"={{ branch_transition }}
MENUCOLOR="Fort Ludios:"={{ branch_header }}
MENUCOLOR="Portal to Fort Ludios"={{ branch_transition }}
MENUCOLOR="Gehennom:"={{ branch_header }}
MENUCOLOR="Vlad.s Tower:"={{ branch_header }}
MENUCOLOR="Stairs up to Vlad.s Tower"={{ branch_transition }}
MENUCOLOR="The Elemental Planes:"={{ branch_header }}
## |TNNT| ## |TNNT|
MENUCOLOR="DevTeam Office:"=bright blue&reverse MENUCOLOR="robotfindskitten:"={{ branch_header }}
MENUCOLOR="Deathmatch Arena:"=bright blue&reverse MENUCOLOR="Portal to robotfindskitten"={{ branch_transition }}
MENUCOLOR="robotfindskitten:"=bright blue&reverse MENUCOLOR="DevTeam Office:"={{ branch_header }}
MENUCOLOR="Stairs up to DevTeam Office"={{ branch_transition }}
MENUCOLOR="Deathmatch Arena:"={{ branch_header }}
MENUCOLOR="Portal to Deathmatch Arena"={{ branch_transition }}
## Spells ## Spells
MENUCOLOR=" 0%.*%"=green
MENUCOLOR="100%.*%"=red MENUCOLOR="100%.*%"=red
MENUCOLOR="%.*\(gone\)"=orange MENUCOLOR="%.*\(gone\)"=orange