Alchemy transmutation support.

Need to implement transmute skills.
I have added skill 17928 as example.
This commit is contained in:
MobiusDev
2015-05-18 01:56:28 +00:00
parent ddc3ef9037
commit 6a2082a86f
10 changed files with 505 additions and 3 deletions

View File

@ -1303,6 +1303,16 @@ public abstract class DocumentBase
set.set("capsuled_items_skill", value);
}
protected void setAlchemyTransmuteIngredientData(StatsSet set, String value)
{
set.set("alchemyTransmuteIngredients", value);
}
protected void setAlchemyTransmuteProductData(StatsSet set, String value)
{
set.set("alchemyTransmuteProduction", value);
}
protected String getValue(String value, Object template)
{
// is it a table?

View File

@ -235,6 +235,40 @@ public class DocumentSkill extends DocumentBase
}
}
}
for (int i = 1; i <= lastLvl; i++)
{
for (n = first; n != null; n = n.getNextSibling())
{
if ("set".equalsIgnoreCase(n.getNodeName()))
{
if ("alchemyTransmuteIngredients".equalsIgnoreCase(n.getAttributes().getNamedItem("name").getNodeValue()))
{
setAlchemyTransmuteIngredientData(_currentSkill.sets[i - 1], getTableValue("#alchemyTransmuteIngredients", i));
}
else
{
parseBeanSet(n, _currentSkill.sets[i - 1], i);
}
}
}
}
for (int i = 1; i <= lastLvl; i++)
{
for (n = first; n != null; n = n.getNextSibling())
{
if ("set".equalsIgnoreCase(n.getNodeName()))
{
if ("alchemyTransmuteProduction".equalsIgnoreCase(n.getAttributes().getNamedItem("name").getNodeValue()))
{
setAlchemyTransmuteProductData(_currentSkill.sets[i - 1], getTableValue("#alchemyTransmuteProduction", i));
}
else
{
parseBeanSet(n, _currentSkill.sets[i - 1], i);
}
}
}
}
for (int i = 0; i < enchantLevels1; i++)
{
_currentSkill.enchsets1[i] = new StatsSet();