Angband Forums Is this 'Slow Monster probability' spoiler correct?
 User Name Remember Me? Password
 Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

 Thread Tools Display Modes
 July 28, 2012, 02:25 #1 Patashu 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
 July 29, 2012, 15:45 #2 Magnate Angband Devteam member   Join Date: May 2007 Location: London, UK Posts: 4,802 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 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     v4     Development     ToME     Variants     Competition The real world     Idle chatter     Oook!

 Similar Threads Thread Thread Starter Forum Replies Last Post BlueFish Vanilla 7 September 26, 2011 23:53 Derakon Development 19 July 22, 2011 01:24 Ycombinator Vanilla 8 May 27, 2010 23:11 ChodTheWacko Vanilla 4 October 3, 2008 19:28 Dragonboneman Vanilla 9 February 7, 2008 19:55

All times are GMT +1. The time now is 05:09.

 Contact Us - Angband.oook.cz - Archive - Top