bug with acid brand on aule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sornil
    Rookie
    • Nov 2017
    • 1

    bug with acid brand on aule

    My great hammer Aule is only doing x2 weapon damage with its acid brand. The dissolve emote is chosen and x2 damage is dealt even when another slay is available, such as x3 for slay undead.

    For example, and this is how I noticed it, I was dissolving a vampire lord for 85 per hit, and then I was smiting an undead beholder, which resists acid, for 103 per hit.

    I haven't checked any other acid brand weapons to see if it is global.

    I am playing the 4.1.0 release.
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    I will investigate.

    EDIT: Confirmed. I'll look to see how widespread this is.
    Last edited by Nick; November 28, 2017, 21:14. Reason: problem verified
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • PowerWyrm
      Prophet
      • Apr 2008
      • 2986

      #3
      Easy

      Code:
      static int melee_damage(struct object *obj, int b, int s)
      {
      	int dmg = damroll(obj->dd, obj->ds);
      
      	if (s)
      		dmg *= slays[s].multiplier;
      	else if (b)
      		dmg *= slays[b].multiplier;
      
      	dmg += obj->to_d;
      
      	return dmg;
      }
      Using "brand" for a brand should work better
      PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9634

        #4
        Originally posted by PowerWyrm
        Easy

        Code:
        static int melee_damage(struct object *obj, int b, int s)
        {
        	int dmg = damroll(obj->dd, obj->ds);
        
        	if (s)
        		dmg *= slays[s].multiplier;
        	else if (b)
        		dmg *= slays[b].multiplier;
        
        	dmg += obj->to_d;
        
        	return dmg;
        }
        Using "brand" for a brand should work better
        Wow, that must have been leading to all sorts of hilarity.
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9634

          #5
          In fact, the acid brand was the only one of the regular brands to be affected.

          On the other hand, anyone with a randart with a "weak" poison, cold or fire brand was getting a x5 multiplier
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • PowerWyrm
            Prophet
            • Apr 2008
            • 2986

            #6
            Originally posted by Nick
            In fact, the acid brand was the only one of the regular brands to be affected.

            On the other hand, anyone with a randart with a "weak" poison, cold or fire brand was getting a x5 multiplier
            Elec was affected too since it was remapped to the 2nd slay, which is slay animal (x2).
            PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9634

              #7
              Originally posted by PowerWyrm
              Elec was affected too since it was remapped to the 2nd slay, which is slay animal (x2).
              Actually no, because they're stored in reverse order, and there's one more slay than brand; so acid brand was using the slay animal multiplier.
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

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