Yet Another Pricing Bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • d_m
    Angband Devteam member
    • Aug 2008
    • 1517

    Yet Another Pricing Bug

    Just noticed after selling the Phial to the black market that to buy the Phial back would cost me around 2k, but that buying a lantern of brightness would cost around 9k.

    A bug? Or maybe someone's not telling me something about that latern
    linux->xterm->screen->pmacs
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    Originally posted by d_m
    Just noticed after selling the Phial to the black market that to buy the Phial back would cost me around 2k, but that buying a lantern of brightness would cost around 9k.

    A bug? Or maybe someone's not telling me something about that latern
    Ah yes. I've been waiting for someone to spot this for a long time. The explanation is like this: a long time ago Eddie gave me a both-barrels rant about the slot-specificity of power. One of his prime examples was that the LITE flag was worth much more in the light slot than on anything else. (Having thought about it since, I'm not sure this is true ... but I bought the argument then.) So I added an extra hack to obj-power for this very case, as an interim measure until I could tackle ticket #1005 properly.

    This meant that the Of Brightness ego was correctly priced. The problem is that artifact lights don't have it, as they all have intrinsic radius 3 light. So the bug is that the power rating contains no code to value the intrinsic light radius of an object, only the LITE flag for +1.

    So now you know. I will fix this ... any year now.
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

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