1
This commit is contained in:
parent
cb96f862db
commit
dbc3035ff7
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user