-
Notifications
You must be signed in to change notification settings - Fork 0
/
.nethackrc
158 lines (132 loc) · 5.39 KB
/
.nethackrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# --- Character selection ---
OPTIONS=name:Traveller
OPTIONS=align:lawful,role:valkyrie,race:human
OPTIONS=pettype:cat
#OPTIONS=fruitname:Sandvich
# --- Major UI options ---
OPTIONS=number_pad:1
OPTIONS=windowtype:curses
OPTIONS=msg_window:full,vary_msgcount:5,msghistory:60
OPTIONS=perm_invent
#OPTIONS=tile_height:32
#OPTIONS=extmenu
# --- Minor UI options ---
OPTIONS=popup_dialog,mouse_support,clicklook,herecmd_menu
OPTIONS=hitpointbar,hilite_pet,hilite_pile,lit_corridor
OPTIONS=time,showexp
# --- Gameplay options ---
OPTIONS=altmeta,rest_on_space
OPTIONS=autopickup,pickup_types:?!/"=$%+*,pickup_burden:B,pickup_thrown
OPTIONS=runmode:crawl,safe_pet,autodescribe
#OPTIONS=sortloot:full,sortpack
# --- Autopickup configuration ---
# Individually-name the real Amulet right away and you'll never fall for a fake
AUTOPICKUP_EXCEPTION=">Amulet of Yendor"
AUTOPICKUP_EXCEPTION="<Amulet of Yendor named"
# Avoid turning your scrolls of scare monster to dust
AUTOPICKUP_EXCEPTION=">scroll .* scare monster"
# Pick up formally identified artifacts
AUTOPICKUP_EXCEPTION="<(^| )the "
# Don't pick up corpses...
AUTOPICKUP_EXCEPTION="> corpse"
# ...except those
AUTOPICKUP_EXCEPTION="<lichen corpse"
AUTOPICKUP_EXCEPTION="<lizard corpse"
AUTOPICKUP_EXCEPTION="<newt corpse"
AUTOPICKUP_EXCEPTION="<floating eye corpse"
AUTOPICKUP_EXCEPTION="<wraith corpse"
# Don't pick up chunks of meat (heavy)...
AUTOPICKUP_EXCEPTION=">huge chunk of meat"
# ...and globs (useless and typically harmful)
AUTOPICKUP_EXCEPTION=">small glob"
# Things too good to miss
AUTOPICKUP_EXCEPTION="<magic marker"
AUTOPICKUP_EXCEPTION="<lamp"
AUTOPICKUP_EXCEPTION="<athame"
# ...except those
AUTOPICKUP_EXCEPTION=">wand .* \([0-9]+:0\)"
AUTOPICKUP_EXCEPTION=">oil lamp"
AUTOPICKUP_EXCEPTION=">lamp .* oil"
# Gems
AUTOPICKUP_EXCEPTION="<stone .* luck"
AUTOPICKUP_EXCEPTION="<luckstone"
AUTOPICKUP_EXCEPTION="<touchstone"
# ...except those
AUTOPICKUP_EXCEPTION=">rock"
AUTOPICKUP_EXCEPTION=">loadstone"
AUTOPICKUP_EXCEPTION=">gray stone"
AUTOPICKUP_EXCEPTION=">worthless piece"
# --- Look&feel options ---
OPTIONS=color,guicolor,menucolors
OPTIONS=standout,use_inverse,use_darkgray
#OPTIONS=boulder:0
# --- hilite_status @ Solarized ---
# Highlight changes for a few turns
OPTIONS=statushilites:10
# Gold
OPTIONS=hilite_status:gold/always/brown
# Alignment
OPTIONS=hilite_status:alignment/lawful/lightcyan&bold
# XL (highlight changed)
OPTIONS=hilite_status:experience-level/changed/white&inverse
#OPTIONS=hilite_status:experience-level/changed/white&inverse/always/cyan
# AC (highlight changed)
OPTIONS=hilite_status:armor-class/changed/white&inverse
# Ability scores (highlight changed, define bands with absolute values)
OPTIONS=hilite_status:characteristics/<5/red
OPTIONS=hilite_status:characteristics/>6/orange
OPTIONS=hilite_status:characteristics/>8/brown
#OPTIONS=hilite_status:characteristics/>11/yellow
OPTIONS=hilite_status:characteristics/>13/green
OPTIONS=hilite_status:characteristics/>16/cyan
OPTIONS=hilite_status:characteristics/changed/white&inverse
# Encumbrance
OPTIONS=hilite_status:carrying-capacity/burdened/brown&bold
OPTIONS=hilite_status:carrying-capacity/stressed/orange&bold
OPTIONS=hilite_status:carrying-capacity/strained/red&bold
OPTIONS=hilite_status:carrying-capacity/overtaxed/orange&bold&inverse
OPTIONS=hilite_status:carrying-capacity/overloaded/red&bold&inverse
# Hunger
OPTIONS=hilite_status:hunger/satiated/brown&bold
OPTIONS=hilite_status:hunger/hungry/brown&bold
OPTIONS=hilite_status:hunger/weak/red&bold
OPTIONS=hilite_status:hunger/fainting/red&bold&inverse
# Hitpoints (highlight changed max, define bands with percentages)
OPTIONS=hilite_status:hitpoints/100%/lightblue&bold
OPTIONS=hilite_status:hitpoints/<100%/green&bold
OPTIONS=hilite_status:hitpoints/<60%/brown&bold
OPTIONS=hilite_status:hitpoints/<40%/red&bold
OPTIONS=hilite_status:hitpoints/<20%/red&bold&inverse
OPTIONS=hilite_status:hitpoints-max/changed/white&inverse
# Power (highlight changed max, define bands with percentages and absolute values)
# FIXME: combining <N% (percentage triggers) with <N (absolute triggers) does not work,
# so use <N and >N% with the last remaining band as the "default"
OPTIONS=hilite_status:power/100%/lightblue&bold
OPTIONS=hilite_status:power/>60%/green&bold # <100%
OPTIONS=hilite_status:power/brown&bold # <60%
OPTIONS=hilite_status:power/<15/red&bold
OPTIONS=hilite_status:power/<5/red&bold&inverse
OPTIONS=hilite_status:power-max/changed/white&inverse
# Highlight conditions and troubles
OPTIONS=hilite_status:condition/all/lightblue&bold&inverse
OPTIONS=hilite_status:condition/minor_troubles/brown&bold&inverse
OPTIONS=hilite_status:condition/major_troubles/red&bold&inverse
#OPTIONS=hilite_status:condition/slime/green&bold&inverse
# --- menucolors @ Solarized ---
OPTIONS=!implicit_uncursed
# unknown beatitude
# POSIX BRE/ERE do not support negative lookahead/lookbehind -- sunrise by hand
MENUCOLOR="^(a|an|[0-9]+) (empty )?([^buc]|b[^l]|bl[^e]|u[^n]|un[^c]|c[^u]|cu[^r])"=lightgreen
# beatitude
MENUCOLOR=" blessed|holy "=green
MENUCOLOR=" cursed|unholy "=red
#MENUCOLOR=" uncursed "=lightcyan&bold
# cursed & worn
# FIXME: MENUCOLOR= does not support multiple attributes (red&bold&inverse)
MENUCOLOR=" cursed .* \(being worn\)"=red&inverse
# special objects
MENUCOLOR="wand (of|called) cancellation|bag of (holding|tricks)"=lightblue&inverse
MENUCOLOR="Amulet of Yendor named"=magenta
MENUCOLOR="gold piece"=brown
# forgotten spells
MENUCOLOR=" \(gone\)"=lightgreen