Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Old April 7, 2014, 01:32   #1
Join Date: Oct 2009
Posts: 19
tynan is on a distinguished road
Understanding the 'A' line in p_class.txt

Okay, so the Attack data line has three values, the first is the max number of attacks the class can have, the second is the "minimum weight for calculating number of attacks", and third is "multiplier for attack calculations".
The first value was easy to change and see immediate game effects. It seems to have a capped value at 8 or so. The next two are not so clearly explained or understood, but here's what I've learned:
The multiplier (3rd value) only works up to a value of 5, any higher than that appears to have no effect. The lower it is, the less blows/round the char has.
The minimum weapon weight (2nd value) seems to be the point at which blows/round begin to get slower. So if this is set at 2 pounds, then only extremely light weapons (daggers/whips) will be at the max blows/round. Progressively heavier weapons decrease the blows.
If someone could help clarify this, or if it's completely wrong, more details appreciated. Thanks
tynan is offline   Reply With Quote
Old April 7, 2014, 03:04   #2
Derakon's Avatar
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
The system is complicated, unfortunately. It may help to read player/calcs.c, specifically the comments surrounding the blows_table array. Basically some math is done using the values from p_class.txt, and the result of that math is used to look up a value in a table. As a result, there's no clear formula to use to derive blows given the player's class and stats.
Derakon 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
Help with editing p_class Malatar Vanilla 13 October 30, 2012 20:07
Line of Site Spacebux Development 3 May 3, 2011 23:56
Understanding 'Shoot' values in Character Screen krugar Vanilla 3 September 8, 2010 15:48
P_class starting equipment change? Jabberwocky Vanilla 4 June 1, 2009 23:17
question on p_class.txt format Reus Development 2 April 10, 2009 07:15

All times are GMT +1. The time now is 01:02.

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