Jump to content
  • 0

[ROverhaul] trying to change attack formula


andybe

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

hi,

I'm working on a stats overhaul and I'm trying to change the formular for the players attack value.

 

what I'm anticipating :

 

final attack = watk* batk/100

 

instead of the currently in place

final attack = watk+batk

 

from what I understand this should be the place where weapon attack meets base attack:

// ------ ATTACK CALCULATION ------

	// Base batk value is set in status_calc_misc //ROverhaul
#ifndef RENEWAL
	// !FIXME: Weapon-type bonus (Why is the weapon_atk bonus applied to base attack?)
	if (sd->status.weapon < MAX_WEAPON_TYPE && sd->weapon_atk[sd->status.weapon])
		base_status->batk += sd->weapon_atk[sd->status.weapon];

	// Absolute modifiers from passive skills
	if((skill=pc_checkskill(sd,BS_HILTBINDING))>0) //Dontforgetme
		base_status->batk += 4;

Note: I use PRERE defines

 

but any change I make to this formular seems to have no effect at all :/

Edited by andybe
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...