Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old August 30, 2010, 17:08   #1
Hajo
Adept
 
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.

Quote:
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.

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
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 19:58
Ego weapons you always wanted to find... Pete Mack AAR 5 July 5, 2009 04:37
pricing on slay ego weapons Malak Darkhunter Vanilla 2 July 1, 2009 21:02
Ego-Item indexes in defines.h PaulBlay Development 0 April 17, 2009 09:21
Trying to make my own variant bpleshek Variants 8 September 15, 2008 20:42


All times are GMT +1. The time now is 19:35.


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