Opened 6 years ago

Last modified 6 years ago

#1589 confirmed change

Heuristic for obviousness of item properties

Reported by: magnate Owned by: magnate
Milestone: v4 Keywords: items
Cc:

Description (last modified by magnate)

Following the discussion in http://angband.oook.cz/forum/showthread.php?t=5060 it will be important to distinguish objects' natural properties from their magical ones.

My initial thought is to create o_ptr->natural_flags in the same vein as o_ptr->pval_flags, i.e. a subset of o_ptr->flags which contains all those which are natural properties of this object. Note that a flag which is natural for some objects will be magical for others, e.g. IGNORE_FIRE.

This is going to take some serious heuristics if we are to avoid lots of special-case code, but will be an important foundation for the future of ID and detection.

Change History (1)

comment:1 Changed 6 years ago by magnate

  • Description modified (diff)
  • Status changed from new to confirmed
  • Summary changed from Distinguish between natural and magical properties to Heuristic for obviousness of item properties

Hmmm. I think there is a solution which is an "obviousness matrix" which sets out which flags (or non-flag properties, like plusses) are obvious on which tvals under which circumstances. That would be preferable to the o_ptr->natural_flags idea, I think.

Note: See TracTickets for help on using tickets.