added prompt to throwing potions on baby dragons
This commit is contained in:
@ -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];
|
character *ch = lvl->get_elist()[flag ^ WHAT_ENEMY];
|
||||||
known_potions |= 1 << p->get_type();
|
known_potions |= 1 << p->get_type();
|
||||||
ch->apply_effect(std::move(p));
|
ch->apply_effect(std::move(p));
|
||||||
|
|
||||||
|
if (ch->get_race() != BABY_DRAGON)
|
||||||
return {THROWN, "The potion of " + name +
|
return {THROWN, "The potion of " + name +
|
||||||
"'s contents spilled on " +
|
"'s contents spilled on " +
|
||||||
ch->get_abbrev() + ". "};
|
ch->get_abbrev() + ". "};
|
||||||
|
|
||||||
|
return {THROWN, "The potion of " + name +
|
||||||
|
" didn't seem to affect B. "};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user