I've been trying to make ego lights for Angband 2.9.3. It seems I got most of it right. The flags are set right when I inspect the items with the debug commands, and they work as expected.
But there is a strange side effect in inventory display.
I wonder where the -1 comes from and what it means. The torch has SEE_INVIS and my newly introduced EGO_LIGHT flags. I tried to give it +1 to hit (due to the better light) but nothing else.
I guess the -1 comes from the C line, but why is that (-1) then and not [+1, +0]? I might skip the idea of the attack bonus from ego lights if this causes too much troubles. I have even no idea if the bonus would transfer to the attack mods anyways, since this is a ego light and not a weapon.
But there is a strange side effect in inventory display.
a Wooden Torch of Brightness (-1) (with 2345 turns of light)
Code:
N:103:of Brightness X:29:0:0 W:1:1:0:0 C:1:0:0:0 T:39:0:99 F:SEE_INVIS | EGO_LIGHT
Comment