Talk:Shopkeeper services

From NetHackWiki
Jump to: navigation, search

Added services after initial shop generation

Does anyone know if shops have a chance of getting new services after their initial generation? For example, one weapon shop had fixing as the only service, then after buying a few items and selling a few others, it offered poisoning. (didn't sell him poisoned weapons, so that can't be it) Seems like it only happens to me with weapon shops and poisoning, and also only rarely. Thoughts? - AileTheAlien 19:29, 6 February 2011 (UTC)

A quick look through the source isn't showing anything that'd suggest that the available services can ever change. It looks like the services are only set when the shopkeeper is created (all done in shknam.c), and only read afterwards, never changed. Are you sure you didn't just not notice that he always provided poisoning? -- Qazmlpok 19:43, 6 February 2011 (UTC)
99.999% certain. It's very possible this is a bug somewhere else, possibly even with the default GUI, which is what I use. - AileTheAlien 20:31, 6 February 2011 (UTC)
Well, it's certainly possible I'm missing something or that the code is buggy. For example, the code clearly shows that shops should only rarely offer both basic and premium identification (but always something). I've never seen a shop that didn't offer both, although I do only play on public servers. Whatever the cause, I can't explain it and I've never seen it happen myself. -- Qazmlpok 20:40, 6 February 2011 (UTC)
Looks like only sharp weapons can be poisoned; Choosing the weapon works option with a blunt weapon will not show the poison option. Someone verify with source? - AileTheAlien 17:11, 11 February 2011 (UTC)