2 if (!Char
->CanRead() && !game::GetSeeWholeMapCheatMode()) {
3 ADD_MESSAGE("You can't read.");
6 if (!Char
->GetStack()->SortedItems(Char
, &item::IsReadable
)) {
7 ADD_MESSAGE("You have nothing to read!");
10 if (Char
->GetLSquareUnder()->IsDark() && !game::GetSeeWholeMapCheatMode()) {
11 ADD_MESSAGE("It is too dark to read.");
14 item
*Item
= Char
->GetStack()->DrawContents(Char
, CONST_S("What do you want to read?"), 0, &item::IsReadable
);
16 if (ivanconfig::GetConfirmScrollReading() && Item
->IsScroll()) {
17 if (!game::TruthQuestion(festring("Do you really want to read ")+Item
->CHAR_NAME(DEFINITE
)+"? [y/n]")) return false;
19 return Char
->ReadItem(Item
);