obj-info.c adding new pval_flags for example

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cereb
    Rookie
    • Jan 2013
    • 2

    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
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    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.

    Comment

    • cereb
      Rookie
      • Jan 2013
      • 2

      #3
      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

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎