Explorar o código

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

KenM %!s(int64=16) %!d(string=hai) anos
pai
achega
69f2bc9002

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