Jump to content

Disable empire damage bonus


Recommended Posts

  • Gold
Posted (edited)

The player receives an extra bonus damage in his empire when fighting other empire players.
 -To disable this:
@ common/service. or CommonDefines.h:

Add:

#define DISABLE_EMPIRE_DAMAGE_BONUS

@ game/char_battle.cpp

Search for:

			int iEmpire = pAttacker->GetEmpire();
			long lMapIndex = pAttacker->GetMapIndex();
			int iMapEmpire = SECTREE_MANAGER::instance().GetEmpireFromMapIndex(lMapIndex);

			if (iEmpire && iMapEmpire && iEmpire != iMapEmpire)
			{
				dam = dam * 9 / 10;
			}

And replace it with:

#ifndef DISABLE_EMPIRE_DAMAGE_BONUS
			int iEmpire = pAttacker->GetEmpire();
			long lMapIndex = pAttacker->GetMapIndex();
			int iMapEmpire = SECTREE_MANAGER::instance().GetEmpireFromMapIndex(lMapIndex);

			if (iEmpire && iMapEmpire && iEmpire != iMapEmpire)
			{
				dam = dam * 9 / 10;
			}
#endif

 

Edited by MrQuin
  • Metin2 Dev 3
  • Love 1
  • Love 1
  • Good 3

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.