[4.0.5] Bug in object power

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2986

    [4.0.5] Bug in object power

    During the porting of new object power calculations to PWMAngband, I was looking at the differences in the result vs 4.0.5 and discovered the following bug: ac power is directly proportional to ac, which means that a plain iron crown [0,+0] gets a final power of 0. What happens in PWMAngband also happens in 4.0.5: the crown is unsellable.

    From what I see in the code, it's just the base armour power (BASE_ARMOUR_POWER = 1) added when ac is positive instead of always added. This could also be fixed in the nightlies.
    Last edited by PowerWyrm; February 16, 2017, 10:00.
    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!
Working...
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎