Преглед изворни кода

* Homunculus will no longer auto-vaporize on master death.
- Added config option to allow for this to be turned on or off.


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

L0ne_W0lf пре 17 година
родитељ
комит
cce663f625
5 измењених фајлова са 8 додато и 1 уклоњено
  1. 2 0
      Changelog-Trunk.txt
  2. 3 0
      conf/battle/homunc.conf
  3. 1 0
      src/map/battle.c
  4. 1 0
      src/map/battle.h
  5. 1 1
      src/map/pc.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ 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/07/04
+	* Rev. 12911 Homunculus will no longer auto-vaporize on master death. [L0ne_W0lf]
+	- Added config option to allow for this to be turned on or off.
 	* Added missing 'E' logs to mail system [Lupus]
 2008/07/03
 	* Removed aspd penalty from Free Cast since tests show it's not there,

+ 3 - 0
conf/battle/homunc.conf

@@ -46,3 +46,6 @@ homunculus_show_growth: no
 
 // If a monster is killed only by homunculus, can autoloot works?
 homunculus_autoloot: yes
+
+// Should homunculii Vaporize when Master dies?
+homunculus_auto_vapor: no

+ 1 - 0
src/map/battle.c

@@ -3702,6 +3702,7 @@ static const struct _battle_data {
 	{ "auction_feeperhour",                 &battle_config.auction_feeperhour,              12000,  0,      INT_MAX,        },
 	{ "auction_maximumprice",               &battle_config.auction_maximumprice,            500000000, 0,   MAX_ZENY,       },
 	{ "gm_viewequip_min_lv",                &battle_config.gm_viewequip_min_lv,             0,      0,      99,             },
+	{ "homunculus_auto_vapor",              &battle_config.homunculus_auto_vapor,           0,      0,      1,              },
 };
 
 

+ 1 - 0
src/map/battle.h

@@ -452,6 +452,7 @@ extern struct Battle_Config
 	int auction_feeperhour;
 	int auction_maximumprice;
 	int gm_viewequip_min_lv;
+	int homunculus_auto_vapor; //Keep Homunculus from Vaporizing when master dies. [L0ne_W0lf]
 } battle_config;
 
 void do_init_battle(void);

+ 1 - 1
src/map/pc.c

@@ -4958,7 +4958,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
 			pet_unlocktarget(sd->pd);
 	}
 
-	if(sd->status.hom_id > 0)	//orn
+	if(sd->status.hom_id > 0 && battle_config.homunculus_auto_vapor)	//orn
 		merc_hom_vaporize(sd, 0);
 
 	// Leave duel if you die [LuzZza]