Dropping squelch items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zikke
    Veteran
    • Jun 2008
    • 1069

    Dropping squelch items

    Is there a reason why when I pseudo-ID an object as "bad" then my character will drop it automatically right away, but when I use a wand or something of Heal Monster and it marks it as {squelch} then it doesn't drop it right away? It waits until the next time I pick something up.

    Is there a way to make it consistent and drop any squelched item instantly?
    A(3.1.0b) CWS "Fyren_V" NEW L:50 DL:127 A++ R+++ Sp+ w:The Great Axe of Eonwe
    A/FA W H- D c-- !f PV+++ s? d P++ M+
    C- S+ I- !So B ac++ GHB? SQ? !RQ V F:
  • PowerDiver
    Prophet
    • Mar 2008
    • 2820

    #2
    Originally posted by Zikke
    Is there a reason why when I pseudo-ID an object as "bad" then my character will drop it automatically right away, but when I use a wand or something of Heal Monster and it marks it as {squelch} then it doesn't drop it right away? It waits until the next time I pick something up.

    Is there a way to make it consistent and drop any squelched item instantly?
    The problem is sloppy code. Currently, in any place in the code where you do an action leading to learning something needs to be squelched, the programmer adds an instruction to drop squelched objects. Somebody overlooked your problem. This stuff should have been done instead in the code where things are noticed about objects.

    In other words, it's a bug. I'll get a fix to Takkaria eventually.

    Comment

    • Zikke
      Veteran
      • Jun 2008
      • 1069

      #3
      Okay thanks low priority
      A(3.1.0b) CWS "Fyren_V" NEW L:50 DL:127 A++ R+++ Sp+ w:The Great Axe of Eonwe
      A/FA W H- D c-- !f PV+++ s? d P++ M+
      C- S+ I- !So B ac++ GHB? SQ? !RQ V F:

      Comment

      • Magnate
        Angband Devteam member
        • May 2007
        • 5110

        #4
        Originally posted by Zikke
        Okay thanks low priority
        It's a single line:

        p_ptr->notice |= PN_SQUELCH;

        I'll see if I can work out where to put it - presumably after the learning bit of aiming/zapping/using.

        CC
        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

        Comment

        • PowerDiver
          Prophet
          • Mar 2008
          • 2820

          #5
          Originally posted by Magnate
          It's a single line:

          p_ptr->notice |= PN_SQUELCH;

          I'll see if I can work out where to put it - presumably after the learning bit of aiming/zapping/using.

          CC
          If you want to do it now, put it into object_aware and object_known.

          Comment

          • Magnate
            Angband Devteam member
            • May 2007
            • 5110

            #6
            Originally posted by PowerDiver
            If you want to do it now, put it into object_aware and object_known.
            That won't break how it's done at the moment (which is in the higher-level functions that call those)?

            Thinks: I guess not, since there's no harm in it being set twice. Leaves the code a bit ugly though - I'd want to go through and remove the extraneous invocations.
            "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

            Comment

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