Quality ignoring and potions of Enlightenment?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fruviad
    Apprentice
    • Jan 2011
    • 65

    Quality ignoring and potions of Enlightenment?

    Is anyone else seeing similar behavior? This is the latest code.

    If you quaff a potion of Enlightenment, you can see that there's some item - e.g. a shield - in a remote room. If you then change your item ignoring settings and that remote item meets the ignoring specs, ignoring may be applied to it even if you've never walked over to the item and examined it directly.

    This seems to be contrary to the treatment of objects in the game, which typically are unknown until @ enters the same square as the object.

    Example: I set my ignoring options to "good" for everything in the "Quality ignore menu".

    Upon entering dLvl 4, I quaffed a potion of Enlightenment. It showed the following items on the level:
    * 19 Rounded Pebbles (1d2)
    * 17 Iron Shots (1d4)
    * a Dagger (1d4)

    If I turn off ignoring, then I see those items, plus the following:
    * a Set of Leather Gloves
    * a Wicker Shield
    * a Robe


    Examining the items, I find the following:
    * 19 Rounded Pebbles (1d2) (+4,+3)
    * 17 Iron Shots (1d4) (+0,+0)
    * a Dagger (1d4) (+0,+0)

    * a Set of Leather Gloves [1,+0]​
    * a Wicker Shield [2,+0]
    * a Robe [2,+0]
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9351

    #2
    That looks like a bug
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • backwardsEric
      Knight
      • Aug 2019
      • 533

      #3
      Potions of enlightenment use LIGHT_LEVEL with a dice of one so they'll fully see objects (as if the character was on the same grid as the object). That dates from Nick's change back in 2015: https://github.com/angband/angband/c...a728eb67901d48 .

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9351

        #4
        Thanks, good someone can remember what I've done
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • Phill16
          Rookie
          • Dec 2024
          • 0

          #5
          That really does seem like a bug. Ignoring mechanics shouldn't apply to items that @ hasn't examined directly. Enlightenment seems to be leaking too much info into the ignore system. Maybe worth reporting this as a potential issue to the devs.?

          Comment

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