|
|
#1 |
|
Adept
Join Date: Jan 2008
Posts: 164
![]() |
Is this 'Slow Monster probability' spoiler correct?
GF_DO_SLOW with pow 20
if already slowed, the power is the new value it'd take on e.g. slow once, slowing more is much easier resist_chance = r_ptr->level + 40 - (v / 2); if (randint0(100) < resist_chance) return (TRUE); uniques roll twice ------------==============------------------ >>> for i in range (0, 71, 5): ... print "{0}: {1} chance, {2} for a unique".format(i, 1.0-(i+30.0)/100.0, ( (100.0-i-30.0)/100.0)**2) ... 0: 0.7 chance, 0.49 for a unique 5: 0.65 chance, 0.4225 for a unique 10: 0.6 chance, 0.36 for a unique 15: 0.55 chance, 0.3025 for a unique 20: 0.5 chance, 0.25 for a unique 25: 0.45 chance, 0.2025 for a unique 30: 0.4 chance, 0.16 for a unique 35: 0.35 chance, 0.1225 for a unique 40: 0.3 chance, 0.09 for a unique 45: 0.25 chance, 0.0625 for a unique 50: 0.2 chance, 0.04 for a unique 55: 0.15 chance, 0.0225 for a unique 60: 0.1 chance, 0.01 for a unique 65: 0.05 chance, 0.0025 for a unique 70: 0.0 chance, 0.0 for a unique |
|
|
|
|
|
#2 |
|
Angband Devteam member
|
It's a while since I looked at the mon-timed code, but that looks about right, yes.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wand of slow monster bug? | BlueFish | Vanilla | 7 | September 26, 2011 23:53 |
| Wands of Slow Monster are awesome | Derakon | Development | 19 | July 22, 2011 01:24 |
| Hit probability calculation | Ycombinator | Vanilla | 8 | May 27, 2010 23:11 |
| Question regarding good/great probability | ChodTheWacko | Vanilla | 4 | October 3, 2008 19:28 |
| Probability of using Rods of Teleport Other? | Dragonboneman | Vanilla | 9 | February 7, 2008 19:55 |