Use blocks and template extension

This commit is contained in:
2025-10-08 14:18:35 -05:00
parent d0275e5c57
commit bed8505b09
8 changed files with 44 additions and 49 deletions

View File

@@ -1,3 +1,4 @@
OPTIONS=autopickup,pickup_types:$ OPTIONS=autopickup,pickup_types:$
OPTIONS=pickup_burden=B
autopickup_exception=">.*iron chain.*" autopickup_exception=">.*iron chain.*"
autopickup_exception=">.*heavy iron ball.*" autopickup_exception=">.*heavy iron ball.*"

View File

@@ -1,14 +1,18 @@
{% include "main.rc" %} {% extends "main.rc" %}
{% include "unicode_symbols.rc" %} {% block symbols %}
{% include "unicode_symbols.rc" +%}
{% include "color_glyphs.rc" %} {% include "color_glyphs.rc" %}
{% endblock symbols %}
{% block options %}
OPTIONS=!tutorial,!safe_wait,!tips OPTIONS=!tutorial,!safe_wait,!tips
OPTIONS=showdamage OPTIONS=showdamage
OPTIONS=cond_held,cond_ice,cond_lava,cond_woundedlegs OPTIONS=cond_held,cond_ice,cond_lava,cond_woundedlegs
OPTIONS=paranoid_confirmation:pray Remove trap swim OPTIONS=paranoid_confirmation:pray Remove trap swim
{% endblock options %}
{% block bindings %}
BIND=O:optionsfull BIND=O:optionsfull
{% endblock bindings %}
{% include "pergame.rc" %}

View File

@@ -1,9 +1,11 @@
{% include "main.rc" %} {% extends "main.rc" %}
{% block symbols %}
{% include "basic_symbols.rc" %} {% include "basic_symbols.rc" %}
{% endblock symbols %}
{% block options %}
OPTIONS=cond_held,cond_ice,cond_lava,cond_woundedlegs OPTIONS=cond_held,cond_ice,cond_lava,cond_woundedlegs
OPTIONS=paranoid_confirmation:pray trap A Remove OPTIONS=paranoid_confirmation:pray trap A Remove
OPTIONS=realtime:p,realtime_format:f OPTIONS=realtime:p,realtime_format:f
{% endblock options %}
{% include "pergame.rc" %}

53
main.rc
View File

@@ -1,55 +1,52 @@
# junethack karafruit # junethack karafruit
OPTIONS=symset:Enhanced1,roguesymset:plain {% include "menucolor.rc" +%}
OPTIONS=!force_invmenu {% include "statusbar.rc" +%}
OPTIONS=suppress_alert:3.3.1
OPTIONS=map_mode:tiles,scroll_margin:10
OPTIONS=font_message:Consolas,font_size_message:14,align_message:top {% include "msgtypes.rc" +%}
OPTIONS=font_menu:Consolas,font_size_menu:14
OPTIONS=font_text:Courier New,font_size_text:14
OPTIONS=font_status:Courier New,font_size_status:14
OPTIONS=hilite_pet,hilite_pile,!toptenwin
#OPTIONS=!splash_screen,player_selection:prompts
AUTOCOMPLETE=twoweapon
{% include "menucolor.rc" %}
{% include "statusbar.rc" %}
{% include "msgtypes.rc" %}
{% block names %}
OPTIONS=dogname:Athena OPTIONS=dogname:Athena
OPTIONS=catname:Moldorm OPTIONS=catname:Moldorm
OPTIONS=horsename:Horse OPTIONS=horsename:Horse
OPTIONS=fruit:word OPTIONS=fruit:word
{% endblock names %}
{% include "autopickup.rc" %} {% include "autopickup.rc" +%}
OPTIONS=scores:10 top/2 around/own
OPTIONS=!force_invmenu
OPTIONS=suppress_alert:3.3.1
OPTIONS=map_mode:tiles,scroll_margin:10
OPTIONS=hilite_pet,hilite_pile,!toptenwin
OPTIONS=time,showexp,number_pad:2,lit_corridor OPTIONS=time,showexp,number_pad:2,lit_corridor
OPTIONS=msg_window:reversed,sortloot:full OPTIONS=msg_window:reversed,sortloot:full
OPTIONS=autoquiver OPTIONS=autoquiver
# OPTIONS=invweight,showdmg,showweight # OPTIONS=invweight,showdmg,showweight
OPTIONS=!cmdassist OPTIONS=!cmdassist
OPTIONS=boulder:0,travel OPTIONS=travel
OPTIONS=disclose:yi ya nv ng yc no OPTIONS=disclose:yi ya nv ng yc no
OPTIONS=altmeta OPTIONS=altmeta
OPTIONS=!autodig OPTIONS=!autodig
OPTIONS=statuslines:3
OPTIONS=pickup_burden=B
OPTIONS=paranoid_confirmation:p t A s
# OPTIONS=realtime:p,realtime_format:f
OPTIONS=runmode:teleport OPTIONS=runmode:teleport
OPTIONS=quick_farsight OPTIONS=quick_farsight
OPTIONS=whatis_coord:c OPTIONS=whatis_coord:c
OPTIONS=!implicit_uncursed OPTIONS=!implicit_uncursed
{% block options %}
{% endblock options %}
AUTOCOMPLETE=twoweapon
BIND=M-m:terrain BIND=M-m:terrain
BIND=C:conduct BIND=C:conduct
BIND=!:annotate BIND=!:annotate
BIND=%:ride
{% block bindings %}
{% endblock bindings %}
OPTIONS=symset:Enhanced1,roguesymset:plain
OPTIONS=boulder:0
{% block symbols %}
{% endblock symbols +%}
{% include "pergame.rc" %}

View File

@@ -1,6 +1,5 @@
OPTIONS=menucolors,menu_objsyms OPTIONS=menucolors,menu_objsyms
### Item Status (BUC/worn)
{% set unknown_buc = "white" %} {% set unknown_buc = "white" %}
{% set cursed = "red" %} {% set cursed = "red" %}
{% set uncursed = "gray" %} {% set uncursed = "gray" %}
@@ -8,16 +7,14 @@ OPTIONS=menucolors,menu_objsyms
{% set danger_item = "red" %} {% set danger_item = "red" %}
{% set valuable_item = "yellow" %} {% set valuable_item = "yellow" %}
{% set bag_kaboom = "cyan" %} {% set bag_kaboom = "cyan" %}
### Item Status (BUC/worn)
MENUCOLOR=""={{ unknown_buc }} MENUCOLOR=""={{ unknown_buc }}
MENUCOLOR="gold pieces?"={{ valuable_item }} MENUCOLOR="gold pieces?"={{ valuable_item }}
MENUCOLOR="[Bb]lessed"={{ blessed }} MENUCOLOR="[Bb]lessed"={{ blessed }}
MENUCOLOR="[Hh]oly"={{ blessed }} MENUCOLOR="[Hh]oly"={{ blessed }}
MENUCOLOR="[Cc]ursed"={{ cursed }} MENUCOLOR="[Cc]ursed"={{ cursed }}
MENUCOLOR="[Uu]nholy"={{ cursed }} MENUCOLOR="[Uu]nholy"={{ cursed }}
MENUCOLOR="[Uu]ncursed"={{ uncursed }} MENUCOLOR="[Uu]ncursed"={{ uncursed }}
MENUCOLOR=".*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"={{ unknown_buc }}&inverse MENUCOLOR=".*(being worn|\(wielded|weapon in|lit\)|\(on (left|right)|at the ready|in quiver)"={{ unknown_buc }}&inverse
@@ -68,14 +65,13 @@ MENUCOLOR="wand (of|called) cancellation"={{ bag_kaboom }}
MENUCOLOR="bag (of|called) tricks"={{ bag_kaboom }} MENUCOLOR="bag (of|called) tricks"={{ bag_kaboom }}
MENUCOLOR="bag (of|called) holding"={{ bag_kaboom }} MENUCOLOR="bag (of|called) holding"={{ bag_kaboom }}
## Overview ### Overview
MENUCOLOR="^\s*Level.*rust trap"=bright blue MENUCOLOR="^\s*Level.*rust trap"=bright blue
MENUCOLOR="^\s*Level.*You are here"=green MENUCOLOR="^\s*Level.*You are here"=green
## Branches
{% set branch_header = "white&inverse" %} {% set branch_header = "white&inverse" %}
{% set branch_transition = "yellow" %} {% set branch_transition = "yellow" %}
## Branches
MENUCOLOR="The Tutorial:"={{ branch_header }} MENUCOLOR="The Tutorial:"={{ branch_header }}
MENUCOLOR="The Dungeons of Doom:"={{ branch_header }} MENUCOLOR="The Dungeons of Doom:"={{ branch_header }}
MENUCOLOR="The Gnomish Mines:"={{ branch_header }} MENUCOLOR="The Gnomish Mines:"={{ branch_header }}

View File

@@ -1,5 +1,4 @@
MSGTYPE=hide "Unknown command '.*'." MSGTYPE=hide "Unknown command '.*'."
MSGTYPE=hide "You swap places with .*" MSGTYPE=hide "You swap places with .*"
MSGTYPE=hide "attack passes harmlessly through the shade" MSGTYPE=hide "attack passes harmlessly through the shade"
@@ -80,12 +79,9 @@ MSGTYPE=stop "Amulet of Yendor named"
MSGTYPE=stop "You don't have anything to eat." MSGTYPE=stop "You don't have anything to eat."
MSGTYPE=stop "You cannot eat that" MSGTYPE=stop "You cannot eat that"
MSGTYPE=stop "You don't have that object" MSGTYPE=stop "You don't have that object"
MSGTYPE=stop "won't move|still eating" MSGTYPE=stop "won't move|still eating"
MSGTYPE=stop "Closed for inventory" MSGTYPE=stop "Closed for inventory"
MSGTYPE=stop "You wrest .*" MSGTYPE=stop "You wrest .*"
MSGTYPE=stop "You feel a strange vibration" MSGTYPE=stop "You feel a strange vibration"
## Gremlin stealing your intrinsic at night ## Gremlin stealing your intrinsic at night

View File

@@ -1,5 +1,4 @@
OPTIONS=windowcolors:status white/#000000 message white/#000000 text white/#000000 menu white/#000000 OPTIONS=statuslines:3
OPTIONS=vary_msgcount:4
# Status hilites # Status hilites
OPTIONS=statushilites OPTIONS=statushilites

View File

@@ -1,4 +1,4 @@
SYMBOLS=S_magic_portal:U+058D SYMBOLS=S_magic_portal:U+20AA
SYMBOLS=S_rust_trap:U+2020 SYMBOLS=S_rust_trap:U+2020
SYMBOLS=S_ghost:U+0262 SYMBOLS=S_ghost:U+0262
SYMBOLS=S_throne:U+1D8B SYMBOLS=S_throne:U+1D8B