The-Frozen-North / tfn-module

A persistent world set around Neverwinter and the Wailing Death, with content from HotU and NWN2
https://github.com/b5635/the-frozen-north/wiki
GNU Affero General Public License v3.0
31 stars 24 forks source link

Khadala needs changes #508

Open Logg-y opened 2 years ago

Logg-y commented 2 years ago

Cheaper, but better odds at t3 stuff (and probably remove t5 entirely) Smuggler's coins would be nice to figure out a way to add A higher end, expensive version could go somewhere like the underdark

Also need to figure out a way to restock her stuff without lagging the server to heck

b5635 commented 2 years ago

I think what we discussed in Discord was perhaps having two tiers. So a cheaper one and and a more expensive version as you described here.

If it can be restocked great. That's similar to D2 style where the items are randomized every time the store is opened.

b5635 commented 2 years ago

Could be interesting reading. Has some data: https://diablo2.diablowiki.net/Gambling#Item_Quality_Determination

Quoting you from development Discord channel as you have really good information and I don't want it to get buried!

The spanner in the works here is the buy/sell markup in shops, considering that... Average sell is ~38% of the item value Average buy is ~150% of the item value

Which makes Khadala even more expensive, given that you can't get your money back out of items in anywhere close to the amount you put into it

If the overcharge fraction was 1.0, then it would go like: On average you buy an item for 1000, it would have cost you 1500 in a normal shop (but you'd have to find it for sale first, and then you'd know exactly what you're getting) If you don't like it, you can get 380 gold back and lose 62% of your money

To take a more general case, for items with multiplier=1...

t5 chance = 1% t4 chance = 3% t3 chance = 7% t2 chance = 89%

Assuming you'd happily walk with an item above the tier you're aiming for, the chance of discarding an item due it it being too low a tier depends on the tier you want:

t3: 89% t4: 96% t5: 99%

So the expected number of items you'd expect to find yourself reselling to get one of the tier (any item of the tier, forget a SPECIFIC one) you want is:

t5: 100 t4: 25 t3: 9 Loggy the Clueless Goose — Yesterday at 7:34 PM The amount of gold required to buy this many items is pretty easy to calculate from the above table The amount you'd get back is (expected value resell modifier) where I'm assuming ~38% So buying and reselling and item is costing you (amount khadala charges for it) - (expected value resell modifier) Except we got the overcharged multipliers up there too...

In the case where khadala charges for it == expected value, the loss per item is just x(1 - resell) = 62% of what you paid I'm sleepy, but the overcharge multiplier could be thought of as a divisor to the item value In which case it's just (amount khadala charges for it) - ((amount khadala charges for it/overcharge multiplier) resell modifier) or cost - (cost resell)/overcharge

So throwing some numbers into that: Bastard Sword (cost=1654, overcharge=2.01, resell=0.38)

Buying and reselling loses you 1341g (I mean you can see this from the above, but the advantage of the above expressions is that playing thought experiments with different target overcharge values is possible)

t3 cost = 12071g t4 cost = 33532g t5 cost = 134130g okay, hopefully fixed it also probably goes without saying that doing this is a horrible idea for any tier except 5 due to the fact that the nonunique t3/4 weapons aren't that uncommon in shops and can be bought for a fraction of these prices Oh, and for the elusive t5 uniques? Triple that, it's only 33% to make a unique item instead of a nonunique Even if Khadala's shop restocked daily it would take weeks and weeks to even be allowed to buy enough items to do this, too 😛 Running some more extremes for funsies:

Dagger: Khadala Cost = 1514; Expected value = 2375.24; Times overcharged = 0.64

615g resell cost t3 = 5535 t4 = 15376 t5 = 61506

These numbers seem a bit more sensible? I dunno AC 7: Khadala Cost = 12900; Expected value = 2059.64; Times overcharged = 6.26 12116 resell cost (lol) t3 = 109,052g t4 = 302,923g t5 = 1,211,693g

If you told me that the expected gold loss for a t5 unique, 3,635,079g, was more gold than every player's income in the server's entire history combined, I would probably believe you Loggy the Clueless Goose — Yesterday at 7:54 PM I guess the useful takeaway here is that it is probably possible to put some numbers to the desired "how much gold should people expect to burn to get X" and run some calcs during seeding to make that happen Rather than the... thing... we have now 😛

b5635 commented 2 years ago

Re: Smuggler coins.

There's a few ideas I have for it - basically you can get it as a semi-rare drop while inside Neverwinter and from fighting the sword coast boys. But basically this is currency that you'd only use for gambling

I'd like to incorporate some Bloodsailor dudes too. I think if we can make a quest for the auction (to introduce players to this gambling mechanic AND reward them with some starting smuggler coins that they can use) that would be good as well.