NetHack / NetHack

Official NetHack Git Repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Losing luck after one-hitting peaceful monsters

ars3niy opened this issue · comments

A side effect of 677b32c is that monsters killed in one hit not only do not cry out if sleeping, but also do not get angry when peaceful. Which means player can now lose luck whenever they kill a peaceful monster in one hit, with potentially fatal consequences.

Is this intentional?

Related observations:

  • when you anger a peaceful monster, nearby peaceful monsters will react by gasping, fleeing or turning hostile, but this now does not apply if the peaceful monster was killed in one hit;
  • unlike sleeping monsters, a pet killed in one hit will still make noise.

I don't understand this. Why would you lose luck from killing a peaceful monster? Isn't it just a -1 alignment penalty? If the alignment penalty happens when the monster gets angry, and oneshotting a sleeping monster causes it to not get angry, wouldn't there be no penalty?

I feel like something has flown way over my head but this was opened a few days ago and no one else has commented on it...

It is this code path:

NetHack/src/mon.c

Line 3516 in 9c30c1d

change_luck(-1);

It has been there for a long time, but was previously rarely triggered.

Also related: when you anger a peaceful monster, nearby peaceful monsters will react by gasping, fleeing or turning hostile, notably including the quest leader. But none of this now applies if the peaceful monster was killed in one hit.