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SQQJQN26JIVKCHK6UK7WMDBYZDUYRWEAZ4JB4YVNAAC
SVY2PTCLXR3KNPQAWXVXTTGCC5DR334HOAKHYO3VDDRWM2BWMALAC
ODNAIEJW732NG7USKQKCIP4R4DAEYXXJQX6LY7TIN32NKE75454QC
5HPIIGNWB3UXJ5APQLAGFOV2CA7J2GB7AWAVVZDBB2YZS4TNCMAQC
BFYHDL4EHSPKKC6EPKDRPESHYAA2WFKC6RXQIRRTSSTF3Z2QPVCAC
V6REAY6RCAG2QQ4BO54GHYOVTNCYHTLERJCIZJPSANXFBINZOTXAC
JDM5R3HYGXKQKZWY35QZ2KOB24TFZ3FW2PCNXCRCMWG72AZC5ZXQC
RVST2QHYJ757ZHK4AUJ5NGPDZ44AD6RVFVXYPKQIBJXZBDNUCHXQC
XPCGZBHHSL6MB3ORMUJI64BAERU6AZTIY6RK56BBW7SNB3IK24IAC
EHSY6DVGUMI6C67WKET3GDJVLWJWGYBYQONNDK5JVT7BCTHBEZVAC
72CQFK27NR37P2WQ32U4PEXXKMRIO7JEMJN2ZCPNVPZMT7UPFJJAC
// The message pane takes all lines not used by the viewport.
msgp = coord_def(1, viewsz.y + 1);
msgsz = coord_def(termsz.x, termsz.y - viewsz.y);
// Determine if the monster list can have its own column.
int freewidth = termsz.x - (viewsz.x + mlist_gutter +
mlist_min_width + hud_min_gutter + hudsz.x);
mlist_inline = (freewidth < 0) || Options.mlist_force_inline;
if (mlist_inline)
freewidth = termsz.x - (hud_min_width + hud_min_gutter);
// The hud appears after the viewport + gutter.
hudp = coord_def(viewsz.x + 1 + hud_min_gutter, 1);
viewp.x = mlistp.x + mlistsz.x;
}
// The hud appears after the viewport + gutter and possibly the mlist.
hudp = coord_def(viewp.x + viewsz.x + hud_min_gutter, 1);
// Monster list takes up all space between the hud and the message pane
mlistp = coord_def(hudp.x, hudp.y + hudsz.y);
mlistsz = coord_def(termsz.x - mlistp.x, msgp.y - mlistp.y);
if (mlist_inline)
{
// Monster list takes up all space between the hud and the message pane
mlistp = coord_def(hudp.x, hudp.y + hudsz.y);
// Try to grow the length of the monster list based on the options,
// but only grow if there's room for the minimum message lines.
int len = 1 + viewsz.y - mlistp.y;
len = std::max(len, Options.mlist_min_height);
len = std::min(len, 1 + termsz.y - message_min_lines - (hudp.y + hudsz.y));
mlistsz = coord_def(termsz.x - mlistp.x - 1, len);
// The message pane takes all lines not used by the viewport and
// the mlist.
int msgstart = mlistp.y + mlistsz.y;
msgp = coord_def(1, msgstart);
msgsz = coord_def(termsz.x, termsz.y - msgstart - 1);
}
else
{
msgp = coord_def(1, viewsz.y + 1);
msgsz = coord_def(termsz.x, termsz.y - viewsz.y);
}
// i_mons is incremented by _print_next_monster_desc
// Can't clear to end of line, as the monster pane
// may be to the left of the hud or view pane.
for (int x = 1; x <= crawl_view.mlistsz.x; x++)
{
cgotoxy(x, start_row+i_print, GOTO_MLIST);
putch(' ');
}
species and classes in the order of version 0.3 and earlier.
Note that this needs to be set before the "race" or "class"
options (see below), or they won't be interpreted correctly.
species and classes in the order of version 0.3 and earlier.
Note that this needs to be set before the "race" or "class"
options (see below), or they won't be interpreted correctly.
hidden by items. If you use this brand, the items on the square
are hidden by the feature symbol and the feature symbol is
branded.
hidden by items. If you use this brand, the items on the square
are hidden by the feature symbol and the feature symbol is
branded.
values to decide whether the player should be prompted before
stepping on a mechanical trap. Note that you'll always be prompted
for non-mechanical traps.
values to decide whether the player should be prompted before
stepping on a mechanical trap. Note that you'll always be prompted
for non-mechanical traps.
all corpses and chunks that have become rotten along with the
rotting message, in the form of
"You smell something rotten. (slots f and m)"
all corpses and chunks that have become rotten along with the
rotting message, in the form of
"You smell something rotten. (slots f and m)"
for Trolls, as well.
for Trolls, as well.
mlist_min_height = 5
This option controls the minimum number of monsters to display
in the monster list. The number displayed may be smaller than
this option if the terminal size is not large enough.
mlist_force_inline = false
By default, if the terminal size is large enough, the monster
list will be placed to the left of the view. If this option is
set to true, the monster list will only appear between the
status hud and the message pane.