added prompt to throwing potions on baby dragons

This commit is contained in:
2024-07-21 10:33:57 -04:00
parent 0a6190ee34
commit 82f9d35f90

View File

@ -145,9 +145,14 @@ long_result player_base::throw_potion(level *lvl, std::unique_ptr<potion> p,
character *ch = lvl->get_elist()[flag ^ WHAT_ENEMY];
known_potions |= 1 << p->get_type();
ch->apply_effect(std::move(p));
if (ch->get_race() != BABY_DRAGON)
return {THROWN, "The potion of " + name +
"'s contents spilled on " +
ch->get_abbrev() + ". "};
return {THROWN, "The potion of " + name +
"'s contents spilled on " +
ch->get_abbrev() + ". "};
" didn't seem to affect B. "};
}
}