Angband Forums > AAR This week I *DID* find
 Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 June 4, 2018, 15:16 #1 PowerWyrm Veteran     Join Date: Apr 2008 Posts: 2,406 This week I *DID* find Code: ```l) the Pair of Iron Shod Boots 'Avanc' [4,+18] <+14> Dropped by a blue yeek at 100 feet (level 2) +14 speed. Cannot be harmed by acid, fire. Slows your metabolism.``` Ok what's the chance of getting this at 100ft from a blue yeek??? Let's look at the code... Base level is 2. First we try to generate a base item of level 2. Iron Shod Boots have a base depth of 5, which means that you must pass the item boost check (1/20 chance). Then you need to generate Iron Shod Boots explicitely out of all possible combinations of items at depth 5. Let's just say all items are Iron Shod Boots and keep the allocation chance of 20 for that item in object.txt (1/5 chance). We're already at 1/100 chance of getting some basic Iron Shod Boots... We only get one roll at making the object (not a "good" drop). We apply magic, allowing artifacts but not getting extra rolls at it, which means we have to pass both "good" and "great" rolls for the object. At level 2, the chance of getting a good object is 35% and the chance of getting a great object is (fixed at) 30%. That's roughly a 10% chance of getting a roll at creating an artifact. So we're now at 1/1000 chance of getting some artifact Iron Shod Boots... Now we browse the list of artifacts and find one that matches the tval/sval pair of our base item. It must now pass the different artifact checks: depth and rarity roll. I open the "randart.log" file to check these values for our artifact boots 'Avanc': min depth is 47, alloc prob is 12. So that's a 1/8 chance of passing the rarity roll and a (47-2)*2= 1/90 chance of passing the depth check. Result: the chance of generating that artifact is 1/720000. Without taking into account the chance of getting Iron Shod Boots from the pool of all level 5 items... Chance of seeing that happen again? Probably never... __________________ PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
 June 4, 2018, 16:40 #2 Derakon Prophet     Join Date: Dec 2009 Posts: 8,496 Is the depth check really 1 in (depth disparity * 2)? Are you sure it's not 1 in (depth disparity ^ 2)? That's one hell of a find either way.

 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 Sky AAR 70 May 24, 2018 21:41 TJS AAR 5 June 25, 2010 23:25 nppangband Variants 17 January 31, 2010 19:55 Eamonite AAR 13 December 15, 2008 16:57 The Sparrow AAR 5 March 27, 2008 07:51

All times are GMT +1. The time now is 18:28.