ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Jun 24, 2018 2:50 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: C:B:num:wgt:mul?
PostPosted: Tue Jan 01, 2013 11:28 am 
Offline
Uruivellas

Joined: Tue Dec 13, 2005 12:35 am
Posts: 704
The major classes in p_info.txt all have lines that look like this:

C:B:num:wgt:mul

e.g. for Mages

C:B:4:40:2

What is this? Some source code diving indicates it has to do with the number of blows a character gets with weapons of a certain weight, but I'm not sure exactly what the effect is (or if the code isn't dead). Anyone know more about this?


Top
 Profile  
 
 Post subject: Re: C:B:num:wgt:mul?
PostPosted: Tue Jan 01, 2013 3:29 pm 
Offline
Spiderkin

Joined: Sat Mar 18, 2006 12:48 pm
Posts: 482
AFICT the values end up being used here:

Code:
/* Returns the blow information based on class */
void analyze_blow(int *num, int *wgt, int *mul)
{
        *num = cp_ptr->blow_num;
        *wgt = cp_ptr->blow_wgt;
        *mul = cp_ptr->blow_mul;

        /* Count bonus abilities */
        (*num) += get_extra_blows_ability();
}


If I understand the code in xtra1.c correctly,

  • "num" is the maximum number of (base) blows. (Before bonuses.)
  • "wgt" is used as a limiting factor for STR requirements per weight.
  • "mul" is used for scaling.

and these are used (indirectly, scaled) for indexing into the blows_table to calculate determine the final number of blows.


Top
 Profile  
 
 Post subject: Re: C:B:num:wgt:mul?
PostPosted: Tue Jan 01, 2013 4:36 pm 
Offline
Uruivellas

Joined: Tue Dec 13, 2005 12:35 am
Posts: 704
Thanks! And ick, I thought T2 was mostly free of such things. No wonder Mages are incurably bad at melee.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group