Removed unusable accessory augment chances.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -112,7 +112,8 @@ public class AugmentationData
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + _augmentationChances.size() + " augmentations.");
|
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + _augmentationChances.size() + " augmentations.");
|
||||||
LOGGER.info(getClass().getSimpleName() + ": Loaded: " + _augmentationChancesAcc.size() + " accessory augmentations.");
|
// Accessories disabled for Classic.
|
||||||
|
// LOGGER.info(getClass().getSimpleName() + ": Loaded: " + _augmentationChancesAcc.size() + " accessory augmentations.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -417,98 +418,18 @@ public class AugmentationData
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Config.RETAIL_LIKE_AUGMENTATION_ACCESSORY)
|
// Accessories disabled for Classic.
|
||||||
{
|
/*
|
||||||
final DocumentBuilderFactory factory3 = DocumentBuilderFactory.newInstance();
|
* if (Config.RETAIL_LIKE_AUGMENTATION_ACCESSORY) { final DocumentBuilderFactory factory3 = DocumentBuilderFactory.newInstance(); factory3.setValidating(false); factory3.setIgnoringComments(true); final File aFile3 = new File(Config.DATAPACK_ROOT +
|
||||||
factory3.setValidating(false);
|
* "/data/stats/augmentation/retailchances_accessory.xml"); if (aFile3.exists()) { Document aDoc = null; try { aDoc = factory3.newDocumentBuilder().parse(aFile3); } catch (Exception e) { e.printStackTrace(); return; } String aWeaponType = null; int aStoneId = 0; int aVariationId = 0; int
|
||||||
factory3.setIgnoringComments(true);
|
* aCategoryChance = 0; int aAugmentId = 0; float aAugmentChance = 0; for (Node l = aDoc.getFirstChild(); l != null; l = l.getNextSibling()) { if (l.getNodeName().equals("list")) { NamedNodeMap aNodeAttributes = null; for (Node n = l.getFirstChild(); n != null; n = n.getNextSibling()) { if
|
||||||
|
* (n.getNodeName().equals("weapon")) { aNodeAttributes = n.getAttributes(); aWeaponType = aNodeAttributes.getNamedItem("type").getNodeValue(); for (Node c = n.getFirstChild(); c != null; c = c.getNextSibling()) { if (c.getNodeName().equals("stone")) { aNodeAttributes = c.getAttributes();
|
||||||
final File aFile3 = new File(Config.DATAPACK_ROOT + "/data/stats/augmentation/retailchances_accessory.xml");
|
* aStoneId = Integer.parseInt(aNodeAttributes.getNamedItem("id").getNodeValue()); for (Node v = c.getFirstChild(); v != null; v = v.getNextSibling()) { if (v.getNodeName().equals("variation")) { aNodeAttributes = v.getAttributes(); aVariationId =
|
||||||
if (aFile3.exists())
|
* Integer.parseInt(aNodeAttributes.getNamedItem("id").getNodeValue()); for (Node j = v.getFirstChild(); j != null; j = j.getNextSibling()) { if (j.getNodeName().equals("category")) { aNodeAttributes = j.getAttributes(); aCategoryChance =
|
||||||
{
|
* Integer.parseInt(aNodeAttributes.getNamedItem("probability").getNodeValue()); for (Node e = j.getFirstChild(); e != null; e = e.getNextSibling()) { if (e.getNodeName().equals("augment")) { aNodeAttributes = e.getAttributes(); aAugmentId =
|
||||||
Document aDoc = null;
|
* Integer.parseInt(aNodeAttributes.getNamedItem("id").getNodeValue()); aAugmentChance = Float.parseFloat(aNodeAttributes.getNamedItem("chance").getNodeValue()); _augmentationChancesAcc.add(new augmentationChanceAcc(aWeaponType, aStoneId, aVariationId, aCategoryChance, aAugmentId,
|
||||||
|
* aAugmentChance)); } } } } } } } } } } } } } else { LOGGER.warning(getClass().getSimpleName() + ": ERROR The retailchances_accessory.xml data file is missing."); } }
|
||||||
try
|
*/
|
||||||
{
|
|
||||||
aDoc = factory3.newDocumentBuilder().parse(aFile3);
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
String aWeaponType = null;
|
|
||||||
int aStoneId = 0;
|
|
||||||
int aVariationId = 0;
|
|
||||||
int aCategoryChance = 0;
|
|
||||||
int aAugmentId = 0;
|
|
||||||
float aAugmentChance = 0;
|
|
||||||
|
|
||||||
for (Node l = aDoc.getFirstChild(); l != null; l = l.getNextSibling())
|
|
||||||
{
|
|
||||||
if (l.getNodeName().equals("list"))
|
|
||||||
{
|
|
||||||
NamedNodeMap aNodeAttributes = null;
|
|
||||||
for (Node n = l.getFirstChild(); n != null; n = n.getNextSibling())
|
|
||||||
{
|
|
||||||
if (n.getNodeName().equals("weapon"))
|
|
||||||
{
|
|
||||||
aNodeAttributes = n.getAttributes();
|
|
||||||
|
|
||||||
aWeaponType = aNodeAttributes.getNamedItem("type").getNodeValue();
|
|
||||||
|
|
||||||
for (Node c = n.getFirstChild(); c != null; c = c.getNextSibling())
|
|
||||||
{
|
|
||||||
if (c.getNodeName().equals("stone"))
|
|
||||||
{
|
|
||||||
aNodeAttributes = c.getAttributes();
|
|
||||||
|
|
||||||
aStoneId = Integer.parseInt(aNodeAttributes.getNamedItem("id").getNodeValue());
|
|
||||||
|
|
||||||
for (Node v = c.getFirstChild(); v != null; v = v.getNextSibling())
|
|
||||||
{
|
|
||||||
if (v.getNodeName().equals("variation"))
|
|
||||||
{
|
|
||||||
aNodeAttributes = v.getAttributes();
|
|
||||||
|
|
||||||
aVariationId = Integer.parseInt(aNodeAttributes.getNamedItem("id").getNodeValue());
|
|
||||||
|
|
||||||
for (Node j = v.getFirstChild(); j != null; j = j.getNextSibling())
|
|
||||||
{
|
|
||||||
if (j.getNodeName().equals("category"))
|
|
||||||
{
|
|
||||||
aNodeAttributes = j.getAttributes();
|
|
||||||
|
|
||||||
aCategoryChance = Integer.parseInt(aNodeAttributes.getNamedItem("probability").getNodeValue());
|
|
||||||
|
|
||||||
for (Node e = j.getFirstChild(); e != null; e = e.getNextSibling())
|
|
||||||
{
|
|
||||||
if (e.getNodeName().equals("augment"))
|
|
||||||
{
|
|
||||||
aNodeAttributes = e.getAttributes();
|
|
||||||
|
|
||||||
aAugmentId = Integer.parseInt(aNodeAttributes.getNamedItem("id").getNodeValue());
|
|
||||||
aAugmentChance = Float.parseFloat(aNodeAttributes.getNamedItem("chance").getNodeValue());
|
|
||||||
|
|
||||||
_augmentationChancesAcc.add(new augmentationChanceAcc(aWeaponType, aStoneId, aVariationId, aCategoryChance, aAugmentId, aAugmentChance));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
LOGGER.warning(getClass().getSimpleName() + ": ERROR The retailchances_accessory.xml data file is missing.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -37,7 +37,8 @@ What is done
|
|||||||
-Whisper of Dreams quests
|
-Whisper of Dreams quests
|
||||||
-Moon Knight quest
|
-Moon Knight quest
|
||||||
-Aden fishing zones
|
-Aden fishing zones
|
||||||
-Classic Henna list
|
-Item augmentation support
|
||||||
|
-Retail Henna list
|
||||||
|
|
||||||
Custom work
|
Custom work
|
||||||
-Newbie Helper NPC location info
|
-Newbie Helper NPC location info
|
||||||
@@ -49,8 +50,9 @@ TODO list
|
|||||||
-Retail NPC dialogs
|
-Retail NPC dialogs
|
||||||
-Retail NPC buylists
|
-Retail NPC buylists
|
||||||
-Test quests and update rewards
|
-Test quests and update rewards
|
||||||
-Floran Agricultural Area clan halls
|
-Test Floran Agricultural Area clan halls
|
||||||
-Test castle sieges
|
-Test castle sieges
|
||||||
-Dungeon of Abyss https://www.youtube.com/watch?v=FZEu0hjCAK8
|
-Dungeon of Abyss https://www.youtube.com/watch?v=FZEu0hjCAK8
|
||||||
-New Savior class skills https://eu.4game.com/lineage2classic/play/saviors/classes/#newclasskills
|
-New Savior class skills https://eu.4game.com/lineage2classic/play/saviors/classes/#newclasskills
|
||||||
-Provisional Clan Halls
|
-Provisional Clan Halls
|
||||||
|
-Update augmentation retailchances.xml https://l2wiki.com/classic/Item_Augmentation_-_effects#Effects
|
||||||
|
Reference in New Issue
Block a user