Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Old May 2, 2015, 17:59   #1
Cold_Heart's Avatar
Join Date: Mar 2012
Posts: 141
Cold_Heart is on a distinguished road
Question [3.5.1] Random dice in item properties

3.5.1 object.txt, lines 23-30 (emphasis mine):

# Some fields accept randomized numbers of the form "10+2d3M4" where
# 10 is the non-variable base, 2d3 is a standard die roll, and
# M4 uses the m_bonus function to generate a number between 0 and
# 4 according to a normal distribution.  All three components are
# optional, and the number of dice is optional and assumed to be 1
# when not specified.  10+2d3M4 has the range 12-20.  10+M4 has the
# range 10-14.  10+2d3 has the range 12-16.  10+d3 has the range 11-13.
# 2d3, d3, M4, 2d3M4, and d3M4 are all acceptable as well.
And in the same file, lines 1213-1218 contain the following (emphasis mine):

A:40:75 to 100
But at the same time, my current run has:

d) a Ring of Speed <+15> {!*!*!*}
     Found lying on the floor in a vault at 3000 feet (level 60).
     +15 speed.
So my question is, how is +15 generated from 4+M6?
Cold_Heart is offline   Reply With Quote
Old May 3, 2015, 00:21   #2
Derakon's Avatar
Join Date: Dec 2009
Posts: 8,941
Derakon is on a distinguished road
Originally Posted by Cold_Heart View Post
So my question is, how is +15 generated from 4+M6?
Rings of speed specifically have a superboost that can send their pvals to theoretically unlimited values. They do the 4+m6 bonus, then flip a coin; if it's heads, they add 1 to the pval and flip again, etc., and stop when they get to tails. So your +15 ring had to pass, at bare minimum, 5 of those checks (1 in 32 odds).

I don't know how the code knows to apply a superboost to the item. It certainly doesn't apply to boots of speed, which are capped at a maximum of +10.
Derakon is online now   Reply With Quote
Old May 3, 2015, 00:56   #3
Vanilla maintainer
Nick's Avatar
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,860
Donated: $60
Nick will become famous soon enough
Originally Posted by Derakon View Post
I don't know how the code knows to apply a superboost to the item.
It's a special case - it checks the ring name, and if it's "Speed" does the superboost thing.
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote

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
Affixes that add dice CunningGabe v4 5 March 24, 2012 17:23
Dice game Antoine Idle chatter 8 November 30, 2011 21:04
Orome and Aiglos losing dice Hobbels Development 2 April 9, 2011 18:24
hit dice etc vorondil Vanilla 8 December 20, 2008 20:23
Steam - What is that number after my damage dice? ekolis Variants 2 December 31, 2007 03:51

All times are GMT +1. The time now is 17:56.

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