This commit is contained in:
aozhiwei 2023-07-01 17:14:52 +08:00
parent cb96f862db
commit dbc3035ff7
2 changed files with 7 additions and 1 deletions

View File

@ -54,8 +54,13 @@ namespace mt
}
int ring_count = pair.second.size() - 1;
auto last_area = pair.second.at(pair.second.size() - 1);
bool can_revive = false;
for (auto& meta : pair.second) {
meta->small_ring_count_ = ring_count--;
if (!can_revive) {
can_revive = meta->rebirth() ? true : false;
}
meta->_can_revive = can_revive;
meta->last_area_ = last_area;
}
}
@ -69,7 +74,7 @@ namespace mt
bool SafeArea::CanRevive() const
{
return false;
return _can_revive;
}
}

View File

@ -23,6 +23,7 @@ namespace mt
private:
static std::map<int, std::vector<mt::SafeArea*>> type_hash_;
bool _can_revive = false;
int small_ring_count_ = 0;
const mt::SafeArea* last_area_ = nullptr;
std::shared_ptr<std::tuple<glm::vec3, float, int>> _boss;