added result screens

fixed bug about picking up two boosts crashing the game
This commit is contained in:
2024-07-17 16:13:20 -04:00
parent 004c79f094
commit ea381c24f6
5 changed files with 115 additions and 12 deletions

View File

@ -37,7 +37,7 @@ void character::insert_effect(std::unique_ptr<potion> effect) {
effects.push_back(std::move(effect));
for (int i = effects.size() - 1; i > 0 &&
effect->get_priority() < effects[i - 1]->get_priority(); --i)
effects[i]->get_priority() < effects[i - 1]->get_priority(); --i)
std::swap(effects[i], effects[i - 1]);
}