fixed bugs about throwing, added anger msg for merchants

This commit is contained in:
2024-07-17 22:14:37 -04:00
parent 1db7e95649
commit 242c1fff65
3 changed files with 7 additions and 4 deletions

View File

@ -273,8 +273,8 @@ size_t level::what_is_at(const position &pos) const {
if (!map.is_available(pos))
return WHAT_WALL;
for (size_t i = 0; i < plist.size(); ++i)
if (plist[i]->get_pos() == pos)
for (size_t i = 0; i < elist.size(); ++i)
if (elist[i]->get_pos() == pos)
return WHAT_ENEMY | i;
return WHAT_SPACE;