Angband Forums Power-based pricing available (r1284)
 Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 March 27, 2009, 21:20 #1 Magnate Angband Devteam member   Join Date: May 2007 Location: London, UK Posts: 5,057 Power-based pricing available (r1284) Hi all, I've been playing around with the randart power algorithm, turning it into a more general power algorithm for all wearable objects, and using it in a pricing formula. Takkaria suggested that before I go any further I post some results here and see what people think (with apologies to Eddie, who thinks this whole direction is misguided...). The original power algorithm used damage as its basis, so one power point equated to one point of damage. When trying to extend this to cover everyday wearables I found that it didn't allow for enough distinction at the lower end: lots of base weapons and armour items ended up with identical power ratings and therefore costs. So I've doubled the scale: one point of power now represents half a point of damage (per blow). This just about allows enough separation, but please bear in mind that plain weapons with identical damage dice and plain armour items with identical base AC will always come out the same, no matter how long the scale! (But see my to-do list below.) Here is a list of sample items and their new prices, using a quadratic pricing curve (price = a * power^2 + b * power, using a=2 and b=3): Code: ```Power Cost 1 5 armour[1,0] 3 27 armour[2,0] or weapon(1d2)(+0,+0) 4 44 armour[3,0] or weapon(1d3)(+0,+0) 7 119 armour[5,0] or weapon(1d6)(+0,+0) 9 189 armour[6,0] or weapon(1d8)(+0,+0) 12 324 armour[8,0] or weapon(2d5)(+0,+0) or shortbow(x2)(+0,+0) 19 779 armour(-2)[14,0] or lightXbow(x3)(+0,+0) or boots of speed[2,+10](+1) 33 2277 armour(-3)[24,0] or boots of speed[2,+10](+3) 39 3159 armour(-3)[28,0] 40 3320 weapon(8d4)(+0,+0) or longbow(x3)(+9,+9) 50 5150 armour(-3)[35,0] or weapon(1d4)(+15,+15) 55 6215 longbow(x3)(+15,+15) or boots of speed[2,+10](+5) 85 14705 weapon(8d4)(+15,+15) or boots of speed[2,+10](+7) 103 21527 weapon of westernesse(2d5)(+15,+15)(+1) or boots of speed[2,+10](+8) 121 29645 armour of elvenkind(-1)[28,+15](+3 to stealth){rpois} 123 30627 weapon of westernesse(2d5)(+15,+15)(+2) or boots of speed[2,+10](+9) 154 47894 weapon (Holy Avenger)(8d4)(+15,+15)(+4)``` If anyone is interested, I've put a spreadsheet at http://www.terminalarrogance.com/object_pricing.xls which allows you to mess with the power rating on one tab and the pricing formula on another. Post here if you have any problems with it and I'll try to help. Looking at the table above, there are slightly greater price increases between low- and high-damage weapons than was previously the case. Non-magical weapons are generally a little dearer, and launchers are also a little more expensive (but this seems fair, given their power in V-combat). Minor slays like orc and troll on low-damage weapons are now much cheaper (since they are not actually worth much). Boots of speed stand out as underpriced. This is one of a small number of items with hard-coded prices which bear no relation to how any formula prices them: - heavy armours (mithril and adamantite plate - there is a huge jump from ribbed plate to these) - armour/shields of resistance (currently costed at 5x the total cost of the four individual resist egos - a saner multiplier would be no more than 3x) - boots of speed and elvenkind (isn't there an extra zero on the cost of the latter??) - headgear of telepathy (- robes of permanence, shields of preservation - these are less out of whack, but still about double what they should cost) It's quite possible that speed and telepathy are still undervalued in the power algorithm, and it's likely that I need to add an extra power term for multiple resists/sustains (akin to the one already used for multiple pval attributes) - but it's also possible that these things were historically overpriced quite deliberately. Moving to power-based pricing would require dealing with that (either by abandoning it or by hard-coding exceptions). Obviously this is not a finished piece of work and I welcome people's views on improving it. My current to-do list (apart from continuing to improve the ratings of various powers) is: 1. Add power ratings for activatable effects 2. Add an extra power term for multiple resists 3. Adjust the power for AC to reflect an item's weight (the same AC is worth more on a lighter item) 4. Calculate the power value of resists and sustains by reference to monster attacks, rather than using hard-coded values. 5. Find some way of reflecting critical hits in weapon power (but I might wait until criticals are re-vamped!). One final note: it is not possible to calculate the power of the new elemental rings. If your weapon already has that brand, it's worth nothing on the ring. If your weapon is a 1d4 dagger, it's worth a tiny amount. If your weapon is the Glaive of Pain, it's worth a huge amount! (I guess we will have to base the cost of said rings on branding an "average" weapon, like 2d5 or so). Power-based pricing is now available in trunk. To try it, check out r1284 (or later) and uncomment the line "#define POWER_PRICING" in src/config.h before compiling. Let me know of any prices which stand out as either too high or too low. CC.
 March 27, 2009, 22:05 #2 Atarlost Swordsman   Join Date: Apr 2007 Posts: 441 You mention in the future having armor pricing take weight into account. I think weapon pricing should do the same, possibly to a greater degree. Light weapons not only encumber you less they also give more blows. __________________ One Ring to rule them all. One Ring to bind them. One Ring to bring them all and in the darkness interrupt the movie.
March 27, 2009, 22:14   #3
Magnate
Angband Devteam member

Join Date: May 2007
Location: London, UK
Posts: 5,057
Quote:
 Originally Posted by Atarlost You mention in the future having armor pricing take weight into account. I think weapon pricing should do the same, possibly to a greater degree. Light weapons not only encumber you less they also give more blows.
But they get fewer criticals, and the tradeoff between blows and criticals is nearly impossible to calculate.

Both blows and criticals have been discussed in the not too distant past as candidates for overhauling. Given the difficulty of calculating the effect of non-standard weight on a weapon's damage, I'm inclined to wait until either or both of these things happen.

March 28, 2009, 02:34   #4
buzzkill
Prophet

Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: \$8
Quote:
 Originally Posted by Magnate One final note: it is not possible to calculate the power of the new elemental rings. If your weapon already has that brand, it's worth nothing on the ring. If your weapon is a 1d4 dagger, it's worth a tiny amount. If your weapon is the Glaive of Pain, it's worth a huge amount! (I guess we will have to base the cost of said rings on branding an "average" weapon, like 2d5 or so).
Better it be priced too high rather than too low. Buying, is but an option, and one can always be found. Base it on a better than average weapon, or an even better weapon than that.
__________________
www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
My banding life on Buzzkill's ladder.

March 28, 2009, 08:51   #5
Magnate
Angband Devteam member

Join Date: May 2007
Location: London, UK
Posts: 5,057
(On the value of branded rings ...
Quote:
 Originally Posted by buzzkill Better it be priced too high rather than too low. Buying, is but an option, and one can always be found. Base it on a better than average weapon, or an even better weapon than that.
Hmm. I'm interested in views on this. Branding only affects base damage dice, so uber-weapons with huge plusses benefit no more than plain (+0,+0) weapons with the same dice. Furthermore, any other brands and slays on the weapon actually detract from the value of the brand on the ring, as there are fewer cases where the ring's brand will provide the best multiplier. This is why Pain is the ultimate example - it has colossal base damage and no competing brands or slays. (It is theoretically possible that the randart generator could make a 9d8 Lochaber Axe or even a 9d9 Quarterstaff, but it's so unlikely that we can consider Pain the limiting case.)

So what base weapon damage is a sensible value to use? Bearing in mind that we assume +9 ammo when calculating the power of launchers, should we aim for the higher end, like 3d5 or 3d6?

 March 28, 2009, 20:08 #6 Atarlost Swordsman   Join Date: Apr 2007 Posts: 441 Given that it loses value when other brands are on the weapon I'd use the biggest dice weapon that can be routinely bought in town. I'm not sure what that is now. I don't think you see 3d6 or 3d5, but aren't bastard swords 3d4? I think I've seen them in the weaponsmith. On the other hand extra blows mean the same thing as more dice. If you can get two blows with a broadsword and only one with an executioner's sword they're both doing 4d5 brand boosted damage per turn. That may mean you should go by the heavy weapons since the lighter weapons get more blows and wind up benefiting nearly as much from the brand. That's with the current blows calculation. A shallower blows-weight curve would mean that the more common mid-weight weapons aren't catching up with the heavy weapons for dice/turn and so they should be the standard. I think it's better to undervalue it than overvalue it unless it's available from a non-BM shop. Stuff that's only available from the BM is more likely to be sold than bought I expect. __________________ One Ring to rule them all. One Ring to bind them. One Ring to bring them all and in the darkness interrupt the movie.
March 29, 2009, 05:51   #7
andrewdoull
Unangband maintainer

Join Date: Apr 2007
Location: Sydney, Australia
Age: 45
Posts: 872
Quote:
 Originally Posted by Magnate Hi all, I've been playing around with the randart power algorithm, turning it into a more general power algorithm for all wearable objects, and using it in a pricing formula. Takkaria suggested that before I go any further I post some results here and see what people think (with apologies to Eddie, who thinks this whole direction is misguided...).
This worked well for me in Unangband - I'll have to look to see how well this compares.

One issue I had was how to price cursed items with good abilities. I believe curses should allow more powerful items to appear at lower levels, but the curse should only partially be taken into account when computing the price.

Andrew
__________________
The Roflwtfzomgbbq Quylthulg summons L33t Paladins -more-
In UnAngband, the level dives you.
ASCII Dreams: http://roguelikedeveloper.blogspot.com
Unangband: http://unangband.blogspot.com

March 29, 2009, 09:51   #8
Magnate
Angband Devteam member

Join Date: May 2007
Location: London, UK
Posts: 5,057
Quote:
 Originally Posted by andrewdoull This worked well for me in Unangband - I'll have to look to see how well this compares.
Hi Andrew, good to hear from you. I'd be very interested to hear what you did differently.
Quote:
 One issue I had was how to price cursed items with good abilities. I believe curses should allow more powerful items to appear at lower levels, but the curse should only partially be taken into account when computing the price.
Does this mean that you use your power rating in the item generation routines to influence what is dropped at a given depth?

To be honest I don't handle curses in a very sophisticated way (as befits current V!). Negative abilities (xp drain, random teleportation, aggravation) have a negative value, as do light and heavy curses. Minuses to hit/dam/ac/pval also reduce the item's power. So you can end up with negative power for 'bad' items, or very low power for 'cursed items with good abilities'. In a sense this meets your requirement for "only partially" taking the curse into account - previously the presence of a curse meant an automatic assignment of zero value. But there is scope for great improvement in the variety and effects of curses (per Nick's recent thread in the Dev forum), so their effect on power would need revising.

Cheers,

Chris

March 29, 2009, 11:42   #9
andrewdoull
Unangband maintainer

Join Date: Apr 2007
Location: Sydney, Australia
Age: 45
Posts: 872
Quote:
 Originally Posted by Magnate Hi Andrew, good to hear from you. I'd be very interested to hear what you did differently. Does this mean that you use your power rating in the item generation routines to influence what is dropped at a given depth?
Yes. In particular, I keep trying to randomly boost an ego item by adding to-hit, to-dam, to-ac, pval or choosing a new random ability until it meets a minimum for the level it is generated at.

This attempts to make ego items always useful when dropped.

Andrew
__________________
The Roflwtfzomgbbq Quylthulg summons L33t Paladins -more-
In UnAngband, the level dives you.
ASCII Dreams: http://roguelikedeveloper.blogspot.com
Unangband: http://unangband.blogspot.com

 March 30, 2009, 03:38 #10 camlost Sangband 1.x Maintainer     Join Date: Apr 2007 Posts: 522 Statistical approach I've actually considered doing this same thing, albeit with a statistical approach in mind. From the (stated) costs of items in the pricing guide, attempt to determine what their cost is. I think at some point, I assumed a linear approach to cost. Either that or some super-additive function that I had yet to determine. In any case, I figured that using the starting prices as a guide for the "power" of an item and doing some statistical analysis would be fun starting point. I'd elaborate, but it's just an idea in the back of my head that I've never actually implemented. __________________ a chunk of Bronze {These look tastier than they are. !E} 3 blank Parchments (Vellum) {No french novels please.}

 Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Angband     AAR     Vanilla     Development     ToME     Sil     Variants     Competition The real world     Idle chatter     Oook! Obsolete     v4

 Similar Threads Thread Thread Starter Forum Replies Last Post PaulBlay Vanilla 2 February 21, 2009 15:17 andrewdoull Idle chatter 15 December 28, 2007 18:20 Irashtar Vanilla 4 October 20, 2007 02:28

All times are GMT +1. The time now is 11:02.