Using bad items offensively?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Netbrian
    Adept
    • Jun 2009
    • 141

    #16
    Originally posted by d_m
    If you could provide a diff (or series of commits) where you did this, or even a patch for V (if you had time) I would be extremely grateful. I've wanted to do something exactly like what you've done but never found the time/energy/inclination.

    I will be interested to hear how this works for you, and will be sure to let you know if I get anything working.
    I'd love to see this. Regardless of what is done with bad potions, I'd really appreciate seeing enemy status effects approved. Maybe then Bedlam won't be such a letdown.

    Comment

    • d_m
      Angband Devteam member
      • Aug 2008
      • 1517

      #17
      Originally posted by nppangband
      Is there any particular version of the Angband source you would want me to start with (Ang 3.2, the nightlies, one of your branches?) as the basis for a patch?
      I would love to get a patch against angband/master on github, but 3.2 would be fine also. Thanks!
      linux->xterm->screen->pmacs

      Comment

      • nppangband
        NPPAngband Maintainer
        • Dec 2008
        • 926

        #18
        Originally posted by d_m
        I would love to get a patch against angband/master on github, but 3.2 would be fine also. Thanks!
        Will do. I am trying to get a NPP 0.5.1 release candidate out today, then I will get started on this. I should have it done in a couple days.
        NPPAngband current home page: http://nppangband.bitshepherd.net/
        Source code repository:
        https://github.com/nppangband/NPPAngband_QT
        Downloads:
        https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57

        Comment

        • nppangband
          NPPAngband Maintainer
          • Dec 2008
          • 926

          #19
          Done. The patch is available here:




          (D_m - I also e-mailed you a copy, along with a good savefile for testing).

          * This patch changes two things.
          - The first is centralizing the increase and decrease of temporary
          monster effects into one place. It handles checking for resistances,
          setting, increasing, decreasing, and clearing these temporary effects, as
          well as monsters getting slowed and hasted. It can also optionally print
          out the messages. This allows for slightly cleaner code and eliminates alot
          of duplication, and puts in a single place the chances for the monster
          resisting a temporary effect
          - The second thing it does is count, store and flush monster pain, damage and recovery messages only once. This means if you take your priest inside a troll pit and start casting dispel evil you will no longer get a couple hundred redundant messages, instead you will get "18 troll priests shudder in pain, 23 trolls are destroyed, 11 trolls scream in agony"...etc.
          NPPAngband current home page: http://nppangband.bitshepherd.net/
          Source code repository:
          https://github.com/nppangband/NPPAngband_QT
          Downloads:
          https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57

          Comment

          • Nick
            Vanilla maintainer
            • Apr 2007
            • 9637

            #20
            Yoink! Thank you, Jeff
            One for the Dark Lord on his dark throne
            In the Land of Mordor where the Shadows lie.

            Comment

            • will_asher
              DaJAngband Maintainer
              • Apr 2007
              • 1124

              #21
              I'd like to use this for DaJAngband. How can I get this (or convert this) to a more readable format?
              Will_Asher
              aka LibraryAdventurer

              My old variant DaJAngband:
              http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

              Comment

              • Nick
                Vanilla maintainer
                • Apr 2007
                • 9637

                #22
                Opening it in a file differencing tool is probably what you want. I haven't tried it, but WinMerge looks like a good one for Windows.
                One for the Dark Lord on his dark throne
                In the Land of Mordor where the Shadows lie.

                Comment

                • nppangband
                  NPPAngband Maintainer
                  • Dec 2008
                  • 926

                  #23
                  It should be just a simple text file ready to patch into the current Angband master. But I get an unreadable html document from the link. I will re-upload it.

                  I can also e-mail it to you if you want.

                  EDIT:

                  Not sure how the file got changed. This link should be a simple zip file with a single patch (txt) file.

                  Last edited by nppangband; January 30, 2011, 13:47.
                  NPPAngband current home page: http://nppangband.bitshepherd.net/
                  Source code repository:
                  https://github.com/nppangband/NPPAngband_QT
                  Downloads:
                  https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57

                  Comment

                  • d_m
                    Angband Devteam member
                    • Aug 2008
                    • 1517

                    #24
                    Jeff, thanks so much!

                    We are currently assimilating your patch into V... through an unfortunate coincidence CunningGabe modified some of the same areas, so it may take a little time for us to get it all in... but it looks great, and I'm excited that I will probably hit the spacebar 80% less while playing Angband (and that we'll get better monster status effects, of course)!
                    linux->xterm->screen->pmacs

                    Comment

                    • nppangband
                      NPPAngband Maintainer
                      • Dec 2008
                      • 926

                      #25
                      You are welcome. I am always happy to help out any time.

                      I do believe there is one major mistake throughout the patch. I am not too familiar with the new Angband monster race flags or how they work. I think there are a a dozen or so places in the patch with lines like this:

                      if ((rf_has(r_ptr->flags, RSF_BR_SOUN))

                      shouldn't those be:

                      (rsf_has(r_ptr->spell_flags, RSF_BR_WALL))) )

                      I beleive that every line of code in the patch that contains "RSF_BR" needs to be checked and in places where we are checking monster breaths for resistances. I am also wondering if I marked the monster lore properly. I have a feeling it changed and I didn't do it right.
                      NPPAngband current home page: http://nppangband.bitshepherd.net/
                      Source code repository:
                      https://github.com/nppangband/NPPAngband_QT
                      Downloads:
                      https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57

                      Comment

                      • will_asher
                        DaJAngband Maintainer
                        • Apr 2007
                        • 1124

                        #26
                        Thanks I can read it now. And I'll have to do a good bit of changing to adapt it to the DAJ code anyway.
                        Will_Asher
                        aka LibraryAdventurer

                        My old variant DaJAngband:
                        http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

                        Comment

                        • nppangband
                          NPPAngband Maintainer
                          • Dec 2008
                          • 926

                          #27
                          Originally posted by will_asher
                          Thanks I can read it now. And I'll have to do a good bit of changing to adapt it to the DAJ code anyway.
                          Which version of Angband is DAJ based upon? The combined monster messages have been in NPP for a while, so there might be a version that would fit smoothly into your variant.
                          NPPAngband current home page: http://nppangband.bitshepherd.net/
                          Source code repository:
                          https://github.com/nppangband/NPPAngband_QT
                          Downloads:
                          https://app.box.com/s/1x7k65ghsmc31usmj329pb8415n1ux57

                          Comment

                          • will_asher
                            DaJAngband Maintainer
                            • Apr 2007
                            • 1124

                            #28
                            Originally posted by nppangband
                            Which version of Angband is DAJ based upon? The combined monster messages have been in NPP for a while, so there might be a version that would fit smoothly into your variant.
                            It's based on Angband 3.0.9
                            Will_Asher
                            aka LibraryAdventurer

                            My old variant DaJAngband:
                            http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

                            Comment

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