Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old January 31, 2013, 17:35   #1
cereb
Rookie
 
Join Date: Jan 2013
Posts: 2
cereb is on a distinguished road
obj-info.c adding new pval_flags for example

Dear All,
I am trying to implement some of Entrobands features into the 3.4 Angband code and cannot find where, OF_MIGHT or any of the others is defined.
My compiler is happy with the others but when I add a new one I get an
error: 'OF_QUEST' undeclared here (not in a function)

I have also tried to add a misc_flags but got the same result.

Any help would be appretiated please,

David
cereb is offline   Reply With Quote
Old January 31, 2013, 21:11   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,860
Donated: $60
Nick will become famous soon enough
You need to add an entry to src/object/list-object-flags.h. This just looks like a list, but it gets processed during initialisation (by init2.c, or something called by it).

Ask again if you need more detail.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old January 31, 2013, 23:15   #3
cereb
Rookie
 
Join Date: Jan 2013
Posts: 2
cereb is on a distinguished road
Many thanks

Dear Nick,
ah, that explains why searching did not work. The processing function adds the OF_ bit to the MIGHT part.
Ah well. I know now.
Thank you so much. I was kind of losing it trying to get this.

David
cereb is offline   Reply With Quote
Reply

Tags
angband, development, flags, objects


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
Adding 3 dimensions to a 2D roguelike xibalba Idle chatter 12 February 22, 2012 13:41
Making levels interesting without just adding more loot EpicMan Development 26 July 6, 2011 22:29
Adding a new shop to Angband 3.1.1 Kyle Development 9 October 30, 2010 21:56
Adding Fonts? (X11 version) danaris Vanilla 8 March 17, 2010 19:12
Adding Effects to Angband PaulBlay Development 0 March 28, 2009 13:08


All times are GMT +1. The time now is 21:38.


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