Forráskód Böngészése

BETA: Implementing new config to allow augmenting pvp items.

Rumen Nikiforov 12 éve
szülő
commit
2d8dacb691

+ 4 - 0
L2J_Server_BETA/dist/game/config/Character.properties

@@ -421,6 +421,10 @@ AugmentationTopGlowChance = 100
 # Default: 6656,6657,6658,6659,6660,6661,6662,8191,10170,10314,13740,13741,13742,13743,13744,13745,13746,13747,13748,14592,14593,14594,14595,14596,14597,14598,14599,14600,14664,14665,14666,14667,14668,14669,14670,14671,14672,14801,14802,14803,14804,14805,14806,14807,14808,14809,15282,15283,15284,15285,15286,15287,15288,15289,15290,15291,15292,15293,15294,15295,15296,15297,15298,15299,16025,16026,21712,22173,22174,22175
 AugmentationBlackList = 6656,6657,6658,6659,6660,6661,6662,8191,10170,10314,13740,13741,13742,13743,13744,13745,13746,13747,13748,14592,14593,14594,14595,14596,14597,14598,14599,14600,14664,14665,14666,14667,14668,14669,14670,14671,14672,14801,14802,14803,14804,14805,14806,14807,14808,14809,15282,15283,15284,15285,15286,15287,15288,15289,15290,15291,15292,15293,15294,15295,15296,15297,15298,15299,16025,16026,21712,22173,22174,22175
 
+# Allows alternative augmentation of PvP items.
+# Default: False
+AltAllowAugmentPvPItems = false
+
 # ---------------------------------------------------------------------------
 # Karma
 # ---------------------------------------------------------------------------

+ 2 - 1
L2J_Server_BETA/java/com/l2jserver/Config.java

@@ -1022,6 +1022,7 @@ public final class Config
 	public static int AUGMENTATION_BASESTAT_CHANCE;
 	public static int AUGMENTATION_ACC_SKILL_CHANCE;
 	public static int[] AUGMENTATION_BLACKLIST;
+	public static boolean ALT_ALLOW_AUGMENT_PVP_ITEMS;
 	public static double HP_REGEN_MULTIPLIER;
 	public static double MP_REGEN_MULTIPLIER;
 	public static double CP_REGEN_MULTIPLIER;
@@ -1635,7 +1636,7 @@ public final class Config
 			}
 			
 			Arrays.sort(AUGMENTATION_BLACKLIST);
-			
+			ALT_ALLOW_AUGMENT_PVP_ITEMS = Boolean.parseBoolean(Character.getProperty("AltAllowAugmentPvPItems", "false"));
 			ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanBeKilledInPeaceZone", "false"));
 			ALT_GAME_KARMA_PLAYER_CAN_SHOP = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanShop", "true"));
 			ALT_GAME_KARMA_PLAYER_CAN_TELEPORT = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanTeleport", "true"));

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/network/clientpackets/AbstractRefinePacket.java

@@ -332,7 +332,7 @@ public abstract class AbstractRefinePacket extends L2GameClientPacket
 		{
 			return false;
 		}
-		if (item.isPvp())
+		if (item.isPvp() && !Config.ALT_ALLOW_AUGMENT_PVP_ITEMS)
 		{
 			return false;
 		}

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/network/clientpackets/RequestConfirmCancelItem.java

@@ -67,7 +67,7 @@ public final class RequestConfirmCancelItem extends L2GameClientPacket
 			return;
 		}
 		
-		if (item.isPvp())
+		if (item.isPvp() && !Config.ALT_ALLOW_AUGMENT_PVP_ITEMS)
 		{
 			activeChar.sendPacket(SystemMessageId.THIS_IS_NOT_A_SUITABLE_ITEM);
 			return;