浏览代码

Damage count on rebirthed mobs is now reset. (Valaris)
Changed exp_calc_type to 1, as type 0 seems to be based off old rumour, and to compliment the update to mob_revive.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13264 54d463be-8e91-2dee-dedb-b68131a5f0ec

L0ne_W0lf 16 年之前
父节点
当前提交
7536205e10
共有 4 个文件被更改,包括 6 次插入1 次删除
  1. 1 0
      Changelog-Trunk.txt
  2. 2 0
      conf/Changelog.txt
  3. 1 1
      conf/battle/exp.conf
  4. 2 0
      src/map/mob.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2008/10/06
+	* Rev. 13264 Damage count on rebirthed mobs is now reset. (Valaris)  [L0ne_W0lf]
 	* Rev. 13263 voided out clif_blown as per Valaris' instruction.  [L0ne_W0lf]
 	* Rev. 13262 SC_WEIGHT50 and 90 are no longer removed on death. (bugreport:2316) [L0ne_W0lf]
 2008/10/04

+ 2 - 0
conf/Changelog.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2008/10/06
+	* Rev. 13264 Changed exp_calc_type to 1, as type 0 seems to be based off old rumour, and to compliment the update to mob_revive. [L0ne_W0lf]
 2008/10/02
 	* Rev. 13253 Modified homunculus auto-vapor setting to yes. (bugreport:2298) [L0ne_W0lf]
 2008/09/11

+ 1 - 1
conf/battle/exp.conf

@@ -41,7 +41,7 @@ max_exp_gain_rate: 0
 // 1 = uses damage given / max_hp as damage ratio
 // NOTE: Using type 1 disables the bonus where the first attacker gets 
 //       his share of the exp doubled when multiple people attack the mob.
-exp_calc_type: 0
+exp_calc_type: 1
 
 // Experience increase per attacker. That is, every additional attacker to the
 // monster makes it give this much more experience

+ 2 - 0
src/map/mob.c

@@ -2380,6 +2380,8 @@ void mob_revive(struct mob_data *md, unsigned int hp)
 	md->next_walktime = tick+rand()%50+5000;
 	md->last_linktime = tick;
 	md->last_pcneartime = 0;
+	memset(md->dmglog, 0, sizeof(md->dmglog));	// Reset the damage done on the rebirthed monster, otherwise will grant full exp + damage done. [Valaris] 
+	md->tdmg = 0;
 	if (!md->bl.prev)
 		map_addblock(&md->bl);
 	clif_spawn(&md->bl);