Jump to content
  • 0

How to change EDP got additional damage to all enemies


GoldRoger

Question

3 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  897
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

I see nothing in the code that would make it not work on boss monsters. I guess just the tooltip in the client is incorrect?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   0
  • Joined:  03/19/18
  • Last Seen:  

When im attacking mvp..the damage is low with edp

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  897
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

Renewal or pre-renewal?

battle.cpp

#ifdef RENEWAL
		if (sc->getSCE(SC_EDP)) {
			switch(skill_id) {
				// Renewal: Venom Splasher, Meteor Assault, Grimtooth and Venom Knife ignore EDP
				case TF_SPRINKLESAND:
				case AS_SPLASHER:
				case ASC_METEORASSAULT:
				case AS_GRIMTOOTH:
				case AS_VENOMKNIFE:
					break; // skills above have no effect with EDP

				default: // fall through to apply EDP bonuses
					// Renewal EDP formula [helvetica]
					// weapon atk * (2.5 + (edp level * .3))
					// equip atk * (2.5 + (edp level * .3))
					ATK_RATE(wd->weaponAtk, wd->weaponAtk2, 250 + (sc->getSCE(SC_EDP)->val1 * 30));
					ATK_RATE(wd->equipAtk, wd->equipAtk2, 250 + (sc->getSCE(SC_EDP)->val1 * 30));
					break;
			}
		}
#endif

This is the renewal code in current rAthena. I don't see any check for MVP/boss here, seems to be like it would always multiply the damage. Maybe your code is different? You could debug into it from here and see if it reaches the code and what happens to the damage.

 

For pre-renewal, the code is also in battle.cpp:

		// EDP bonus damage
		// This has to be applied after mastery bonuses but still before the elemental extra damage
		if (sc->getSCE(SC_EDP))
			wd->damage += (wd->damage * sc->getSCE(SC_EDP)->val3) / 100;

 

Link to comment
Share on other sites

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...