Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old July 28, 2012, 02:25   #1
Patashu
Knight
 
Patashu's Avatar
 
Join Date: Jan 2008
Posts: 526
Patashu is on a distinguished road
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
Patashu is offline   Reply With Quote
Old July 29, 2012, 15:45   #2
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
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
Magnate 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
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


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


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