Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old May 11, 2010, 03:29   #1
Nate
Rookie
 
Join Date: Mar 2010
Posts: 19
Nate is on a distinguished road
Ring of speed range of values

Wondering what the range of values for ring of speed is. I see d5M5 in obj.txt giving a range of +1 to +10 but something else must be going on since I see many rings greater than +10 in the ladder. +18 is the highest I've seen for v3.1.2. Is that a hard cap? Thank you.

-Nate
Nate is offline   Reply With Quote
Old May 11, 2010, 03:59   #2
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,546
Derakon is on a distinguished road
A ring of speed has a base modifier of 1d5 + a dlvl-dependent bonus of up to 5. After that, the game flips a coin. If it comes up heads, the modifier is increased by one and the coin is flipped again. It keeps repeating this until the coin comes up tails, with no limit. A ring of speed +18 would have to pass that coin flip check a minimum of 8 times (at odds of 1 in 256) and a maximum of 16 times (at odds of 1 in 65536).
Derakon is offline   Reply With Quote
Old May 11, 2010, 04:16   #3
Nate
Rookie
 
Join Date: Mar 2010
Posts: 19
Nate is on a distinguished road
Thank you

Thank you for the info. Do you know in which source file the coin flipping code appears?
Nate is offline   Reply With Quote
Old May 11, 2010, 04:36   #4
Sirridan
Knight
 
Sirridan's Avatar
 
Join Date: May 2009
Posts: 560
Sirridan is on a distinguished road
In theory, you can have a speed ring with a value in the hundreds which may go outside the bounds of the energy speed array, although I'm not sure if there is a check for that (there probably is). Although you're more likely to find ringil and the one ring on dlvl one.

Anyway, the source you're looking for is:

trunk/src/object/obj-make.c
line 700

which is:

Code:
while (randint0(100) < 50) o_ptr->pval++;
Edit:
Chance of a +100 speed ring is somewhere on the order of 1x10^-25 or somesuch
Sirridan is offline   Reply With Quote
Old May 11, 2010, 15:48   #5
kaypy
Swordsman
 
Join Date: May 2009
Posts: 294
kaypy is on a distinguished road
Quote:
Originally Posted by Sirridan View Post
I'm not sure if there is a check for that (there probably is).
Easy way to see: Fires up wizard mode...

Total speed maxes out at +89, so the second RoS+32767 is a waste of space 8-)

edit: oops, having actually tried wearing it (my first attempt used +255), the +32767 will overflow your baseline speed down to the negative cap (-110)

Last edited by kaypy; May 11, 2010 at 15:53.
kaypy is offline   Reply With Quote
Old May 11, 2010, 19:53   #6
Nemesis
Adept
 
Join Date: Jul 2009
Posts: 137
Nemesis is on a distinguished road
I read somewhere that the most extreme Ring of Speed ever known to have been found in Angband had a bonus of fifty something. That bonus was however negative.

I recall reading in the same text that twenty something was the highest positive bonus ever found.
Nemesis is offline   Reply With Quote
Old May 17, 2010, 20:05   #7
nppangband
NPPAngband Maintainer
 
Join Date: Dec 2008
Location: Stat Gain, Angband
Posts: 926
nppangband is on a distinguished road
About 7 years ago, I found a ring of speed (+23) while playing NPPAngband 0.1.1 That was the first NPPAngband release, and it was virtually identical to Vanilla with a couple minor patches, & nothing that would affect the creation of speed rings. That one might be the record.

http://angband.oook.cz/ladder-show.php?id=1420
nppangband is offline   Reply With Quote
Old May 17, 2010, 20:51   #8
APWhite
Adept
 
APWhite's Avatar
 
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
APWhite is on a distinguished road
Quote:
Originally Posted by nppangband View Post
About 7 years ago, I found a ring of speed (+23) while playing NPPAngband 0.1.1 That was the first NPPAngband release, and it was virtually identical to Vanilla with a couple minor patches, & nothing that would affect the creation of speed rings. That one might be the record.

http://angband.oook.cz/ladder-show.php?id=1420
If you want, I could program the borg to play deep dungeon and store all the rings of speed in the home and swap out the slowest rings.

Given enough time, the borg will find a large number of rings stored.
APWhite is offline   Reply With Quote
Old October 28, 2010, 03:08   #9
Nate
Rookie
 
Join Date: Mar 2010
Posts: 19
Nate is on a distinguished road
How does the dlvl-dependent bonus work? Does it reach a fixed value of 5 at some point? Or is 5 just more likely to come up at dlvl 100 vs dlvl 75? Is dlvl 127 better than dlvl 100 for this bonus? Thank you!
Nate is offline   Reply With Quote
Old October 28, 2010, 03:33   #10
PowerDiver
Prophet
 
Join Date: Mar 2008
Posts: 2,712
PowerDiver is on a distinguished road
Quite recently, bron mentioned =speed+23. Read the notes from http://angband.oook.cz/ladder-show.php?id=10647
PowerDiver is offline   Reply With Quote
Reply


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

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 Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stealth or speed? Sirridan Vanilla 6 March 11, 2010 06:33
Target in range indicator? ChodTheWacko Vanilla 1 November 28, 2009 17:14
r1487 - Stats values randomly exchanged. marteo Vanilla 5 July 15, 2009 05:34
Now that I have speed, what to do? Big Al AAR 3 September 22, 2008 20:49
Speed Zero Vanilla 9 January 9, 2008 03:21


All times are GMT +1. The time now is 00:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.