Perma-blind pets

G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

Strange, I've used an expensive camera on a tame dog to let it kill a
floating eye, and several thousand turns later, the dog is still blind.

A very cursory glance at the code suggests that mons, even tame ones,
should get unblind after a short time.

Is this known? Or do I need to debug it myself?

1KB
 
Archived from groups: rec.games.roguelike.nethack (More info?)

Adam Borowski <kilobyte@mimuw.edu.pl> writes:

> Strange, I've used an expensive camera on a tame dog to let it kill a
> floating eye, and several thousand turns later, the dog is still blind.

I experienced the same some time ago. It wasn't in the
bug list, but I was too lazy to send in a report. After
all, I don't blind dogs so often.

Best,
Jakob
 
Archived from groups: rec.games.roguelike.nethack (More info?)

Adam Borowski <kilobyte@mimuw.edu.pl> writes:
> Strange, I've used an expensive camera on a tame dog to let it kill a
> floating eye, and several thousand turns later, the dog is still blind.
>
> A very cursory glance at the code suggests that mons, even tame ones,
> should get unblind after a short time.
>
> Is this known? Or do I need to debug it myself?

An expensive camera's flash at point blank range will blind a monster
permanently. This appears to be deliberate. From flash_hits_mon()
(excerpted):

if (!resists_blnd(mtmp)) {
tmp = dist2(otmp->ox, otmp->oy, mtmp->mx, mtmp->my);
/* [...] */
mtmp->mcansee = 0;
mtmp->mblinded = (tmp < 3) ? 0 : rnd(1 + 50/tmp);

dist2() is a function returning the Pythagorean distance between two
squares.

--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "Nothing matters very much, and few things matter at all." :
: -- A.J. Balfour :