boulder pushing comment

Replace wondering whether something is possible with a description of
how it can happen.
This commit is contained in:
PatR
2024-09-05 01:14:20 -07:00
parent 6da05e1508
commit cd19f84721

View File

@@ -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