Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shopkeeper/temple priest teleporting (trunk only)
Forwarded from the newsgroup by <Someone>: temple priest might abandon his post via teleport if conditions are obscure enough. Change rloc_pos_ok() to only accept spots inside the same shop or temple when a shopkeeper or temple priest is teleported to a random destination. rloc() tries rloc_pos_ok() 500 times before reverting to goodpos(), so this will usually succeed for a large room; it may fail for a small one (reverting to the current behavior, more or less). Shopkeepers or priests who get polymorphed into a critter which teleports to the stairs when in need of healing will still leave their shop or temple if wounded (no change). Priests resist if the player tries to teleport them, but shopkeepers don't. So for direct attack by the player, this only affects shopkeeper destination. But it affects both types as far as being hit by quantum mechanics (probably caused by player's use of conflict) or if polymorphed into monsters which steal and then flee (again, probably caused by the player since those strong monsters won't voluntarily polymorph).
- Loading branch information