فهرست منبع

Increased Pet decay delay to 24 hours (fixes #2949)

KenM 16 سال پیش
والد
کامیت
69f2bc9002
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PetInstance.java

+ 3 - 2
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PetInstance.java

@@ -81,7 +81,8 @@ public class L2PetInstance extends L2Summon
 	/** The Experience before the last Death Penalty */
 	private long _expBeforeDeath = 0;
 	private static final int FOOD_ITEM_CONSUME_COUNT = 5;
-
+	private static final int PET_DECAY_DELAY = 86400000; // 24 hours
+	
     public final L2PetData getPetData()
     {
         if (_data == null)
@@ -488,7 +489,7 @@ public class L2PetInstance extends L2Summon
 		if (!super.doDie(killer,true))
 			return false;
 		stopFeed();
-		DecayTaskManager.getInstance().addDecayTask(this,1200000);
+		DecayTaskManager.getInstance().addDecayTask(this, PET_DECAY_DELAY);
 		deathPenalty();
 		return true;
 	}