How does breath attenuation work anymore?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pete Mack
    Prophet
    • Apr 2007
    • 6883

    How does breath attenuation work anymore?

    apparently it was changed quietly *again* somewhere along the line again, and my 227 hp mage died to an ancient green dragon from ~150' away and 9 stars. With single resist @8 stars it did 227+28 = 265 damage. Yet my crappy acid spray spell does essentially zero at that range.

    BTW: mage attack spells really, utterly, completely, unnecessarily suck if you never find MB4 in a reasonable time. The only good one is harmless against a ton of monsters. The others do poor damage and break stuff on the floor.
  • malcontent
    Adept
    • Jul 2019
    • 166

    #2
    Seems to me if you had single resist, a full strength AGD should only be able to do 167 damage. But maybe I'm not calculating correctly. I know when we did the Blackguard competition with the nightly build I was toasted by something that should not have been able to toast me. What version are you playing?

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9634

      #3
      From effects.c (last changed three years ago):
      Code:
      		 * - 30 degree regular breath  | full strength at 5 grids
      		 * - 30 degree powerful breath | full strength at 9 grids
      		 * - 20 degree regular breath  | full strength at 11 grids
      		 * - 20 degree powerful breath | full strength at 17 grids
      		 * where grids are measured from the breather. */
      Ancient dragons breathe powerfully, and poison breath is a 30 degree cone, so it is full strength at 9 grids away. Attenuation falls off at 1/(1 + distance), so it probably should be 1/6 at 150' (assuming you mean 15 grids from monster to character). AGD has 1500 hit points, so raw breath power 500, single resist takes it to 187 at full strength and 31 if divided by 1/6.

      If your numbers are correct, that's a pretty serious discrepancy.
      One for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      • backwardsEric
        Knight
        • Aug 2019
        • 527

        #4
        That comment doesn't seem to match the computed value for diameter_of_source for the 30 degree cases. diameter_of_source is initialized to 4, expanded to 6 for powerful breathers, and then multiplied by 2 for the 30 degree cone so it would be 12 for a powerful breath (full damage at a distance of 11) and 8 for a regular breath (full damage at a distance of 7). Also, the attenuation in project.c is diameter_of_source / (distance + 1) or 0.75 for the case in question. That calculation did change in May of 2020.

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9634

          #5
          Originally posted by backwardsEric
          That comment doesn't seem to match the computed value for diameter_of_source for the 30 degree cases. diameter_of_source is initialized to 4, expanded to 6 for powerful breathers, and then multiplied by 2 for the 30 degree cone so it would be 12 for a powerful breath (full damage at a distance of 11) and 8 for a regular breath (full damage at a distance of 7). Also, the attenuation in project.c is diameter_of_source / (distance + 1) or 0.75 for the case in question. That calculation did change in May of 2020.
          OK. Did I get anything right?
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • Selkie
            Swordsman
            • Aug 2020
            • 434

            #6
            Originally posted by Nick
            OK. Did I get anything right?
            I think you need five minutes on the naughty step

            Comment

            • backwardsEric
              Knight
              • Aug 2019
              • 527

              #7
              The full damage distances for the 20 degree cone mentioned in the comment are correct - I didn't try to figure how the 30 degree ones came to be incorrect.

              The conclusion that all the reported numbers don't match up remains true.
              Assuming the ancient green dragon was at 1050 hit points (70% health; the minimum for 8 stars on the health bar) and 15 squares away gives a resisted damage of (((1050 / 3) * 12) / 16) / 3 = 87. Have to assume that there was no resistance (damage of 262) to get close to the reported damage of 265.

              Comment

              • DavidMedley
                Veteran
                • Oct 2019
                • 1004

                #8
                Did you have a Steelskin amulet?
                Please like my indie game company on Facebook! https://www.facebook.com/RatherFunGames

                Comment

                • Pete Mack
                  Prophet
                  • Apr 2007
                  • 6883

                  #9
                  My guess is I swapped in =digging instead of =rPois. That kind of thing is too common on a phone, and is part of the reason I only have a single win that way.

                  Comment

                  • Pete Mack
                    Prophet
                    • Apr 2007
                    • 6883

                    #10
                    So I won't have that problem *this* game. I enabled randarts as so many suggested, and the very first artifact i find:
                    Code:
                    b) The sling of Adolleth (×2) (+7,+26) <+1,+3> {??}
                    +3 strength
                    +1 light
                    
                    You do not know the full extent of this item's powers.
                    Provides resistance to poison 
                    Slows you metabolism.  Speeds your regeneration.
                     
                    Activates for Sleep Monsters
                    This is definitely easy(er) mode.
                    Last edited by Pete Mack; February 27, 2021, 22:30.

                    Comment

                    • Estie
                      Veteran
                      • Apr 2008
                      • 2346

                      #11
                      LMAO.

                      Yes. Yes, I will shut up. Have fun with your standarts.

                      Comment

                      • Estie
                        Veteran
                        • Apr 2008
                        • 2346

                        #12
                        While you get bored with your op sling, my first artifacts are junk (a rapier with +3 str and nothing else, a crown with SI and FA, which would be great except I already have covered both); then, this:

                        the Amulet of Gwilydhel <+4, +3>
                        Dropped by Lorgan, Chief of the Easterlings at 1800 feet (level
                        36)

                        +4 strength.
                        +3 constitution.
                        +4 speed.

                        When activated, it grants temporary resistance to acid for 1d10+10
                        turns.
                        Takes 33 to 36 turns to recharge.
                        Your chance of success is 89.9%

                        But, I am a priest and wearing " +5 wis. Do I swap ? I think not (yet).

                        Comment

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