-
Notifications
You must be signed in to change notification settings - Fork 9
/
toft-config
62 lines (59 loc) · 1.7 KB
/
toft-config
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
# main config {{{
#LOLOLOLOL
nick "Crassworm";
$vikeys = 1;
$write_keys = 1;
$no_evalcontext = 1;
# }}}
# plugins {{{
exclude "apply-oil", "dual-slow-digestion", "elbereth";
$chromatic_gods = 0;
$chromatic_nemeses = 1;
$write_interhack_ttyrec = 1;
# wish-menu {{{
$wish_enchantment = 3;
$bfg = "blessed greased fixed";
# }}}
include "*";
$statusline = sub { my $timepos = 80 - length($botl{time}); "$botl{score} \e[23;${timepos}H$colormap{darkgray}$botl{time}\e[0m" };
$fortune = "yasd ideas nethackidiocy";
# }}}
# remappings {{{
our $elbereths = 0;
remap "\ce" => sub { $elbereths++; "E- Elbereth\n" };
remap "\cw" => "aany\e"; # drawbridge
remap "\cv" => sub { $elbereths += 3; ("E- Elbereth\n"x3)."> " };
# }}}
# autoadjusts {{{
sub autoadjust;
autoadjust $aa_key => "k";
autoadjust $aa_unihorn => "S";
autoadjust $aa_athame => "E";
autoadjust $aa_stethoscope => "s";
autoadjust $aa_pickaxe => "x";
autoadjust $aa_bag => "b";
autoadjust $aa_Amulet => "d";
autoadjust $aa_blindfold => "H";
autoadjust $aa_lizard => "L";
autoadjust $aa_conflict => "C";
autoadjust $aa_whistle => "w";
autoadjust $aa_lamp => "l";
autoadjust $aa_luckstone => "Z";
autoadjust $aa_instrument => "n";
autoadjust $aa_trice => "^ye";
# }}}
# botl {{{
#$statusline = sub { my $timepos = 80 - length($botl{time}); "$botl{score} \e[23;${timepos}H$colormap{darkgray}$botl{time}\e[0m" };
$statusline = sub
{
my $time_length = length($botl{time});
my $cur_length;
sprintf "S:%d E:%d K:%d \e[23;%dH$colormap{darkgray}%s\e[0m",
$score,
$elbereths,
$keystrokes,
80 - $time_length,
$botl{time},
};
# }}}
# vim:ft=perl:fdm=marker: