| 106 | } |
| 107 | |
| 108 | static int GetLizardItemNumber(const ItemInfo& item) |
| 109 | { |
| 110 | if (!item.TestFlags((int)BossItemFlags::Object, (short)BossFlagValue::Lizard)) |
| 111 | return NO_VALUE; |
| 112 | |
| 113 | auto lizardList = GetLizardEntityList(item); |
| 114 | if (lizardList.empty()) |
| 115 | return NO_VALUE; |
| 116 | |
| 117 | if (lizardList.size() == 1) |
| 118 | return lizardList[0]; |
| 119 | else |
| 120 | return lizardList[Random::GenerateInt(0, (int)lizardList.size() - 1)]; |
| 121 | } |
| 122 | |
| 123 | static bool IsLizardActiveNearby(const ItemInfo& item, bool isInitializing = false) |
| 124 | { |
no test coverage detected