From cd19f84721271651c37b72da87bd540f7a5aac12 Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 5 Sep 2024 01:14:20 -0700 Subject: [PATCH] boulder pushing comment Replace wondering whether something is possible with a description of how it can happen. --- src/hack.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hack.c b/src/hack.c index 8220a3a22..b0f37e2ce 100644 --- a/src/hack.c +++ b/src/hack.c @@ -491,7 +491,13 @@ moverock(void) } else if (!costly && costly_spot(rx, ry) && otmp->unpaid && ((shkp = shop_keeper(*in_rooms(rx, ry, SHOPBASE))) != 0) && onshopbill(otmp, shkp, TRUE)) { - /* [can this case actually happen?] */ + /* this can happen if hero pushes boulder from farther inside + the shop into shop's free spot (which will add it to the bill), + then teleports or Passes_walls to the doorway (without exiting + the shop), and then pushes the boulder from the free spot + back into the shop; it's contingent upon the shopkeeper not + "muttering an incantation" to fracture the boulder while it + is unpaid at the free spot */ subfrombill(otmp, shkp); } else if (otmp->unpaid && (shkp = find_objowner(otmp, sx, sy)) != 0