Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jSanne_GameServer
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 52)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -3108,6 +3108,11 @@
- public static int AUGMENTATION_MID_SKILL_CHANCE;
- public static int AUGMENTATION_HIGH_SKILL_CHANCE;
- public static int AUGMENTATION_TOP_SKILL_CHANCE;
- + // Augment Vip Chance
- + public static int AUGMENTATION_VIP_NG_SKILL_CHANCE;
- + public static int AUGMENTATION_VIP_MID_SKILL_CHANCE;
- + public static int AUGMENTATION_VIP_HIGH_SKILL_CHANCE;
- + public static int AUGMENTATION_VIP_TOP_SKILL_CHANCE;
- public static int AUGMENTATION_BASESTAT_CHANCE;
- // Augment glow
- public static int AUGMENTATION_NG_GLOW_CHANCE;
- @@ -3410,8 +3415,15 @@
- AUGMENTATION_MID_SKILL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationMidSkillChance", "30"));
- AUGMENTATION_HIGH_SKILL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationHighSkillChance", "45"));
- AUGMENTATION_TOP_SKILL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationTopSkillChance", "60"));
- +
- + /** augmentation Vip chance **/
- + AUGMENTATION_VIP_NG_SKILL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationVIPNGSkillChance", "15"));
- + AUGMENTATION_VIP_MID_SKILL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationVIPMidSkillChance", "30"));
- + AUGMENTATION_VIP_HIGH_SKILL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationVIPHighSkillChance", "45"));
- + AUGMENTATION_VIP_TOP_SKILL_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationVIPTopSkillChance", "60"));
- AUGMENTATION_BASESTAT_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationBaseStatChance", "1"));
- +
- /** augmentation glow **/
- AUGMENTATION_NG_GLOW_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationNGGlowChance", "0"));
- AUGMENTATION_MID_GLOW_CHANCE = Integer.parseInt(ENCHANTSetting.getProperty("AugmentationMidGlowChance", "40"));
- @@ -5199,6 +5211,22 @@
- {
- AUGMENTATION_TOP_SKILL_CHANCE = Integer.parseInt(pValue);
- }
- + else if(pName.equalsIgnoreCase("AugmentationVIPNGSkillChance"))
- + {
- + AUGMENTATION_VIP_NG_SKILL_CHANCE = Integer.parseInt(pValue);
- + }
- + else if(pName.equalsIgnoreCase("AugmentationVIPMidSkillChance"))
- + {
- + AUGMENTATION_VIP_MID_SKILL_CHANCE = Integer.parseInt(pValue);
- + }
- + else if(pName.equalsIgnoreCase("AugmentationVIPHighSkillChance"))
- + {
- + AUGMENTATION_VIP_HIGH_SKILL_CHANCE = Integer.parseInt(pValue);
- + }
- + else if(pName.equalsIgnoreCase("AugmentationVIPTopSkillChance"))
- + {
- + AUGMENTATION_VIP_TOP_SKILL_CHANCE = Integer.parseInt(pValue);
- + }
- else if(pName.equalsIgnoreCase("AugmentationBaseStatChance"))
- {
- AUGMENTATION_BASESTAT_CHANCE = Integer.parseInt(pValue);
- Index: config/head/enchant.properties
- ===================================================================
- --- config/head/enchant.properties (revision 50)
- +++ config/head/enchant.properties (working copy)
- @@ -87,6 +87,13 @@
- AugmentationMidSkillChance = 30
- AugmentationHighSkillChance = 45
- AugmentationTopSkillChance = 60
- +# --------------------------
- +# Augmentation Vip Chance -
- +# --------------------------
- +AugmentationVIPNGSkillChance = 15
- +AugmentationVIPMidSkillChance = 30
- +AugmentationVIPHighSkillChance = 45
- +AugmentationVIPTopSkillChance = 60
- # Chance to get a base stat
- # Default: 1
- AugmentationBaseStatChance = 1
- Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java (revision 50)
- +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestRefine.java (working copy)
- @@ -253,7 +253,7 @@
- player.destroyItem("RequestRefine", _gemstoneItemObjId, modifyGemstoneCount, null, false);
- // generate augmentation
- - targetItem.setAugmentation(AugmentationData.getInstance().generateRandomAugmentation(targetItem, lifeStoneLevel, lifeStoneGrade));
- + targetItem.setAugmentation(AugmentationData.getInstance().generateRandomAugmentation(player, targetItem, lifeStoneLevel, lifeStoneGrade));
- // finish and send the inventory update packet
- InventoryUpdate iu = new InventoryUpdate();
- Index: head-src/com/l2jfrozen/gameserver/datatables/xml/AugmentationData.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/datatables/xml/AugmentationData.java (revision 50)
- +++ head-src/com/l2jfrozen/gameserver/datatables/xml/AugmentationData.java (working copy)
- @@ -38,6 +38,7 @@
- import com.l2jfrozen.gameserver.model.L2Augmentation;
- import com.l2jfrozen.gameserver.model.L2Skill;
- import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
- +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jfrozen.gameserver.skills.Stats;
- import com.l2jfrozen.util.random.Rnd;
- @@ -443,12 +444,13 @@
- /**
- * Generate a new random augmentation
- *
- + * @param player
- * @param item
- * @param lifeStoneLevel
- * @param lifeStoneGrade
- * @return L2Augmentation
- */
- - public L2Augmentation generateRandomAugmentation(L2ItemInstance item, int lifeStoneLevel, int lifeStoneGrade)
- + public L2Augmentation generateRandomAugmentation(L2PcInstance player, L2ItemInstance item, int lifeStoneLevel, int lifeStoneGrade)
- {
- // Note that stat12 stands for stat 1 AND 2 (same for stat34 ;p )
- // this is because a value can contain up to 2 stat modifications
- @@ -466,7 +468,10 @@
- switch(lifeStoneGrade)
- {
- case 0:
- - skill_Chance = Config.AUGMENTATION_NG_SKILL_CHANCE;
- + if(player.isVip())
- + skill_Chance = Config.AUGMENTATION_VIP_NG_SKILL_CHANCE;
- + else
- + skill_Chance = Config.AUGMENTATION_NG_SKILL_CHANCE;
- if(Rnd.get(1, 100) <= Config.AUGMENTATION_NG_GLOW_CHANCE)
- {
- @@ -475,8 +480,12 @@
- break;
- case 1:
- - skill_Chance = Config.AUGMENTATION_MID_SKILL_CHANCE;
- + if(player.isVip())
- + skill_Chance = Config.AUGMENTATION_VIP_MID_SKILL_CHANCE;
- + else
- + skill_Chance = Config.AUGMENTATION_MID_SKILL_CHANCE;
- +
- if(Rnd.get(1, 100) <= Config.AUGMENTATION_MID_GLOW_CHANCE)
- {
- generateGlow = true;
- @@ -484,8 +493,12 @@
- break;
- case 2:
- - skill_Chance = Config.AUGMENTATION_HIGH_SKILL_CHANCE;
- + if(player.isVip())
- + skill_Chance = Config.AUGMENTATION_VIP_HIGH_SKILL_CHANCE;
- + else
- + skill_Chance = Config.AUGMENTATION_HIGH_SKILL_CHANCE;
- +
- if(Rnd.get(1, 100) <= Config.AUGMENTATION_HIGH_GLOW_CHANCE)
- {
- generateGlow = true;
- @@ -493,8 +506,12 @@
- break;
- case 3:
- - skill_Chance = Config.AUGMENTATION_TOP_SKILL_CHANCE;
- + if(player.isVip())
- + skill_Chance = Config.AUGMENTATION_VIP_TOP_SKILL_CHANCE;
- + else
- + skill_Chance = Config.AUGMENTATION_TOP_SKILL_CHANCE;
- +
- if(Rnd.get(1, 100) <= Config.AUGMENTATION_TOP_GLOW_CHANCE)
- {
- generateGlow = true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement