Fix the 'pre message' that goes with cocktails.

This commit is contained in:
Howard Abrams 2025-06-27 20:07:46 -07:00
parent cb88d646f9
commit 70e42e1ac6

View file

@ -349,13 +349,12 @@ class Cocktail(Object):
drink.db.amount = Cocktail.fill_amount
drink.location = owner
pre_msg = details.get("pre") + " " or ""
drink.location.msg(pre_msg + routput("The << bartender ^ barkeep ^ elf >> << passes ^ slides ^ gives ^ hands >> you a |y{0}|n.", drink.name))
pre_msg = details.get("pre", "")
drink.location.msg(routput(pre_msg + " The << bartender ^ barkeep ^ elf >> << passes ^ slides ^ gives ^ hands >> you a |y{0}|n.", drink.name))
theroom = drink.location.location
char = owner.db._sdesc or owner.get_display_name(theroom)
msg = pre_msg + \
routput("The << bartender ^ barkeep ^ elf >> << passes ^ slides ^ gives ^ hands >> a {0} to {1}.",
msg = routput(pre_msg + " The << bartender ^ barkeep ^ elf >> << passes ^ slides ^ gives ^ hands >> a {0} to {1}.",
drink.db.cocktail_type, char)
theroom.msg_contents(msg, exclude=owner)