Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old August 30, 2010, 18:08   #1
Hajo's Avatar
Join Date: Aug 2010
Posts: 142
Hajo is on a distinguished road
Trying to make ego lights for Angband 2.9.3

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.

a Wooden Torch of Brightness (-1) (with 2345 turns of light)
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.

N:103:of Brightness
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.
I have a project problem? I have no project problem. I start a project, I work on it, it fails. No problem
Hajo is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
*** no rule to make target JDTAY Development 9 March 3, 2010 20:58
Ego weapons you always wanted to find... Pete Mack AAR 5 July 5, 2009 05:37
pricing on slay ego weapons Malak Darkhunter Vanilla 2 July 1, 2009 22:02
Ego-Item indexes in defines.h PaulBlay Development 0 April 17, 2009 10:21
Trying to make my own variant bpleshek Variants 8 September 15, 2008 21:42

All times are GMT +1. The time now is 08:07.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.