[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 390: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 120: preg_filter(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 120: preg_filter(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 120: preg_filter(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 120: preg_filter(): The /e modifier is no longer supported, use preg_replace_callback instead
QCF Design Community • View topic - Ok, so how does the shop algorithm actually work?


Ok, so how does the shop algorithm actually work?

All things Desktop Dungeons

Re: Ok, so how does the shop algorithm actually work?

Postby Tinker on Wed Nov 25, 2015 7:08 pm

"Thinker", just without the "ache".
User avatar
Tinker
 
Posts: 2000
Joined: Fri Oct 31, 2014 8:51 am

Re: Ok, so how does the shop algorithm actually work?

Postby Gakato on Wed Nov 25, 2015 8:13 pm

Well it is not that easy, because you would also need the order in which the items are picked, because the remaining items are sliding accordingly. So I guess it is easier to just let someone report the item pool. ;)

Anyway, for the curious:
Gakato
 
Posts: 118
Joined: Mon Dec 30, 2013 10:31 pm

Re: Ok, so how does the shop algorithm actually work?

Postby Darvin on Wed Nov 25, 2015 8:31 pm

User avatar
Darvin
 
Posts: 4355
Joined: Thu Jun 02, 2011 1:44 am

Re: Ok, so how does the shop algorithm actually work?

Postby Nurator on Thu Nov 26, 2015 8:38 am

Are you sure, you dont want to study mathematics? :D You really sound like mathematicians here^^
Nurator
 
Posts: 543
Joined: Sat Mar 24, 2012 2:02 pm

Re: Ok, so how does the shop algorithm actually work?

Postby Tinker on Thu Nov 26, 2015 12:52 pm

So, I took today's Daily (26 Nov, dwarf bloodmage on halls of steel) to test the algorithm. I have no intention to hack dailies or anything, it's just since today is probably not very difficult, any spoilers about shop pool will likely not hurt anyone's enjoyment.

I took preps in a way that they do not impact shop spawn (I took first preps; preps in red impact shop spawn):
Slot #1: Extra Mana Boosters / Flame Magnet / Apothecary
Slot #2: Jehora Jeheyu / Wicked Guitar / Elite Items
Slot #3: Bear Mace / Compression Seal / Mystera Annur
Slot #4: Smuggler's Den / Agnostic's Collar / Fewer Glyphs

The items I got are:


So, there were three preparations that could potentially impact shop pool. Slot # 2 had option for Elite Items and for Wicked Guitar; slot # 4 had an option for Agnostic's Collar.

I think that preparing Elite Items in Slot #2 and not preparing the Collar in Slot #4 would swap items as follows:


Now, the more tricky part is the item preparations. Because depending on the RNG rounds, it may alter other items. So my assumption of preparing the Wicked Guitar in Slot #2 and not preparing the Collar in slot #4:


If the Collar is prepared in slot #4 and neither the Guitar nor Elite items in Slot #2, change is pretty much as above, except all last 3 changes become "should" instead of "may".

If both item preps are taken, then:


If Elite Items are taken with Agnostic's Collar, then list should slide up:

Now. If anyone cares to confirm / deny some of these, it would be much appreciated! ;)
"Thinker", just without the "ache".
User avatar
Tinker
 
Posts: 2000
Joined: Fri Oct 31, 2014 8:51 am

Re: Ok, so how does the shop algorithm actually work?

Postby William on Thu Nov 26, 2015 1:11 pm

@Tinker I wish I had taken more notice of what my shops had. I took the Agnostic collar and no other preps that would affect shops. I definitely had Wicked Guitar in my shop (I remember wishing I had used it for more XP). I also remember getting Venom Dagger, Badge of Honor, Fine Sword (Bought those three for conversion fodder) and Blue Bead (I bought that one to use). I am reasonably sure Pendant of Health was there but don't recall whether Pendant of Mana was there. There was no Zot and no Yendor. I bought out all shops except one, and I think that was Dwarven Gauntlets. Hopefully my memory isn't failing me to badly. I have done SO many Hard Gaan-Telet runs recently that the preps all flow together.
"Because Goatperson"
User avatar
William
 
Posts: 719
Joined: Tue Jun 16, 2015 10:52 am
Location: Port Elizabeth, South Africa

Re: Ok, so how does the shop algorithm actually work?

Postby Gakato on Thu Nov 26, 2015 5:01 pm

Gakato
 
Posts: 118
Joined: Mon Dec 30, 2013 10:31 pm

Re: Ok, so how does the shop algorithm actually work?

Postby ~'(^ + ^)'~ on Thu Nov 26, 2015 6:22 pm

So, to help out in this, I prepped both Elite Items and Agnostic's Collar. I don't think spoiler tags are needed, so anyway I just noticed Tinker got this right "somewhat":

I got today,

Elven Boots
Mage Plate
Battlemage Ring
Keg of Mana
Fine Sword
Piercing Wand
Dwarven Gauntlets
Wicked Guitar

It is exactly as per what you predicted for just prepping Elite items alone. I didn't read the posts before this so I don't know how the whole thing works. But I can see the first 4 Basic Items you had them replaced with Elite items of the same index. As for the last 4 items, I don't understand how a Q4 becomes a B4, a Q11 becomes a Q3 and so on.
User avatar
~'(^ + ^)'~
 
Posts: 774
Joined: Wed Mar 05, 2014 2:51 pm

Re: Ok, so how does the shop algorithm actually work?

Postby Tinker on Thu Nov 26, 2015 6:41 pm

"Thinker", just without the "ache".
User avatar
Tinker
 
Posts: 2000
Joined: Fri Oct 31, 2014 8:51 am

Re: Ok, so how does the shop algorithm actually work?

Postby ~'(^ + ^)'~ on Thu Nov 26, 2015 6:45 pm

@Tinker:

Ok, makes sense now. So basically just re-arranging the lists and using back the same "overall index" from what you got today (with no preps).
User avatar
~'(^ + ^)'~
 
Posts: 774
Joined: Wed Mar 05, 2014 2:51 pm

PreviousNext

Return to Desktop Dungeons

Who is online

Users browsing this forum: No registered users and 27 guests