| 74 | } |
| 75 | |
| 76 | static std::vector<int> GetLizardEntityList(const ItemInfo& item) |
| 77 | { |
| 78 | auto entityList = std::vector<int>{}; |
| 79 | |
| 80 | for (auto& currentEntity : g_Level.Items) |
| 81 | { |
| 82 | if (currentEntity.ObjectNumber == ID_LIZARD && |
| 83 | currentEntity.RoomNumber == item.RoomNumber && |
| 84 | currentEntity.HitPoints > 0 && |
| 85 | currentEntity.Status == ITEM_INVISIBLE && |
| 86 | !(currentEntity.Flags & IFLAG_KILLED)) |
| 87 | { |
| 88 | entityList.push_back(currentEntity.Index); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | return entityList; |
| 93 | } |
| 94 | |
| 95 | static Vector3 GetLizardTargetPosition(ItemInfo& item) |
| 96 | { |
no test coverage detected